Using ts-node and tsconfig-paths to run mocha over Typescript test files
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
"push-pserver": "rollup -c --environment DEST:pserver",
|
||||
"push-sim": "rollup -c --environment DEST:sim",
|
||||
"test": "npm run test-unit",
|
||||
"test-unit": "rollup -c rollup.test-unit-config.js && mocha dist/test-unit.bundle.js",
|
||||
"test-unit": "TS_NODE_PROJECT='./tsconfig.test.json' mocha test/unit/**/*.ts",
|
||||
"test-integration": "echo 'See docs/in-depth/testing.md for instructions on enabling integration tests'",
|
||||
"watch-main": "rollup -cw --environment DEST:main",
|
||||
"watch-pserver": "rollup -cw --environment DEST:pserver",
|
||||
@@ -32,7 +32,6 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@rollup/plugin-commonjs": "^11.1.0",
|
||||
"@rollup/plugin-multi-entry": "^3.0.0",
|
||||
"@rollup/plugin-node-resolve": "^7.1.3",
|
||||
"@types/chai": "^4.1.6",
|
||||
"@types/lodash": "3.10.2",
|
||||
@@ -54,14 +53,13 @@
|
||||
"mocha": "^5.2.0",
|
||||
"prettier": "^2.0.4",
|
||||
"rollup": "^2.6.1",
|
||||
"rollup-plugin-buble": "^0.19.8",
|
||||
"rollup-plugin-clear": "^2.0.7",
|
||||
"rollup-plugin-nodent": "^0.2.2",
|
||||
"rollup-plugin-screeps": "^1.0.0",
|
||||
"rollup-plugin-typescript2": "^0.27.0",
|
||||
"sinon": "^6.3.5",
|
||||
"sinon-chai": "^3.2.0",
|
||||
"ts-node": "^8.8.2",
|
||||
"tsconfig-paths": "^3.9.0",
|
||||
"typescript": "^3.8.3"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
Reference in New Issue
Block a user