From 9c129af275dbd7840b8e38b7cf69e31f9b61dcbb Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sun, 8 Dec 2019 16:28:26 +0100 Subject: [PATCH] travis fixes --- .travis.yml | 5 +++++ jest.config.js | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 437a17c..547eddb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/jest.config.js b/jest.config.js index e73d6eb..d28a831 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,5 +1,5 @@ module.exports = { - preset: 'ts-jest/presets/js-with-babel', + preset: 'ts-jest/presets/js-with-ts', setupFilesAfterEnv: ['/jest/setup.ts'], globals: { 'ts-jest': { @@ -12,7 +12,12 @@ module.exports = { '/jest/__mocks__/fileMock.js', '\\.svg': '/jest/__mocks__/svgrMock.js' }, - testPathIgnorePatterns: ['.next/', 'node_modules/', 'build/', 'coverage/'], + testPathIgnorePatterns: [ + '/.next', + '/node_modules', + '/build', + '/coverage' + ], collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/@types/**/*'], collectCoverage: true }