add missing testtimeout to intialprojectoptions #12928
nodejs.yml
on: pull_request
prepare-yarn-cache-ubuntu
/
Prepare yarn cache for ubuntu-latest
13s
prepare-yarn-cache-macos
/
Prepare yarn cache for macos-latest
35s
prepare-yarn-cache-windows
/
Prepare yarn cache for windows-latest
1m 1s
TypeScript Compatibility
4m 18s
Typecheck Examples and Tests
2m 49s
Lint
2m 24s
Validate Yarn dependencies and constraints
18s
Node LTS on Ubuntu with leak detection
2m 13s
Matrix: test-coverage
Matrix: test-ubuntu
Matrix: test-macos
Matrix: test-windows
Annotations
176 errors
prints the config object:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `prints the config object 1`
- Snapshot - 0
+ Received + 1
@@ -56,10 +56,11 @@
"testPathIgnorePatterns": [],
"testRegex": [
"\\.test\\.js$"
],
"testRunner": "myRunner",
+ "testTimeout": 5000,
"transform": [],
"transformIgnorePatterns": [],
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": []
},
at Object.toMatchSnapshot (packages/jest-core/src/lib/__tests__/logDebugMessages.test.ts:64:19)
|
Node LTS on Ubuntu with coverage (4/4)
Process completed with exit code 1.
|
ScriptTransformer › uses the supplied preprocessor:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"pre
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTim
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied async preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":
|
ScriptTransformer › uses multiple preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses multiple preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modul
|
ScriptTransformer › uses mixture of sync/async preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses mixture of sync/async preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"mo
|
ScriptTransformer › passes expected transform options to getCacheKey:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testL
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOpt
|
ScriptTransformer › passes expected transform options to getCacheKeyAsync:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKeyAsync 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_async_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions
|
Node LTS on Ubuntu with coverage (3/4)
Process completed with exit code 1.
|
ScriptTransformer › uses the supplied preprocessor:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"pre
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTim
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied async preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":
|
ScriptTransformer › uses multiple preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses multiple preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modul
|
ScriptTransformer › uses mixture of sync/async preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses mixture of sync/async preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"mo
|
ScriptTransformer › passes expected transform options to getCacheKey:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testL
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOpt
|
ScriptTransformer › passes expected transform options to getCacheKeyAsync:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKeyAsync 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_async_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions
|
Ubuntu with shard 3/4 / Node v16.x
Process completed with exit code 1.
|
ScriptTransformer › uses the supplied preprocessor:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"pre
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTim
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied async preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":
|
ScriptTransformer › uses multiple preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses multiple preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modul
|
ScriptTransformer › uses mixture of sync/async preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses mixture of sync/async preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"mo
|
ScriptTransformer › passes expected transform options to getCacheKey:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testL
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOpt
|
ScriptTransformer › passes expected transform options to getCacheKeyAsync:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKeyAsync 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_async_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions
|
Ubuntu with shard 3/4 / Node v20.x
Process completed with exit code 1.
|
prints the config object:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `prints the config object 1`
- Snapshot - 0
+ Received + 1
@@ -56,10 +56,11 @@
"testPathIgnorePatterns": [],
"testRegex": [
"\\.test\\.js$"
],
"testRunner": "myRunner",
+ "testTimeout": 5000,
"transform": [],
"transformIgnorePatterns": [],
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": []
},
at Object.toMatchSnapshot (packages/jest-core/src/lib/__tests__/logDebugMessages.test.ts:64:19)
|
Ubuntu with shard 4/4 / Node LTS using jest-jasmine2
Process completed with exit code 1.
|
prints the config object:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `prints the config object 1`
- Snapshot - 0
+ Received + 1
@@ -56,10 +56,11 @@
"testPathIgnorePatterns": [],
"testRegex": [
"\\.test\\.js$"
],
"testRunner": "myRunner",
+ "testTimeout": 5000,
"transform": [],
"transformIgnorePatterns": [],
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": []
},
at Object.toMatchSnapshot (packages/jest-core/src/lib/__tests__/logDebugMessages.test.ts:64:19)
|
Ubuntu with shard 4/4 / Node v20.x
Process completed with exit code 1.
|
prints the config object:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `prints the config object 1`
- Snapshot - 0
+ Received + 1
@@ -56,10 +56,11 @@
"testPathIgnorePatterns": [],
"testRegex": [
"\\.test\\.js$"
],
"testRunner": "myRunner",
+ "testTimeout": 5000,
"transform": [],
"transformIgnorePatterns": [],
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": []
},
at Object.toMatchSnapshot (packages/jest-core/src/lib/__tests__/logDebugMessages.test.ts:64:19)
|
Ubuntu with shard 4/4 / Node v16.x
Process completed with exit code 1.
|
prints the config object:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `prints the config object 1`
- Snapshot - 0
+ Received + 1
@@ -56,10 +56,11 @@
"testPathIgnorePatterns": [],
"testRegex": [
"\\.test\\.js$"
],
"testRunner": "myRunner",
+ "testTimeout": 5000,
"transform": [],
"transformIgnorePatterns": [],
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": []
},
at Object.toMatchSnapshot (packages/jest-core/src/lib/__tests__/logDebugMessages.test.ts:64:19)
|
Ubuntu with shard 4/4 / Node v21.x
Process completed with exit code 1.
|
prints the config object:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `prints the config object 1`
- Snapshot - 0
+ Received + 1
@@ -56,10 +56,11 @@
"testPathIgnorePatterns": [],
"testRegex": [
"\\.test\\.js$"
],
"testRunner": "myRunner",
+ "testTimeout": 5000,
"transform": [],
"transformIgnorePatterns": [],
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": []
},
at Object.toMatchSnapshot (packages/jest-core/src/lib/__tests__/logDebugMessages.test.ts:64:19)
|
Ubuntu with shard 4/4 / Node v18.x
Process completed with exit code 1.
|
ScriptTransformer › uses the supplied preprocessor:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"pre
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTim
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied async preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":
|
ScriptTransformer › uses multiple preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses multiple preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modul
|
ScriptTransformer › uses mixture of sync/async preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses mixture of sync/async preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"mo
|
ScriptTransformer › passes expected transform options to getCacheKey:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testL
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOpt
|
ScriptTransformer › passes expected transform options to getCacheKeyAsync:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKeyAsync 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_async_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions
|
Ubuntu with shard 3/4 / Node v18.x
Process completed with exit code 1.
|
ScriptTransformer › uses the supplied preprocessor:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"pre
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTim
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied async preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":
|
ScriptTransformer › uses multiple preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses multiple preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modul
|
ScriptTransformer › uses mixture of sync/async preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses mixture of sync/async preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"mo
|
ScriptTransformer › passes expected transform options to getCacheKey:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testL
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOpt
|
ScriptTransformer › passes expected transform options to getCacheKeyAsync:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKeyAsync 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_async_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions
|
Ubuntu with shard 3/4 / Node LTS using jest-jasmine2
Process completed with exit code 1.
|
ScriptTransformer › uses the supplied preprocessor:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"pre
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTim
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied async preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":
|
ScriptTransformer › uses multiple preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses multiple preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modul
|
ScriptTransformer › uses mixture of sync/async preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses mixture of sync/async preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"mo
|
ScriptTransformer › passes expected transform options to getCacheKey:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testL
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOpt
|
ScriptTransformer › passes expected transform options to getCacheKeyAsync:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKeyAsync 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_async_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions
|
Ubuntu with shard 3/4 / Node v21.x
Process completed with exit code 1.
|
prints the config object:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `prints the config object 1`
- Snapshot - 0
+ Received + 1
@@ -56,10 +56,11 @@
"testPathIgnorePatterns": [],
"testRegex": [
"\\.test\\.js$"
],
"testRunner": "myRunner",
+ "testTimeout": 5000,
"transform": [],
"transformIgnorePatterns": [],
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": []
},
at Object.toMatchSnapshot (packages/jest-core/src/lib/__tests__/logDebugMessages.test.ts:64:19)
|
Windows with shard 4/4 / Node LTS using jest-jasmine2
Process completed with exit code 1.
|
prints the config object:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `prints the config object 1`
- Snapshot - 0
+ Received + 1
@@ -56,10 +56,11 @@
"testPathIgnorePatterns": [],
"testRegex": [
"\\.test\\.js$"
],
"testRunner": "myRunner",
+ "testTimeout": 5000,
"transform": [],
"transformIgnorePatterns": [],
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": []
},
at Object.toMatchSnapshot (packages/jest-core/src/lib/__tests__/logDebugMessages.test.ts:64:19)
|
Windows with shard 4/4 / Node v21.x
Process completed with exit code 1.
|
prints the config object:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `prints the config object 1`
- Snapshot - 0
+ Received + 1
@@ -56,10 +56,11 @@
"testPathIgnorePatterns": [],
"testRegex": [
"\\.test\\.js$"
],
"testRunner": "myRunner",
+ "testTimeout": 5000,
"transform": [],
"transformIgnorePatterns": [],
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": []
},
at Object.toMatchSnapshot (packages/jest-core/src/lib/__tests__/logDebugMessages.test.ts:64:19)
|
Windows with shard 4/4 / Node v16.x
Process completed with exit code 1.
|
prints the config object:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `prints the config object 1`
- Snapshot - 0
+ Received + 1
@@ -56,10 +56,11 @@
"testPathIgnorePatterns": [],
"testRegex": [
"\\.test\\.js$"
],
"testRunner": "myRunner",
+ "testTimeout": 5000,
"transform": [],
"transformIgnorePatterns": [],
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": []
},
at Object.toMatchSnapshot (packages/jest-core/src/lib/__tests__/logDebugMessages.test.ts:64:19)
|
Windows with shard 4/4 / Node v18.x
Process completed with exit code 1.
|
prints the config object:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `prints the config object 1`
- Snapshot - 0
+ Received + 1
@@ -56,10 +56,11 @@
"testPathIgnorePatterns": [],
"testRegex": [
"\\.test\\.js$"
],
"testRunner": "myRunner",
+ "testTimeout": 5000,
"transform": [],
"transformIgnorePatterns": [],
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": []
},
at Object.toMatchSnapshot (packages/jest-core/src/lib/__tests__/logDebugMessages.test.ts:64:19)
|
Windows with shard 4/4 / Node v20.x
Process completed with exit code 1.
|
prints the config object:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `prints the config object 1`
- Snapshot - 0
+ Received + 1
@@ -56,10 +56,11 @@
"testPathIgnorePatterns": [],
"testRegex": [
"\\.test\\.js$"
],
"testRunner": "myRunner",
+ "testTimeout": 5000,
"transform": [],
"transformIgnorePatterns": [],
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": []
},
at Object.toMatchSnapshot (packages/jest-core/src/lib/__tests__/logDebugMessages.test.ts:64:19)
|
macOS with shard 3/3 / Node LTS using jest-jasmine2
Process completed with exit code 1.
|
ScriptTransformer › uses the supplied preprocessor:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"pre
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTim
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied async preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":
|
ScriptTransformer › uses multiple preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses multiple preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modul
|
ScriptTransformer › uses mixture of sync/async preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses mixture of sync/async preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"mo
|
ScriptTransformer › passes expected transform options to getCacheKey:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testL
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOpt
|
ScriptTransformer › passes expected transform options to getCacheKeyAsync:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKeyAsync 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_async_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions
|
macOS with shard 2/3 / Node v18.x
Process completed with exit code 1.
|
ScriptTransformer › uses the supplied preprocessor:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"pre
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTim
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied async preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":
|
ScriptTransformer › uses multiple preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses multiple preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modul
|
ScriptTransformer › uses mixture of sync/async preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses mixture of sync/async preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"mo
|
ScriptTransformer › passes expected transform options to getCacheKey:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testL
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOpt
|
ScriptTransformer › passes expected transform options to getCacheKeyAsync:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKeyAsync 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_async_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions
|
macOS with shard 2/3 / Node LTS using jest-jasmine2
Process completed with exit code 1.
|
ScriptTransformer › uses the supplied preprocessor:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"pre
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTim
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied async preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":
|
ScriptTransformer › uses multiple preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses multiple preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modul
|
ScriptTransformer › uses mixture of sync/async preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses mixture of sync/async preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"mo
|
ScriptTransformer › passes expected transform options to getCacheKey:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testL
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOpt
|
ScriptTransformer › passes expected transform options to getCacheKeyAsync:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKeyAsync 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_async_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions
|
macOS with shard 2/3 / Node v16.x
Process completed with exit code 1.
|
ScriptTransformer › uses the supplied preprocessor:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"pre
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTim
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied async preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":
|
ScriptTransformer › uses multiple preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses multiple preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modul
|
ScriptTransformer › uses mixture of sync/async preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses mixture of sync/async preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"mo
|
ScriptTransformer › passes expected transform options to getCacheKey:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testL
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOpt
|
ScriptTransformer › passes expected transform options to getCacheKeyAsync:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKeyAsync 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_async_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions
|
Windows with shard 3/4 / Node LTS using jest-jasmine2
Process completed with exit code 1.
|
ScriptTransformer › uses the supplied preprocessor:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"pre
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTim
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied async preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":
|
ScriptTransformer › uses multiple preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses multiple preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modul
|
ScriptTransformer › uses mixture of sync/async preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses mixture of sync/async preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"mo
|
ScriptTransformer › passes expected transform options to getCacheKey:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testL
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOpt
|
ScriptTransformer › passes expected transform options to getCacheKeyAsync:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKeyAsync 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_async_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions
|
Windows with shard 3/4 / Node v18.x
Process completed with exit code 1.
|
ScriptTransformer › uses the supplied preprocessor:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"pre
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTim
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied async preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":
|
ScriptTransformer › uses multiple preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses multiple preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modul
|
ScriptTransformer › uses mixture of sync/async preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses mixture of sync/async preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"mo
|
ScriptTransformer › passes expected transform options to getCacheKey:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testL
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOpt
|
ScriptTransformer › passes expected transform options to getCacheKeyAsync:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKeyAsync 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_async_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions
|
Windows with shard 3/4 / Node v20.x
Process completed with exit code 1.
|
ScriptTransformer › uses the supplied preprocessor:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"pre
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTim
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied async preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":
|
ScriptTransformer › uses multiple preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses multiple preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modul
|
ScriptTransformer › uses mixture of sync/async preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses mixture of sync/async preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"mo
|
ScriptTransformer › passes expected transform options to getCacheKey:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testL
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOpt
|
ScriptTransformer › passes expected transform options to getCacheKeyAsync:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKeyAsync 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_async_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions
|
Windows with shard 3/4 / Node v16.x
Process completed with exit code 1.
|
ScriptTransformer › uses the supplied preprocessor:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"pre
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTim
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied async preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":
|
ScriptTransformer › uses multiple preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses multiple preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modul
|
ScriptTransformer › uses mixture of sync/async preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses mixture of sync/async preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"mo
|
ScriptTransformer › passes expected transform options to getCacheKey:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testL
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOpt
|
ScriptTransformer › passes expected transform options to getCacheKeyAsync:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKeyAsync 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_async_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions
|
Windows with shard 3/4 / Node v21.x
Process completed with exit code 1.
|
prints the config object:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `prints the config object 1`
- Snapshot - 0
+ Received + 1
@@ -56,10 +56,11 @@
"testPathIgnorePatterns": [],
"testRegex": [
"\\.test\\.js$"
],
"testRunner": "myRunner",
+ "testTimeout": 5000,
"transform": [],
"transformIgnorePatterns": [],
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": []
},
at Object.toMatchSnapshot (packages/jest-core/src/lib/__tests__/logDebugMessages.test.ts:64:19)
|
macOS with shard 3/3 / Node v16.x
Process completed with exit code 1.
|
prints the config object:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `prints the config object 1`
- Snapshot - 0
+ Received + 1
@@ -56,10 +56,11 @@
"testPathIgnorePatterns": [],
"testRegex": [
"\\.test\\.js$"
],
"testRunner": "myRunner",
+ "testTimeout": 5000,
"transform": [],
"transformIgnorePatterns": [],
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": []
},
at Object.toMatchSnapshot (packages/jest-core/src/lib/__tests__/logDebugMessages.test.ts:64:19)
|
macOS with shard 3/3 / Node v20.x
Process completed with exit code 1.
|
prints the config object:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `prints the config object 1`
- Snapshot - 0
+ Received + 1
@@ -56,10 +56,11 @@
"testPathIgnorePatterns": [],
"testRegex": [
"\\.test\\.js$"
],
"testRunner": "myRunner",
+ "testTimeout": 5000,
"transform": [],
"transformIgnorePatterns": [],
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": []
},
at Object.toMatchSnapshot (packages/jest-core/src/lib/__tests__/logDebugMessages.test.ts:64:19)
|
macOS with shard 3/3 / Node v18.x
Process completed with exit code 1.
|
ScriptTransformer › uses the supplied preprocessor:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"pre
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTim
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied async preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":
|
ScriptTransformer › uses multiple preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses multiple preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modul
|
ScriptTransformer › uses mixture of sync/async preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses mixture of sync/async preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"mo
|
ScriptTransformer › passes expected transform options to getCacheKey:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testL
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOpt
|
ScriptTransformer › passes expected transform options to getCacheKeyAsync:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKeyAsync 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_async_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions
|
macOS with shard 2/3 / Node v20.x
Process completed with exit code 1.
|
prints the config object:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `prints the config object 1`
- Snapshot - 0
+ Received + 1
@@ -56,10 +56,11 @@
"testPathIgnorePatterns": [],
"testRegex": [
"\\.test\\.js$"
],
"testRunner": "myRunner",
+ "testTimeout": 5000,
"transform": [],
"transformIgnorePatterns": [],
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": []
},
at Object.toMatchSnapshot (packages/jest-core/src/lib/__tests__/logDebugMessages.test.ts:64:19)
|
macOS with shard 3/3 / Node v21.x
Process completed with exit code 1.
|
ScriptTransformer › uses the supplied preprocessor:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"pre
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTim
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, uses the supplied async preprocessor 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":
|
ScriptTransformer › uses multiple preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses multiple preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modul
|
ScriptTransformer › uses mixture of sync/async preprocessors:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer uses mixture of sync/async preprocessors 1`
- Snapshot - 1
+ Received + 1
"const TRANSFORMED = {
filename: '/fruits/banana.js',
script: 'module.exports = "banana";',
- config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testLocationInResults":false,"testMatch":[],"testPathIgnorePatterns":[],"testRegex":["\\.test\\.js$"],"testRunner":"jest-circus/runner","transform":[["\\.js$","test_async_preprocessor",{}],["\\.css$","css-preprocessor",{}]],"transformIgnorePatterns":["/node_modules/"],"waitNextEventLoopTurnForUnhandledRejectionEvents":false,"watchPathIgnorePatterns":[]},"configString":"{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/cache/\",\"clearMocks\":false,\"collectCoverageFrom\":[\"src\",\"!public\"],\"coverageDirectory\":\"coverage\",\"coveragePathIgnorePatterns\":[],\"cwd\":\"/test_root_dir/\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extensionsToTreatAsEsm\":[],\"fakeTimers\":{\"enableGlobally\":false},\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{},\"id\":\"test\",\"injectGlobals\":true,\"moduleDirectories\":[],\"moduleFileExtensions\":[\"js\"],\"moduleNameMapper\":[],\"modulePathIgnorePatterns\":[],\"modulePaths\":[],\"openHandlesTimeout\":1000,\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/\",\"roots\":[],\"runner\":\"jest-runner\",\"runtime\":\"/test_module_loader_path\",\"sandboxInjectedGlobals\":[],\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"skipNodeResolution\":false,\"slowTestThreshold\":5,\"snapshotFormat\":{},\"snapshotSerializers\":[],\"testEnvironment\":\"node\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[],\"testPathIgnorePatterns\":[],\"testRegex\":[\"\\\\.test\\\\.js$\"],\"testRunner\":\"jest-circus/runner\",\"transform\":[[\"\\\\.js$\",\"test_async_preprocessor\",{}],[\"\\\\.css$\",\"css-preprocessor\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\"],\"waitNextEventLoopTurnForUnhandledRejectionEvents\":false,\"watchPathIgnorePatterns\":[]}","transformerConfig":{}}',
+ config: '{"collectCoverage":false,"collectCoverageFrom":[],"coverageProvider":"babel","supportsDynamicImport":false,"supportsExportNamespaceFrom":false,"supportsStaticESM":false,"supportsTopLevelAwait":false,"instrument":false,"cacheFS":{},"config":{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"mo
|
ScriptTransformer › passes expected transform options to getCacheKey:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions":{},"testL
|
ScriptTransformer › in async mode:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer in async mode, passes expected transform options to getCacheKey 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOpt
|
ScriptTransformer › passes expected transform options to getCacheKeyAsync:
undefined#L1
expect(received).toMatchSnapshot()
Snapshot name: `ScriptTransformer passes expected transform options to getCacheKeyAsync 1`
Snapshot: [MockFunction] {
"calls": Array [
Array [
"module.exports = "banana";",
"/fruits/banana.js",
Object {
"cacheFS": Map {
"/fruits/banana.js" => "module.exports = "banana";",
},
"collectCoverage": true,
"collectCoverageFrom": Array [],
"config": Object {
"automock": false,
"cache": true,
"cacheDirectory": "/cache/",
"clearMocks": false,
"collectCoverageFrom": Array [
"src",
"!public",
],
"coverageDirectory": "coverage",
"coveragePathIgnorePatterns": Array [],
"cwd": "/test_root_dir/",
"detectLeaks": false,
"detectOpenHandles": false,
"displayName": undefined,
"errorOnDeprecated": false,
"extensionsToTreatAsEsm": Array [],
"fakeTimers": Object {
"enableGlobally": false,
},
"filter": undefined,
"forceCoverageMatch": Array [],
"globalSetup": undefined,
"globalTeardown": undefined,
"globals": Object {},
"haste": Object {},
"id": "test",
"injectGlobals": true,
"moduleDirectories": Array [],
"moduleFileExtensions": Array [
"js",
],
"moduleNameMapper": Array [],
"modulePathIgnorePatterns": Array [],
"modulePaths": Array [],
"openHandlesTimeout": 1000,
"prettierPath": "prettier",
"resetMocks": false,
"resetModules": false,
"resolver": undefined,
"restoreMocks": false,
"rootDir": "/",
"roots": Array [],
"runner": "jest-runner",
"runtime": "/test_module_loader_path",
"sandboxInjectedGlobals": Array [],
"setupFiles": Array [],
"setupFilesAfterEnv": Array [],
"skipFilter": false,
"skipNodeResolution": false,
"slowTestThreshold": 5,
"snapshotFormat": Object {},
"snapshotResolver": undefined,
"snapshotSerializers": Array [],
"testEnvironment": "node",
"testEnvironmentOptions": Object {},
"testLocationInResults": false,
"testMatch": Array [],
"testPathIgnorePatterns": Array [],
"testRegex": Array [
"\.test\.js$",
],
"testRunner": "jest-circus/runner",
"transform": Array [
Array [
"\.js$",
"test_async_preprocessor",
Object {
"configKey": "configValue",
},
],
],
"transformIgnorePatterns": Array [
"/node_modules/",
],
"unmockedModulePathPatterns": undefined,
"waitNextEventLoopTurnForUnhandledRejectionEvents": false,
"watchPathIgnorePatterns": Array [],
},
"configString": "{"automock":false,"cache":true,"cacheDirectory":"/cache/","clearMocks":false,"collectCoverageFrom":["src","!public"],"coverageDirectory":"coverage","coveragePathIgnorePatterns":[],"cwd":"/test_root_dir/","detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"extensionsToTreatAsEsm":[],"fakeTimers":{"enableGlobally":false},"forceCoverageMatch":[],"globals":{},"haste":{},"id":"test","injectGlobals":true,"moduleDirectories":[],"moduleFileExtensions":["js"],"moduleNameMapper":[],"modulePathIgnorePatterns":[],"modulePaths":[],"openHandlesTimeout":1000,"prettierPath":"prettier","resetMocks":false,"resetModules":false,"restoreMocks":false,"rootDir":"/","roots":[],"runner":"jest-runner","runtime":"/test_module_loader_path","sandboxInjectedGlobals":[],"setupFiles":[],"setupFilesAfterEnv":[],"skipFilter":false,"skipNodeResolution":false,"slowTestThreshold":5,"snapshotFormat":{},"snapshotSerializers":[],"testEnvironment":"node","testEnvironmentOptions
|
macOS with shard 2/3 / Node v21.x
Process completed with exit code 1.
|