Fix tests on CI
这个提交存在于:
父节点
a45ba3c072
当前提交
414ca11ec9
共有 2 个文件被更改,包括 8 次插入 和 1 次删除
|
@ -63,6 +63,13 @@ jobs:
|
|||
- checkout
|
||||
- setup_npm
|
||||
- run: npm run lint
|
||||
- run:
|
||||
# NOTE: Karma loads ts-node automatically and treats karma.conf.js as a TypeScript.
|
||||
# Karma does not starts by karma.conf.js transpile failure, and this hack removes
|
||||
# ts-node module from the local before test.
|
||||
# See: https://github.com/karma-runner/karma/issues/3329
|
||||
name: Remove node-ts from node_modules
|
||||
command: mv node_modules/ts-node node_modules/ts-node.orig
|
||||
- run: npm test
|
||||
- run: npm run package
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
"lint": "eslint --ext .js,.jsx,.ts,.tsx src",
|
||||
"type-checks": "tsc --noEmit",
|
||||
"test": "karma start",
|
||||
"test:e2e": "mocha --timeout 10000 --retries 5 e2e"
|
||||
"test:e2e": "mocha --timeout 10000 --retries 5 --require ts-node/register --extension ts e2e"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
在新工单中引用