From c24e84593d99ba635c238dd3df871fb86729867c Mon Sep 17 00:00:00 2001 From: Sbalbp Date: Sat, 21 Jul 2018 14:34:35 +0900 Subject: [PATCH] Transpile imports in node_modules --- .babelrc.js => babel.config.js | 0 jest.config.js | 1 + 2 files changed, 1 insertion(+) rename .babelrc.js => babel.config.js (100%) diff --git a/.babelrc.js b/babel.config.js similarity index 100% rename from .babelrc.js rename to babel.config.js diff --git a/jest.config.js b/jest.config.js index 5e923e9..e90342b 100644 --- a/jest.config.js +++ b/jest.config.js @@ -12,6 +12,7 @@ module.exports = { '^.+\\.js$': 'babel-jest', '\\.(gql|graphql)$': 'jest-transform-graphql', }, + transformIgnorePatterns: ['/node_modules/(?!vue-cli-plugin-apollo).+\\.js$'], moduleNameMapper: require('./aliases.config').jest, snapshotSerializers: ['jest-serializer-vue'], coverageDirectory: '/tests/unit/coverage',