ava/test
Matthew Douglass f243cab3b3
Do not count writes to stdout/stderr as non-idling activity for timeouts
Fixes #3373. The idle guard will now force a test worker to exit even if it's continuously writing to stdout/stderr.

Co-authored-by: Mark Wubben <mark@novemberborn.net>
2025-04-15 21:59:32 +02:00
..
assertions Only treat native errors as errors 2023-07-31 09:25:50 +02:00
builtin-nodejs-assert Refactor error processing 2023-09-10 15:26:35 +02:00
cjs-default Update dependencies 2022-08-26 16:59:40 +02:00
completion-handlers Implement registerCompletionHandler() 2024-01-11 22:33:57 +00:00
concurrency Remove checks against very old config options and related cleanup 2023-06-25 15:23:04 +02:00
config Add filterNodeArgumentsForWorkerThreads option 2024-08-20 15:55:43 +02:00
config-require Enhance require feature 2023-06-25 15:25:46 +02:00
configurable-module-format Rely on TypeScript 4.7 and update integration + tests 2022-07-10 18:30:04 +02:00
environment-variables Use AVA 4 for the self-hosted tests 2022-01-01 19:43:52 +01:00
extensions Use AVA 4 for the self-hosted tests 2022-01-01 19:43:52 +01:00
external-assertions Include Node.js 22 in supported engines and test matrix 2024-05-05 22:32:41 +02:00
globs Move ignoredByWatcher to watchMode.ignoreChanges 2023-07-02 15:14:36 +02:00
helpers Update dependencies & other general maintenance 2024-08-20 15:40:08 +02:00
hook-restrictions Use AVA 4 for the self-hosted tests 2022-01-01 19:43:52 +01:00
idle-timeouts Do not count writes to stdout/stderr as non-idling activity for timeouts 2025-04-15 21:59:32 +02:00
internal-events Experimentally expose internal events for custom reporters 2023-11-26 21:26:34 +01:00
line-numbers Use AVA 4 for the self-hosted tests 2022-01-01 19:43:52 +01:00
macros Modernize some syntax 2023-07-02 17:26:14 +02:00
meta Update dependencies and such 2023-01-15 21:33:33 +01:00
multiple-implementations Remove references to older AVA versions 2023-12-30 20:58:44 +01:00
node-arguments Add filterNodeArgumentsForWorkerThreads option 2024-08-20 15:55:43 +02:00
node_modules Remove accidentally committed test-ava symlink 2022-03-01 19:03:15 +01:00
scheduler Update all the things 2021-09-12 22:00:38 +02:00
shared-workers Update dependencies & other general maintenance 2024-08-20 15:40:08 +02:00
snapshot-order Update dependencies & other minor tweaks 2023-12-04 21:56:22 +01:00
snapshot-regenerate-report Fix encoding of large snapshot data 2022-01-08 15:12:09 +01:00
snapshot-removal Add a brand new watcher 2023-07-02 15:14:36 +02:00
snapshot-tests Add a brand new watcher 2023-07-02 15:14:36 +02:00
snapshot-workflow Update dependencies, rely on Node.js 18, other small changes 2023-11-06 21:46:04 +01:00
test-process-exit Update dependencies & other general maintenance 2024-08-20 15:40:08 +02:00
test-timeouts Refactor error processing 2023-09-10 15:26:35 +02:00
watch-mode Test with AVA 6 2024-01-11 20:56:28 +00:00
worker-threads Update all the things 2021-09-12 22:00:38 +02:00
.fake-root Find ava.config.* files outside of project directory 2021-10-31 19:44:31 +01:00
README.md Switch to ESM for internals 2021-06-06 15:39:52 +02:00

Self-hosted tests

This directory contains tests that are run using a stable version of AVA. You can run them using npx test-ava.

Tests should be placed in their own directory, grouped by area of responsibility. Use the exec helper to launch the AVA version that is in the repository to run tests. Place these in a nested fixtures directory. Add a relative dependency in package.json. You can then import from ava.

Prefer snapshotting the test results.