ava
ava copied to clipboard
Node.js test runner that lets you develop with confidence 🚀
Ava does not currently output an information related the [Error.cause](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause) property. [Error.cause](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause) is somewhat new with support in NodeJS 16+, Deno 1.13+, and major browsers since ~September 2021. The `.cause`...
Please provide details about: * What you're trying to do ```console pnpm exec ava ~/code/tests ``` This results in an error: `Expected pattern to be a non-empty string` The error...
I'm using AVA to test a program that interacts with a Postgres database and has timing-related tests ([code here](https://github.com/bitauth/chaingraph/blob/10ff420143ddc18786a25f3d7cea161719653360/src/e2e/e2e.spec.ts#L446-L477)). I'm analyzing the `stdout` from a child process to verify it's...
* **What you're trying to do:** See stack trace of failing tests while using the --tap parameter. * **What happened:** Stack traces point to ava internals: ``` TAP version 13...
This is a follow up from the discussion in https://github.com/avajs/ava/discussions/3322. The tap reporter was failing when ava timed out because of https://github.com/avajs/ava/blob/01ec2804ab9db0ab3ef11e3b5b0c5697d68f8bc5/lib/reporters/tap.js#L27 being undefined. The suggestion was to use optional...
This is work in progress.
It has been frustrating getting typescript to work with AVA nicely. Googling information on this is a lost cause these days with the quality of the results. I have spent...
Seeking to prevent endless frustration and time spent not knowing this very, **very** key detail.
The `message` property in `t.throws` is really ergonomic - it can be a `string`, `RegExp`, or even a function. `t.like` should be just as ergonomic with strings: ```js const output...
Closes #3020 Adds a new assertion for testing equality in an unordered manner between two `Map`s or two `Set`s/`Array`s: ```js test('unorderedEqual', t => { t.unorderedEqual([1, 2, 3], new Set([2, 3,...