{"_id":"ava@8.3.0","bin":{"ava":"./entrypoints/cli.js"},"dist":{"shasum":"de4cdd733e04a38c0d3f20923dab3d1c95b48bd2","tarball":"http://registry-npm.ywwl.com/ava/download/ava-8.3.0.tgz","integrity":"sha512-Tr/p0fmC+oCJo5+m1oJdpmBxC1OO57xtVKlJfbN0gkz31yofpk08jl4Hzx654RdKq1FPc0XYiHF4ZzdqR+87gg==","fileCount":71,"unpackedSize":297048,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/ava@8.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICqezA/k91s+TQGiZSxYDgXeAaBtmBnLYyxjff38ffLpAiARSIUyRd+p2bdb8AbUP5x7lvI287Q3QKHK3G2l4y3H9w=="}],"size":78085,"noattachment":false,"key":"/ava/-/ava-8.3.0.tgz"},"name":"ava","type":"module","engines":{"node":"^22.20 || ^24.12 || >=26"},"exports":{".":{"types":"./entrypoints/main.d.ts","default":"./entrypoints/main.js"},"./plugin":{"types":"./entrypoints/plugin.d.ts","default":"./entrypoints/plugin.js"},"./internal":{"types":"./entrypoints/internal.d.ts"},"./eslint-plugin-helper":"./entrypoints/eslint-plugin-helper.js"},"license":"MIT","scripts":{"test":"./scripts/test.sh"},"version":"8.3.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"e62650d8-ccc4-4ec5-b81f-593a7ed85c92"},"approver":{"name":"novemberborn","email":"mark@novemberborn.net"}},"homepage":"https://avajs.dev","keywords":["🦄","test","runner","testing","concurrent","parallel","fast","tdd","cli-app","cli","jest","mocha","tape","tap","qunit","jasmine","assert","assertion","promise","promises","async","function","await","generator","generators","yield","observable","observables","unit","snapshot","expect","typescript"],"devEngines":{"runtime":{"name":"node","onFail":"download","version":"^26.12.1"},"packageManager":{"name":"pnpm","onFail":"download","version":"^12.15.0"}},"repository":{"url":"git+https://github.com/avajs/ava.git","type":"git"},"description":"Node.js test runner that lets you develop with confidence.","directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"},{"name":"novemberborn","email":"mark@novemberborn.net"}],"dependencies":{"ms":"^2.1.3","plur":"^6.0.0","acorn":"^8.19.0","arrgv":"^1.0.2","cbor2":"^2.4.0","chalk":"^6.0.1","debug":"^4.4.3","p-map":"^7.1.1","slash":"^5.1.0","yargs":"^18.2.0","arrify":"^3.0.0","chunkd":"^2.0.1","globby":"^16.2.4","ci-info":"^4.4.0","figures":"^6.1.0","matcher":"^7.0.0","memoize":"^11.0.0","emittery":"^2.2.0","supertap":"^3.0.1","temp-dir":"^3.0.0","callsites":"^4.2.0","picomatch":"^4.0.7","pretty-ms":"^10.0.0","acorn-walk":"^8.3.5","is-promise":"^4.0.0","@vercel/nft":"^1.11.0","ansi-styles":"^7.0.0","concordance":"^5.0.4","resolve-cwd":"^3.0.0","stack-utils":"^2.0.6","cli-truncate":"^6.1.1","code-excerpt":"^4.0.0","indent-string":"^5.0.0","package-config":"^5.0.0","is-plain-object":"^5.1.0","ci-parallel-vars":"^1.0.1","ignore-by-default":"^2.1.0","write-file-atomic":"^7.0.1","common-path-prefix":"^3.0.0","currently-unhandled":"^0.4.1"},"devDependencies":{"c8":"^12.0.0","xo":"^5.0.1","tap":"^21.8.0","tsd":"^0.33.0","execa":"^10.2.0","sinon":"^22.1.0","tempy":"^3.2.0","expect":"^30.5.2","@ava/test":"github:avajs/test","typescript":"~6.0.3","@types/node":"^26.6.5","ansi-escapes":"^7.3.0","zen-observable":"^0.10.0","@ava/typescript":"^7.0.0","eslint-plugin-ava":"^18.0.0","@sindresorhus/tsconfig":"^8.1.0"},"peerDependencies":{"@ava/typescript":"*"},"peerDependenciesMeta":{"@ava/typescript":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ava_8.3.0_1793478302989_0.49702761343921475"},"_hasShrinkwrap":false,"readme":"*[Please support our friend Vadim Demedes and the people in Ukraine.](https://stand-with-ukraine.pp.ua/)*\n\n---\n\n# <img src=\"media/header.png\" title=\"AVA\" alt=\"AVA logo\" width=\"530\">\n\nAVA is a test runner for Node.js with a concise API, detailed error output, embrace of new language features and thread isolation that lets you develop with confidence 🚀\n\nWatch this repository and follow the [Discussions](https://github.com/avajs/ava/discussions) for updates.\n\nRead our [contributing guide](.github/CONTRIBUTING.md) if you're looking to contribute (issues / PRs / etc).\n\n![](media/verbose-reporter.png)\n\n\nTranslations: [Español](https://github.com/avajs/ava-docs/blob/main/es_ES/readme.md), [Français](https://github.com/avajs/ava-docs/blob/main/fr_FR/readme.md), [Italiano](https://github.com/avajs/ava-docs/blob/main/it_IT/readme.md), [日本語](https://github.com/avajs/ava-docs/blob/main/ja_JP/readme.md), [한국어](https://github.com/avajs/ava-docs/blob/main/ko_KR/readme.md), [Português](https://github.com/avajs/ava-docs/blob/main/pt_BR/readme.md), [Русский](https://github.com/avajs/ava-docs/blob/main/ru_RU/readme.md), [简体中文](https://github.com/avajs/ava-docs/blob/main/zh_CN/readme.md)\n\n\n## Why AVA?\n\n- Minimal and fast\n- Simple test syntax\n- Runs tests concurrently\n- Enforces writing atomic tests\n- No implicit globals\n- Includes TypeScript definitions\n- [Magic assert](#magic-assert)\n- [Isolated environment for each test file](./docs/01-writing-tests.md#test-isolation)\n- [Promise support](./docs/01-writing-tests.md#promise-support)\n- [Async function support](./docs/01-writing-tests.md#async-function-support)\n- [Observable support](./docs/01-writing-tests.md#observable-support)\n- [Enhanced assertion messages](./docs/03-assertions.md#enhanced-assertion-messages)\n- [Automatic parallel test runs in CI](#parallel-runs-in-ci)\n- [TAP reporter](./docs/05-command-line.md#tap-reporter)\n\n\n## Usage\n\nTo install and set up AVA, run:\n\n```console\nnpm init ava\n```\n\nYour `package.json` will then look like this (exact version notwithstanding):\n\n```json\n{\n\t\"name\": \"awesome-package\",\n\t\"type\": \"module\",\n\t\"scripts\": {\n\t\t\"test\": \"ava\"\n\t},\n\t\"devDependencies\": {\n\t\t\"ava\": \"^5.0.0\"\n\t}\n}\n```\n\nOr if you prefer using Yarn:\n\n```console\nyarn add ava --dev\n```\n\nAlternatively you can install `ava` manually:\n\n```console\nnpm install --save-dev ava\n```\n\n*Make sure to install AVA locally. AVA cannot be run globally.*\n\nDon't forget to configure the `test` script in your `package.json` as per above.\n\n### Create your test file\n\nCreate a file named `test.js` in the project root directory.\n\n_Note that AVA's documentation assumes you're using ES modules._\n\n```js\nimport test from 'ava';\n\ntest('foo', t => {\n\tt.pass();\n});\n\ntest('bar', async t => {\n\tconst bar = Promise.resolve('bar');\n\tt.is(await bar, 'bar');\n});\n```\n\n### Running your tests\n\n```console\nnpm test\n```\n\nOr with `npx`:\n\n```console\nnpx ava\n```\n\nRun with the `--watch` flag to enable AVA's [watch mode](docs/recipes/watch-mode.md):\n\n```console\nnpx ava --watch\n```\n\n## Supported Node.js versions\n\nAVA supports the latest release of any major version that [is supported by Node.js itself](https://github.com/nodejs/Release#release-schedule). Read more in our [support statement](docs/support-statement.md).\n\n## Highlights\n\n### Magic assert\n\nAVA adds code excerpts and clean diffs for actual and expected values. If values in the assertion are objects or arrays, only a diff is displayed, to remove the noise and focus on the problem. The diff is syntax-highlighted too! If you are comparing strings, both single and multi line, AVA displays a different kind of output, highlighting the added or missing characters.\n\n![](media/magic-assert-combined.png)\n\n### Clean stack traces\n\nAVA automatically removes unrelated lines in stack traces, allowing you to find the source of an error much faster, as seen above.\n\n### Parallel runs in CI\n\nAVA automatically detects whether your CI environment supports parallel builds. Each build will run a subset of all test files, while still making sure all tests get executed. See the [`ci-parallel-vars`](https://www.npmjs.com/package/ci-parallel-vars) package for a list of supported CI environments.\n\n## Documentation\n\nPlease see the [files in the `docs` directory](./docs):\n\n* [Writing tests](./docs/01-writing-tests.md)\n* [Execution context](./docs/02-execution-context.md)\n* [Assertions](./docs/03-assertions.md)\n* [Snapshot testing](./docs/04-snapshot-testing.md)\n* [Command line (CLI)](./docs/05-command-line.md)\n* [Configuration](./docs/06-configuration.md)\n* [Test timeouts](./docs/07-test-timeouts.md)\n\n### Common pitfalls\n\nWe have a growing list of [common pitfalls](docs/08-common-pitfalls.md) you may experience while using AVA. If you encounter any issues you think are common, comment in [this issue](https://github.com/avajs/ava/issues/404).\n\n### Recipes\n\n- [Test setup](docs/recipes/test-setup.md)\n- [TypeScript](docs/recipes/typescript.md)\n- [Shared workers](docs/recipes/shared-workers.md)\n- [Watch mode](docs/recipes/watch-mode.md)\n- [When to use `t.plan()`](docs/recipes/when-to-use-plan.md)\n- [Passing arguments to your test files](docs/recipes/passing-arguments-to-your-test-files.md)\n- [Splitting tests in CI](docs/recipes/splitting-tests-ci.md)\n- [Code coverage](docs/recipes/code-coverage.md)\n- [Endpoint testing](docs/recipes/endpoint-testing.md)\n- [Browser testing](docs/recipes/browser-testing.md)\n- [Testing Vue.js components](docs/recipes/vue.md)\n- [Debugging tests with Chrome DevTools](docs/recipes/debugging-with-chrome-devtools.md)\n- [Debugging tests with VSCode](docs/recipes/debugging-with-vscode.md)\n- [Debugging tests with WebStorm](docs/recipes/debugging-with-webstorm.md)\n- [Isolated MongoDB integration tests](docs/recipes/isolated-mongodb-integration-tests.md)\n- [Testing web apps using Puppeteer](docs/recipes/puppeteer.md)\n- [Testing web apps using Selenium WebDriverJS](docs/recipes/testing-with-selenium-webdriverjs.md)\n\n## FAQ\n\n### How is the name written and pronounced?\n\nAVA, not Ava or ava. Pronounced [`/ˈeɪvə/`](media/pronunciation.m4a?raw=true): Ay (f**a**ce, m**a**de) V (**v**ie, ha**v**e) A (comm**a**, **a**go)\n\n### What is the header background?\n\nIt's the [Andromeda galaxy](https://simple.wikipedia.org/wiki/Andromeda_galaxy).\n\n### What is the difference between concurrency and parallelism?\n\n[Concurrency is not parallelism. It enables parallelism.](https://stackoverflow.com/q/1050222)\n\n## Support\n\n- [GitHub Discussions](https://github.com/avajs/ava/discussions)\n\n## Related\n\n- [eslint-plugin-ava](https://github.com/avajs/eslint-plugin-ava) — Lint rules for AVA tests\n- [@ava/typescript](https://github.com/avajs/typescript) — Test TypeScript projects\n- [@ava/cooperate](https://github.com/avajs/cooperate) — Low-level primitives to enable cooperation between test files\n- [@ava/get-port](https://github.com/avajs/get-port) — Reserve a port while testing\n\n## Links\n\n- [AVA stickers, t-shirts, etc](https://www.redbubble.com/people/sindresorhus/works/30330590-ava-logo)\n- [Awesome list](https://github.com/avajs/awesome-ava)\n- [Do you like AVA? Donate here!](https://opencollective.com/ava)\n- [More…](https://github.com/avajs/awesome-ava)\n\n## Team\n\n[![Mark Wubben](https://github.com/novemberborn.png?size=100)](https://github.com/novemberborn) | [![Sindre Sorhus](https://github.com/sindresorhus.png?size=100)](https://github.com/sindresorhus)\n---|---\n[Mark Wubben](https://novemberborn.net) | [Sindre Sorhus](https://sindresorhus.com)\n\n###### Former\n\n- [Kevin Mårtensson](https://github.com/kevva)\n- [James Talmage](https://github.com/jamestalmage)\n- [Juan Soto](https://github.com/sotojuan)\n- [Jeroen Engels](https://github.com/jfmengels)\n- [Vadim Demedes](https://github.com/vadimdemedes)\n\n\n<div align=\"center\">\n\t<br>\n\t<br>\n\t<br>\n\t<a href=\"https://avajs.dev\">\n\t\t<img src=\"media/logo.svg\" width=\"200\" alt=\"AVA\">\n\t</a>\n\t<br>\n\t<br>\n</div>\n","publish_time":1793478303095,"_cnpm_publish_time":1793478303095,"dist-tags":{"latest":"8.3.0"}}