{"id":28365323,"url":"https://github.com/toolbuilder/package-test","last_synced_at":"2025-07-18T01:38:26.664Z","repository":{"id":57167194,"uuid":"259658439","full_name":"toolbuilder/package-test","owner":"toolbuilder","description":"Tests NPM package pack file in a separate, temporary package, generates tests by transforming existing unit tests","archived":false,"fork":false,"pushed_at":"2023-08-03T06:16:13.000Z","size":115,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T23:44:50.269Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/toolbuilder.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-28T14:20:40.000Z","updated_at":"2020-06-29T22:33:52.000Z","dependencies_parsed_at":"2022-08-30T13:10:16.324Z","dependency_job_id":null,"html_url":"https://github.com/toolbuilder/package-test","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/toolbuilder/package-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolbuilder%2Fpackage-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolbuilder%2Fpackage-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolbuilder%2Fpackage-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolbuilder%2Fpackage-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toolbuilder","download_url":"https://codeload.github.com/toolbuilder/package-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolbuilder%2Fpackage-test/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261661287,"owners_count":23191495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-28T21:10:37.910Z","updated_at":"2025-06-24T11:31:38.236Z","avatar_url":"https://github.com/toolbuilder.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Package-Test\n\nThis package is deprecated. Please use [@toolbuilder/rollup-config-pkg-test](https://github.com/toolbuilder/rollup-config-pkgtest) instead. The Rollup configuration `@toolbuilder/rollup-config-pkg-test` and plugins it uses are  the result of refactoring this package. The plugins are far more configurable than this package.\n\nThis package tests the output of 'npm pack' in a separate, temporary, project. It does the following:\n\n* Builds a temporary package in a temporary directory\n* Uses rollup to create unit tests that import the package from ones that use relative imports\n* Writes the new unit tests to the temporary package\n* Installs the dependencies it found during the conversion\n* Runs the unit tests\n\nOptions for input and output are provided. It has defaults that suit me.\n\n## Installation\n\n```bash\nnpm install --save @toolbuilder/package-test\n# Or\npnpm add @toolbuilder/package-test\n```\n\n## Operation\n\nThis package provides a CLI (`cli.js`), and a programmatic API (`src/index.js`). A script called `package-test` is installed in `node_modules/.bin` when the package is installed. The script `package-test` provides access to the CLI.\n\n```bash\npnpm add @toolbuilder/package-test\npnpx package-test --help\n```\n\n## Contributing\n\nYes, please! Or point out a better package, since I couldn't find any. This is a rough version just to get started testing my other packages.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoolbuilder%2Fpackage-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoolbuilder%2Fpackage-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoolbuilder%2Fpackage-test/lists"}