Skip to content

Commit 34a41ea

Browse files
committed
fix(tests): CI fixes
1 parent fa6f60f commit 34a41ea

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
dist: trusty
22
sudo: required
33
language: node_js
4-
cache: yarn
4+
cache: npm
55
git:
66
depth: 5
77
node_js:
@@ -10,10 +10,10 @@ node_js:
1010
- "6"
1111
before_install:
1212
- sudo sysctl fs.inotify.max_user_watches=524288
13-
- yarn global add greenkeeper-lockfile@1 rimraf
13+
- npm i -g greenkeeper-lockfile@1 rimraf
1414
before_script:
1515
# - greenkeeper-lockfile-update
1616
script:
17-
- yarn test
17+
- npm test
1818
after_script:
1919
# - greenkeeper-lockfile-upload

appveyor.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,15 @@ install:
2323
- ps: Install-Product node $env:nodejs_version
2424
- set CI=true
2525
- set AppVeyor=true
26-
- yarn global add rimraf
27-
- yarn
26+
- npm i -g rimraf
27+
- npm ci || npm install
2828

2929
build: off
3030

3131
cache:
32-
- "%LOCALAPPDATA%\\Yarn"
32+
- "%LOCALAPPDATA%\\npm-cache"
3333

3434
test_script:
3535
- node --version
3636
- npm --version
37-
- yarn --version
38-
- cmd: yarn test
37+
- cmd: npm test

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = {
88
coverageDirectory: 'test_coverage_dir',
99
collectCoverageFrom: ['src/**/*.tsx', 'src/**/*.ts'],
1010
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
11+
testEnvironment: 'node',
1112
globals: {
1213
'ts-jest': {
1314
tsConfig: 'tsconfig.base.json',

0 commit comments

Comments
 (0)