From cb5b4a73e25cf5c1518785ed9a39f7ca301da8ff Mon Sep 17 00:00:00 2001 From: M4rk9696 Date: Sat, 31 Aug 2019 14:46:59 +0530 Subject: [PATCH] Add moduleFileExtensions in tests --- packages/jest-core/src/__tests__/TestScheduler.test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/jest-core/src/__tests__/TestScheduler.test.js b/packages/jest-core/src/__tests__/TestScheduler.test.js index 4c78a65f60d7..083726adca4f 100644 --- a/packages/jest-core/src/__tests__/TestScheduler.test.js +++ b/packages/jest-core/src/__tests__/TestScheduler.test.js @@ -87,6 +87,7 @@ test('schedule tests run in parallel per default', async () => { const test = { context: { config: { + moduleFileExtensions: ['.js'], runner: 'jest-runner-parallel', transform: [], }, @@ -109,6 +110,7 @@ test('schedule tests run in serial if the runner flags them', async () => { const test = { context: { config: { + moduleFileExtensions: ['.js'], runner: 'jest-runner-serial', transform: [], }, @@ -131,6 +133,7 @@ test('should bail after `n` failures', async () => { const test = { context: { config: { + moduleFileExtensions: ['.js'], rootDir: './', runner: 'jest-runner-serial', transform: [], @@ -162,6 +165,7 @@ test('should not bail if less than `n` failures', async () => { const test = { context: { config: { + moduleFileExtensions: ['.js'], rootDir: './', runner: 'jest-runner-serial', transform: [], @@ -193,6 +197,7 @@ test('should set runInBand to run in serial', async () => { const test = { context: { config: { + moduleFileExtensions: ['.js'], runner: 'jest-runner-parallel', transform: [], }, @@ -218,6 +223,7 @@ test('should set runInBand to not run in serial', async () => { const test = { context: { config: { + moduleFileExtensions: ['.js'], runner: 'jest-runner-parallel', transform: [], },