mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 19:23:41 +01:00
Fix Jest config (#27834)
This commit is contained in:
parent
0d14fcebae
commit
da4f37020b
2 changed files with 4 additions and 1 deletions
3
.watchmanconfig
Normal file
3
.watchmanconfig
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"ignore_dirs": ["node_modules/", "public/"]
|
||||||
|
}
|
|
@ -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…
Reference in a new issue