ant-design-blazor/tests/AntDesign.Tests.Js/package.json

46 lines
1.5 KiB
JSON
Raw Normal View History

{
"version": "1.0.0",
"name": "antblazor.js-ts.tests",
"private": true,
"scripts": {
"//": [
"(comment) 1. test-ts will run all tests in './tests' folder",
"(comment) 2. test-one is meant to run test for a single file (but could be multiple) that is provided as a parameter. ",
" Example: 'npm run test-one tests/modules/components/overlay.test.ts' will run tests in file 'overlay.test.ts'",
"(comment) 3. test-cov are run during CI - will generate coverage report. "
],
"test-ts": "mocha -r ts-node/register -r ./tests/mochaConfig.js 'tests/**/*.ts'",
"test-one": "mocha -r ts-node/register -r ./tests/mochaConfig.js ",
"pretest-cov": "tsc -p . ",
"test-cov": "nyc mocha -r ts-node/register -r source-map-support/register -r ./tests/mochaConfig.js --recursive 'tests/**/*.ts'",
"posttest-cov": "nyc report --reporter=cobertura"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.1",
"@types/chai": "^4.2.21",
"@types/mocha": "^9.0.0",
"@types/node": "^16.3.2",
"chai": "^4.3.4",
"codecov": "^3.8.3",
"jsdom": "^11.12.0",
"mocha": "8.3.0",
"mocha-jsdom": "^2.0.0",
"mocha-param": "^2.0.1",
"nyc": "^15.1.0",
"rewire": "^5.0.0",
"sinon": "^11.1.2",
"source-map-support": "^0.5.19",
"ts-node": "^10.1.0",
"typescript": "^4.3.5"
},
"nyc": {
"extends": "@istanbuljs/nyc-config-typescript",
"all": true,
"cwd": "../../",
"exclude": [
"**/*.test.ts",
"**/*.js"
]
}
}