Fix tests on CI
This commit is contained in:
parent
a45ba3c072
commit
414ca11ec9
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Reference in a new issue