[jest] throw on module collision in node presets (#136012)

This commit is contained in:
Spencer 2022-07-11 09:02:21 -05:00 committed by GitHub
parent c7f5a20f1c
commit 9ff26f9de9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -43,4 +43,8 @@ module.exports = {
testEnvironment: 'node',
snapshotSerializers: [],
setupFiles: ['<rootDir>/node_modules/@kbn/test/target_node/jest/setup/babel_polyfill.js'],
haste: {
...preset.haste,
throwOnModuleCollision: true,
},
};

View file

@ -13,4 +13,8 @@ module.exports = {
testEnvironment: 'node',
snapshotSerializers: [],
setupFiles: ['<rootDir>/node_modules/@kbn/test/target_node/jest/setup/babel_polyfill.js'],
haste: {
...preset.haste,
throwOnModuleCollision: true,
},
};