Formatter Validator Minifier Escape / Unescape JSON ↔ String JSON ↔ YAML JSON → CSV NDJSON / JSON Lines JSON → Types JSON ↔ XML JSON Diff JSON Patch Canonicalize (RFC 8785) Schema Validator Schema Generator JSONPath Tester JWT Decoder JSON Errors Schemas More Tools
JSONTools / Schema registry / AVA Configuration
Schema registry

AVA Configuration

configuring AVA, the Node.js test runner

ava.config.json

Check your file against this schema

Opens the validator with this schema already loaded. Paste your ava.config.json and it validates in your browser — nothing is uploaded.

Validate a ava.config.json → View raw schema

Fields

Generated directly from the schema, following local $refs, to two levels of nesting.

Field Type Description
filesarray
ignoredByWatcherarray
matcharray
cachebooleanDefaults to `true` to cache compiled files under `node_modules/.cache/ava.` If `false`, files are cached in a temporary directory instead
default: true
concurrencynumberMax number of test files running at the same time (default: CPU cores)
workerThreadsbooleanUse worker threads to run tests (enabled by default). If `false`, tests will run in child processes
default: true
failFastbooleanStop running further tests once a test fails
default: false
failWithoutAssertionsbooleanIf `false`, does not fail a test if it doesn't run assertions
default: true
environmentVariablesobjectSpecifies environment variables to be made available to the tests. The environment variables defined here override the ones from `process.env`
serialbooleanif `true`, prevents parallel execution of tests within a file
default: false
tapbooleanIf `true`, enables the TAP reporter
default: false
verbosebooleanIf `true`, enables verbose output (though currently non-verbose output is not supported)
default: false
snapshotDirstring
extensionsanyOfExtensions of test files. Setting this overrides the default `["cjs", "mjs", "js"]` value, so make sure to include those extensions in the list. Experimentally you can configure how files are loaded
default: ["cjs", "mjs", "js"]
requirearray
timeoutanyOfTimeouts in AVA behave differently than in other test frameworks. AVA resets a timer after each test, forcing tests to quit if no new test results were received within the specified timeout. This can be used to handle stalled tests. See
default: "10s"
nodeArgumentsarray<string>
utilizeParallelBuildsbooleanIf `false`, disable parallel builds (default: `true`)
default: true
typescriptobjectConfigures @ava/typescript for projects that precompile TypeScript. Alternatively, you can use `ts-node` to do live testing without transpiling, in which case you shouldn't use the `typescript` property
typescript.extensionsarray
typescript.rewritePathsobjectAVA searches your entire project for `*.js`, `*.cjs`, `*.mjs` and `*.ts` files (or other extensions you've configured). It will ignore such files found in the `rewritePaths` targets (e.g. `build/`). If you use more specific paths, for
typescript.compileenumIf `false`, AVA will assume you have already compiled your project. If set to `'tsc'`, AVA will run the TypeScript compiler before running your tests. This can be inefficient when using AVA in watch mode
default: false
one of: false, "tsc"

What we found in this schema

Specification sections for the keywords in this schema

Keyword Document Section
$idJSON Schema Core, draft 2020-12§8.2.1 — The "$id" Keyword
$refJSON Schema Core, draft 2020-12§8.2.3.1 — Direct References with "$ref"
$schemaJSON Schema Core, draft 2020-12§8.1.1 — "$schema"
additionalPropertiesJSON Schema Core, draft 2020-12§10.3.2.3 — "additionalProperties"
anyOfJSON Schema Core, draft 2020-12§10.2.1.2 — "anyOf"
defaultJSON Schema Validation, draft 2020-12§9.2 — "default"
descriptionJSON Schema Validation, draft 2020-12§9.1 — "title" and "description"
enumJSON Schema Validation, draft 2020-12§6.1.2 — "enum"
itemsJSON Schema Core, draft 2020-12§10.3.1.2 — "items"
minLengthJSON Schema Validation, draft 2020-12§6.3.2 — "minLength"
minimumJSON Schema Validation, draft 2020-12§6.2.4 — "minimum"
patternJSON Schema Validation, draft 2020-12§6.3.3 — "pattern"
patternPropertiesJSON Schema Core, draft 2020-12§10.3.2.2 — "patternProperties"
propertiesJSON Schema Core, draft 2020-12§10.3.2.1 — "properties"
typeJSON Schema Validation, draft 2020-12§6.1.1 — "type"

Documents

Attribution

This schema comes from SchemaStore, distributed under the Apache License 2.0. Copyright 2015–present Mads Kristensen and contributors. View the original file. The field table and audit on this page are generated by JSONTools.tools; the schema itself is unmodified.

← All schemas