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

(cherry picked from commit 9ff26f9de9)

Co-authored-by: Spencer <spencer@elastic.co>
This commit is contained in:
Kibana Machine 2022-07-11 11:08:47 -04:00 committed by GitHub
parent 2d107e4611
commit c668d83b93
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,
},
};