@angular/build
Version:
Official build system for Angular
83 lines (82 loc) • 2.8 kB
JSON
{
"$schema": "http://json-schema.org/draft-07/schema",
"title": "Unit testing",
"description": "Unit testing options for Angular applications.",
"type": "object",
"properties": {
"buildTarget": {
"type": "string",
"description": "A build builder target to serve in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
"pattern": "^[^:\\s]*:[^:\\s]*(:[^\\s]+)?$"
},
"tsConfig": {
"type": "string",
"description": "The name of the TypeScript configuration file."
},
"runner": {
"type": "string",
"description": "The name of the test runner to use for test execution.",
"enum": ["karma", "vitest"]
},
"browsers": {
"description": "A list of browsers to use for test execution. If undefined, jsdom on Node.js will be used instead of a browser.",
"type": "array",
"items": {
"type": "string"
},
"minItems": 1
},
"include": {
"type": "array",
"items": {
"type": "string"
},
"default": ["**/*.spec.ts"],
"description": "Globs of files to include, relative to project root. \nThere are 2 special cases:\n - when a path to directory is provided, all spec files ending \".spec.@(ts|tsx)\" will be included\n - when a path to a file is provided, and a matching spec file exists it will be included instead."
},
"exclude": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Globs of files to exclude, relative to the project root."
},
"watch": {
"type": "boolean",
"description": "Run build when files change."
},
"debug": {
"type": "boolean",
"description": "Initialize the test runner to support using the Node Inspector for test debugging.",
"default": false
},
"codeCoverage": {
"type": "boolean",
"description": "Output a code coverage report.",
"default": false
},
"codeCoverageExclude": {
"type": "array",
"description": "Globs to exclude from code coverage.",
"items": {
"type": "string"
},
"default": []
},
"reporters": {
"type": "array",
"description": "Test runner reporters to use. Directly passed to the test runner.",
"items": {
"type": "string"
}
},
"providersFile": {
"type": "string",
"description": "TypeScript file that exports an array of Angular providers to use during test execution. The array must be a default export.",
"minLength": 1
}
},
"additionalProperties": false,
"required": ["buildTarget", "tsConfig", "runner"]
}