Chore: Switch yarn 2 to plug-n-play strategy (#40300)

This commit is contained in:
kay delaney
2021-10-27 14:21:07 +01:00
committed by GitHub
parent 690849cfd6
commit 3a7c5a0755
65 changed files with 3122 additions and 1393 deletions

View File

@@ -6,7 +6,7 @@ process.env.TZ = 'Pacific/Easter';
module.exports = {
verbose: false,
transform: {
'^.+\\.(ts|tsx|js|jsx)$': 'ts-jest',
'^.+\\.(ts|tsx|js|jsx)$': require.resolve('ts-jest'),
},
transformIgnorePatterns: [
'node_modules/(?!(ol)/)', // <- exclude the open layers library
@@ -27,11 +27,6 @@ module.exports = {
'\\.svg': '<rootDir>/public/test/mocks/svg.ts',
'\\.css': '<rootDir>/public/test/mocks/style.ts',
'monaco-editor/esm/vs/editor/editor.api': '<rootDir>/public/test/mocks/monaco.ts',
'^react($|/.+)$': '<rootDir>/node_modules/react$1',
'^react-router(.+)$': '<rootDir>/node_modules/react-router$1',
'^react-hook-form$': '<rootDir>/node_modules/react-hook-form',
'^enzyme($|/.+)$': '<rootDir>/node_modules/enzyme$1',
'^jquery$': '<rootDir>/node_modules/jquery',
},
watchPathIgnorePatterns: ['<rootDir>/node_modules/'],
};