61 lines
1.8 KiB
JSON

{
"name": "vitest",
"factory": "./src/generators/vitest/vitest-generator",
"schema": {
"$schema": "http://json-schema.org/schema",
"cli": "nx",
"$id": "Vitest",
"title": "Vitest",
"type": "object",
"description": "Generate a Vitest setup for a project.",
"properties": {
"project": {
"type": "string",
"description": "The name of the project to test.",
"$default": { "$source": "projectName" }
},
"uiFramework": {
"type": "string",
"enum": ["react", "none"],
"default": "none",
"description": "UI framework to use with vitest."
},
"inSourceTests": {
"type": "boolean",
"default": false,
"description": "Do not generate separate spec files and set up in-source testing."
},
"skipViteConfig": {
"type": "boolean",
"default": false,
"description": "Skip generating a vite config file."
},
"coverageProvider": {
"type": "string",
"enum": ["c8", "istanbul"],
"default": "c8",
"description": "Coverage provider to use."
},
"testTarget": {
"type": "string",
"description": "The test target of the project to be transformed to use the @nrwl/vite:test executor.",
"hidden": true
},
"skipFormat": {
"description": "Skip formatting files.",
"type": "boolean",
"default": false,
"x-priority": "internal"
}
},
"required": ["project"],
"presets": []
},
"description": "Generate a vitest configuration",
"implementation": "/packages/vite/src/generators/vitest/vitest-generator.ts",
"aliases": [],
"hidden": false,
"path": "/packages/vite/src/generators/vitest/schema.json",
"type": "generator"
}