@@ -16,14 +16,14 @@ function main() {
1616function verifyDirectoryStructure ( ) {
1717 assertExists ( 'package.json' ) ;
1818 assertExists ( 'jest.config.json' ) ;
19- assertExists ( 'globalSetup.mjs ' ) ;
20- assertExists ( 'globalTeardown.mjs ' ) ;
21- assertExists ( 'customReporter.mjs ' ) ;
22- assertExists ( 'src/entry1.test.mjs ' ) ;
23- assertExists ( 'src/entry2.test.mjs ' ) ;
24- assertExists ( '_.._/linked-dependencies/bundled/reporters/default.mjs ' ) ;
25- assertExists ( 'bundled_externals/jest-environment-emit/node.mjs ' ) ;
26- assertExists ( 'bundled_externals/lodash/noop.mjs ' ) ;
19+ assertExists ( 'globalSetup.js ' ) ;
20+ assertExists ( 'globalTeardown.js ' ) ;
21+ assertExists ( 'customReporter.js ' ) ;
22+ assertExists ( 'src/entry1.test.js ' ) ;
23+ assertExists ( 'src/entry2.test.js ' ) ;
24+ assertExists ( '_.._/linked-dependencies/bundled/reporters/default.js ' ) ;
25+ assertExists ( 'bundled_externals/jest-environment-emit/node.js ' ) ;
26+ assertExists ( 'bundled_externals/lodash/noop.js ' ) ;
2727 assertDoesNotExist ( 'node_modules' ) ;
2828 assertDoesNotExist ( '_.._/linked-dependencies/external' ) ;
2929}
@@ -32,20 +32,20 @@ function verifyJestConfig() {
3232 const { coverageDirectory, globalSetup, reporters, setupFilesAfterEnv, testEnvironment, testMatch, testRunner, globalTeardown } = parseJSON ( 'jest.config.json' ) ;
3333
3434 assertEqual ( coverageDirectory , '<rootDir>/coverage' , 'coverageDirectory' ) ;
35- assertEqual ( globalSetup , '<rootDir>/globalSetup.mjs ' , 'globalSetup' ) ;
35+ assertEqual ( globalSetup , '<rootDir>/globalSetup.js ' , 'globalSetup' ) ;
3636 assertEqual ( reporters . length , 4 , 'reporters length' ) ;
3737 assertEqual ( reporters [ 0 ] [ 0 ] , 'default' , 'reporters[0]' ) ;
38- assertEqual ( reporters [ 1 ] [ 0 ] , '<rootDir>/_.._/linked-dependencies/bundled/reporters/default.mjs ' , 'reporters[1]' ) ;
38+ assertEqual ( reporters [ 1 ] [ 0 ] , '<rootDir>/_.._/linked-dependencies/bundled/reporters/default.js ' , 'reporters[1]' ) ;
3939 assertEqual ( reporters [ 2 ] [ 0 ] , '@linked-dependencies/external/reporter' , 'reporters[2]' ) ;
40- assertEqual ( reporters [ 3 ] [ 0 ] , '<rootDir>/customReporter.mjs ' , 'reporters[3]' ) ;
40+ assertEqual ( reporters [ 3 ] [ 0 ] , '<rootDir>/customReporter.js ' , 'reporters[3]' ) ;
4141 assertEqual ( setupFilesAfterEnv . length , 1 , 'setupFilesAfterEnv.length' ) ;
42- assertEqual ( setupFilesAfterEnv [ 0 ] , '<rootDir>/bundled_externals/lodash/noop.mjs ' , 'setupFilesAfterEnv[0]' ) ;
43- assertEqual ( testEnvironment , '<rootDir>/bundled_externals/jest-environment-emit/node.mjs ' , 'testEnvironment' ) ;
42+ assertEqual ( setupFilesAfterEnv [ 0 ] , '<rootDir>/bundled_externals/lodash/noop.js ' , 'setupFilesAfterEnv[0]' ) ;
43+ assertEqual ( testEnvironment , '<rootDir>/bundled_externals/jest-environment-emit/node.js ' , 'testEnvironment' ) ;
4444 assertEqual ( testMatch . length , 2 , 'testMatch.length' ) ;
45- assertEqual ( testMatch [ 0 ] , '<rootDir>/src/entry1.test.mjs ' , 'testMatch[0]' ) ;
46- assertEqual ( testMatch [ 1 ] , '<rootDir>/src/entry2.test.mjs ' , 'testMatch[1]' ) ;
45+ assertEqual ( testMatch [ 0 ] , '<rootDir>/src/entry1.test.js ' , 'testMatch[0]' ) ;
46+ assertEqual ( testMatch [ 1 ] , '<rootDir>/src/entry2.test.js ' , 'testMatch[1]' ) ;
4747 assertEqual ( testRunner , 'jest-circus/runner' , 'testRunner' ) ;
48- assertEqual ( globalTeardown , '<rootDir>/globalTeardown.mjs ' , 'globalTeardown' ) ;
48+ assertEqual ( globalTeardown , '<rootDir>/globalTeardown.js ' , 'globalTeardown' ) ;
4949}
5050
5151function assertExists ( fileName ) {
0 commit comments