mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
(cherry picked from commit 84e8e54a6e
)
Co-authored-by: Thomas Watson <watson@elastic.co>
This commit is contained in:
parent
367015cecf
commit
2cde6732d6
3 changed files with 13 additions and 7 deletions
|
@ -8,10 +8,14 @@
|
|||
|
||||
const preset = require('../jest-preset');
|
||||
|
||||
const presetClone = { ...preset };
|
||||
|
||||
delete presetClone.testEnvironment; // simply redefining as `testEnvironment: 'node'` has some weird side-effects (https://github.com/elastic/kibana/pull/138877)
|
||||
|
||||
/** @typedef {import("@jest/types").Config.InitialOptions} JestConfig */
|
||||
/** @type {JestConfig} */
|
||||
module.exports = {
|
||||
...preset,
|
||||
...presetClone,
|
||||
testMatch: ['**/integration_tests**/*.test.{js,mjs,ts,tsx}'],
|
||||
testPathIgnorePatterns: preset.testPathIgnorePatterns.filter(
|
||||
(pattern) => !pattern.includes('integration_tests')
|
||||
|
@ -40,7 +44,6 @@ module.exports = {
|
|||
? [['json', { file: 'jest-integration.json' }]]
|
||||
: ['html', 'text'],
|
||||
|
||||
testEnvironment: 'node',
|
||||
snapshotSerializers: [],
|
||||
setupFiles: ['<rootDir>/node_modules/@kbn/test/target_node/jest/setup/babel_polyfill.js'],
|
||||
haste: {
|
||||
|
|
|
@ -8,9 +8,12 @@
|
|||
|
||||
const preset = require('../jest-preset');
|
||||
|
||||
const presetClone = { ...preset };
|
||||
|
||||
delete presetClone.testEnvironment; // simply redefining as `testEnvironment: 'node'` has some weird side-effects (https://github.com/elastic/kibana/pull/138877#issuecomment-1222366247)
|
||||
|
||||
module.exports = {
|
||||
...preset,
|
||||
testEnvironment: 'node',
|
||||
...presetClone,
|
||||
snapshotSerializers: [],
|
||||
setupFiles: ['<rootDir>/node_modules/@kbn/test/target_node/jest/setup/babel_polyfill.js'],
|
||||
haste: {
|
||||
|
|
|
@ -28105,9 +28105,9 @@ undertaker@^1.2.1:
|
|||
undertaker-registry "^1.0.0"
|
||||
|
||||
undici@^5.1.1:
|
||||
version "5.5.1"
|
||||
resolved "https://registry.yarnpkg.com/undici/-/undici-5.5.1.tgz#baaf25844a99eaa0b22e1ef8d205bffe587c8f43"
|
||||
integrity sha512-MEvryPLf18HvlCbLSzCW0U00IMftKGI5udnjrQbC5D4P0Hodwffhv+iGfWuJwg16Y/TK11ZFK8i+BPVW2z/eAw==
|
||||
version "5.8.2"
|
||||
resolved "https://registry.yarnpkg.com/undici/-/undici-5.8.2.tgz#071fc8a6a5d24db0ad510ad442f607d9b09d5eec"
|
||||
integrity sha512-3KLq3pXMS0Y4IELV045fTxqz04Nk9Ms7yfBBHum3yxsTR4XNn+ZCaUbf/mWitgYDAhsplQ0B1G4S5D345lMO3A==
|
||||
|
||||
unfetch@^4.2.0:
|
||||
version "4.2.0"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue