Browse Source

Fix Jest config (#27834)

dariusk-working/4_3_0
Renaud Chaput 2 years ago committed by GitHub
parent
commit
da4f37020b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      .watchmanconfig
  2. 2
      jest.config.js

3
.watchmanconfig

@ -0,0 +1,3 @@
{
"ignore_dirs": ["node_modules/", "public/"]
}

2
jest.config.js

@ -19,7 +19,7 @@ const config = {
// Those packages are ESM, so we need them to be processed by Babel // Those packages are ESM, so we need them to be processed by Babel
transformIgnorePatterns: ['/node_modules/(?!(redent|strip-indent)/)'], transformIgnorePatterns: ['/node_modules/(?!(redent|strip-indent)/)'],
coverageDirectory: '<rootDir>/coverage', coverageDirectory: '<rootDir>/coverage',
moduleDirectories: ['<rootDir>/node_modules', '<rootDir>/app/javascript'], moduleDirectories: ['node_modules', '<rootDir>/app/javascript'],
moduleNameMapper: { moduleNameMapper: {
'\\.svg$': '<rootDir>/app/javascript/__mocks__/svg.js', '\\.svg$': '<rootDir>/app/javascript/__mocks__/svg.js',
}, },

Loading…
Cancel
Save