vitest/test/coverage-test/package.json
Ari Perkkiö 265fdbe665
feat: support istanbul coverage provider (#1676)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-08-16 02:21:02 +08:00

28 lines
1.3 KiB
JSON

{
"name": "@vitest/test-coverage",
"private": true,
"scripts": {
"test": "npm run test:c8 && npm run test:istanbul",
"test:c8": "npm run test:thread:c8 && npm run test:nothread:c8",
"coverage:c8": "vitest run --coverage.provider c8",
"coverage:thread:c8": "cross-env THREAD=true vitest run --coverage.provider c8",
"coverage-test:c8": "vitest -c vitest.config-c8-coverage.ts run",
"test:thread:c8": "npm run coverage:thread:c8 && npm run coverage-test:c8",
"test:nothread:c8": "npm run coverage:c8 && npm run coverage-test:c8",
"test:istanbul": "npm run test:thread:istanbul && npm run test:nothread:istanbul",
"coverage:istanbul": "vitest run --coverage.provider istanbul",
"coverage:thread:istanbul": "cross-env THREAD=true vitest run --coverage.provider istanbul",
"coverage-test:istanbul": "vitest -c vitest.config-istanbul-coverage.ts run",
"test:thread:istanbul": "npm run coverage:thread:istanbul && npm run coverage-test:istanbul",
"test:nothread:istanbul": "npm run coverage:istanbul && npm run coverage-test:istanbul"
},
"devDependencies": {
"@vitejs/plugin-vue": "latest",
"@vue/test-utils": "latest",
"happy-dom": "latest",
"vite": "latest",
"vitest": "workspace:*",
"vue": "latest"
}
}