Skip to content

Commit

Permalink
chore: run jest script in jest dir (#1245)
Browse files Browse the repository at this point in the history
This prevents the jest script from running any nested versions of xud
such as those that may be installed in the simulation test temp dir.

It also separates the seedutil tests from running with the rest of the
jest tests.
  • Loading branch information
sangaman authored and michael1011 committed Sep 26, 2019
1 parent bda4cc8 commit 1b642fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ before_install:

script:
- npm run lintNoFix
- npm run compile:seedutil
- npm run test
- npm run test:sim
- npm run compile:seedutil
- npm run test:seedutil
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"test:sim": "(npm run compile && cd test/simulation && export PATH=\"$PWD/go/bin:$PATH\" && GOPATH=$PWD/go GO111MODULE=on go test -run=TestIntegration -v)",
"test:sim:security": "(npm run compile && cd test/simulation && export PATH=\"$PWD/go/bin:$PATH\" && GOPATH=$PWD/go GO111MODULE=on go test -run=TestSecurity -v)",
"test:sim:instability": "(npm run compile && cd test/simulation && export PATH=\"$PWD/go/bin:$PATH\" && GOPATH=$PWD/go GO111MODULE=on go test -run=TestInstability -v)",
"test:jest": "jest",
"test:seedutil": "jest seedutil",
"test:jest": "jest --rootDir test/jest",
"test:seedutil": "jest --rootDir seedutil",
"test:jest:watch": "jest --watch",
"typedoc": "typedoc --out typedoc --module commonjs --target es6 lib --readme none",
"preversion": "npm run lintNoFix && npm test && npm run compile",
Expand Down

0 comments on commit 1b642fb

Please sign in to comment.