2021-07-29 22:45:47 +08:00
|
|
|
{
|
|
|
|
"version": "1.0.0",
|
|
|
|
"name": "antblazor.js-ts.tests",
|
|
|
|
"private": true,
|
|
|
|
"scripts": {
|
2021-09-10 19:06:50 +08:00
|
|
|
"//": [
|
|
|
|
"(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. "
|
|
|
|
],
|
2021-07-29 22:45:47 +08:00
|
|
|
"test-ts": "mocha -r ts-node/register -r ./tests/mochaConfig.js 'tests/**/*.ts'",
|
2021-09-10 19:06:50 +08:00
|
|
|
"test-one": "mocha -r ts-node/register -r ./tests/mochaConfig.js ",
|
2021-07-29 22:45:47 +08:00
|
|
|
"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",
|
2021-09-10 19:06:50 +08:00
|
|
|
"mocha-param": "^2.0.1",
|
2021-07-29 22:45:47 +08:00
|
|
|
"nyc": "^15.1.0",
|
2021-09-10 19:06:50 +08:00
|
|
|
"rewire": "^5.0.0",
|
|
|
|
"sinon": "^11.1.2",
|
2021-07-29 22:45:47 +08:00
|
|
|
"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"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|