1
0
mirror of https://github.com/oceanprotocol/status synced 2024-11-24 11:01:30 +01:00

travis fixes

This commit is contained in:
Matthias Kretschmann 2019-12-08 16:28:26 +01:00
parent fa51b4ac1a
commit 9c129af275
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 12 additions and 2 deletions

View File

@ -2,6 +2,11 @@ dist: xenial
language: node_js
node_js: node
cache:
npm: true
directories:
- .next/cache
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter

View File

@ -1,5 +1,5 @@
module.exports = {
preset: 'ts-jest/presets/js-with-babel',
preset: 'ts-jest/presets/js-with-ts',
setupFilesAfterEnv: ['<rootDir>/jest/setup.ts'],
globals: {
'ts-jest': {
@ -12,7 +12,12 @@ module.exports = {
'<rootDir>/jest/__mocks__/fileMock.js',
'\\.svg': '<rootDir>/jest/__mocks__/svgrMock.js'
},
testPathIgnorePatterns: ['.next/', 'node_modules/', 'build/', 'coverage/'],
testPathIgnorePatterns: [
'<rootDir>/.next',
'<rootDir>/node_modules',
'<rootDir>/build',
'<rootDir>/coverage'
],
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/@types/**/*'],
collectCoverage: true
}