Skip to content

Commit cb5b4a7

Browse files
committed
Add moduleFileExtensions in tests
1 parent a5c1213 commit cb5b4a7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/jest-core/src/__tests__/TestScheduler.test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ test('schedule tests run in parallel per default', async () => {
8787
const test = {
8888
context: {
8989
config: {
90+
moduleFileExtensions: ['.js'],
9091
runner: 'jest-runner-parallel',
9192
transform: [],
9293
},
@@ -109,6 +110,7 @@ test('schedule tests run in serial if the runner flags them', async () => {
109110
const test = {
110111
context: {
111112
config: {
113+
moduleFileExtensions: ['.js'],
112114
runner: 'jest-runner-serial',
113115
transform: [],
114116
},
@@ -131,6 +133,7 @@ test('should bail after `n` failures', async () => {
131133
const test = {
132134
context: {
133135
config: {
136+
moduleFileExtensions: ['.js'],
134137
rootDir: './',
135138
runner: 'jest-runner-serial',
136139
transform: [],
@@ -162,6 +165,7 @@ test('should not bail if less than `n` failures', async () => {
162165
const test = {
163166
context: {
164167
config: {
168+
moduleFileExtensions: ['.js'],
165169
rootDir: './',
166170
runner: 'jest-runner-serial',
167171
transform: [],
@@ -193,6 +197,7 @@ test('should set runInBand to run in serial', async () => {
193197
const test = {
194198
context: {
195199
config: {
200+
moduleFileExtensions: ['.js'],
196201
runner: 'jest-runner-parallel',
197202
transform: [],
198203
},
@@ -218,6 +223,7 @@ test('should set runInBand to not run in serial', async () => {
218223
const test = {
219224
context: {
220225
config: {
226+
moduleFileExtensions: ['.js'],
221227
runner: 'jest-runner-parallel',
222228
transform: [],
223229
},

0 commit comments

Comments
 (0)