diff --git a/CHANGELOG.md b/CHANGELOG.md index 9efb72ecf5a0..e2203c316f1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -147,7 +147,7 @@ - `[jest-haste-map]` Refactor `dependencyExtractor` and tests ([#7385](https://github.com/facebook/jest/pull/7385)) - `[docs]` Clearify conditional setting of `NODE_ENV` ([#7369](https://github.com/facebook/jest/pull/7369)) - `[docs]` Clarify conditional setting of `NODE_ENV` ([#7369](https://github.com/facebook/jest/pull/7369)) -- `[*]` Standardize file names ([#7316](https://github.com/facebook/jest/pull/7316), [#7266](https://github.com/facebook/jest/pull/7266), [#7238](https://github.com/facebook/jest/pull/7238), [#7314](https://github.com/facebook/jest/pull/7314), [#7467](https://github.com/facebook/jest/pull/7467), [#7464](https://github.com/facebook/jest/pull/7464)) +- `[*]` Standardize file names ([#7316](https://github.com/facebook/jest/pull/7316), [#7266](https://github.com/facebook/jest/pull/7266), [#7238](https://github.com/facebook/jest/pull/7238), [#7314](https://github.com/facebook/jest/pull/7314), [#7467](https://github.com/facebook/jest/pull/7467), [#7464](https://github.com/facebook/jest/pull/7464)), [#7471](https://github.com/facebook/jest/pull/7471)) - `[docs]` Add `testPathIgnorePatterns` in CLI documentation ([#7440](https://github.com/facebook/jest/pull/7440)) - `[docs]` Removed misleading text about `describe()` grouping together tests into a test suite ([#7434](https://github.com/facebook/jest/pull/7434)) diff --git a/e2e/__tests__/__snapshots__/before-all-filtered.js.snap b/e2e/__tests__/__snapshots__/before-all-filtered.js.snap deleted file mode 100644 index 5d614a1b0132..000000000000 --- a/e2e/__tests__/__snapshots__/before-all-filtered.js.snap +++ /dev/null @@ -1,19 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Correct BeforeAll run ensures the BeforeAll of ignored suite is not run 1`] = ` -" console.log __tests__/before-all-filtered.test.js:5 - beforeAll 1 - - console.log __tests__/before-all-filtered.test.js:8 - beforeEach 1 - - console.log __tests__/before-all-filtered.test.js:17 - It Foo - - console.log __tests__/before-all-filtered.test.js:11 - afterEach 1 - - console.log __tests__/before-all-filtered.test.js:14 - afterAll 1 -" -`; diff --git a/e2e/__tests__/__snapshots__/before-each-queue.js.snap b/e2e/__tests__/__snapshots__/before-each-queue.js.snap deleted file mode 100644 index edc7dc4cf516..000000000000 --- a/e2e/__tests__/__snapshots__/before-each-queue.js.snap +++ /dev/null @@ -1,19 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Correct beforeEach order ensures the correct order for beforeEach 1`] = ` -" console.log __tests__/before-each-queue.test.js:5 - BeforeEach - - console.log __tests__/before-each-queue.test.js:9 - It Foo - - console.log __tests__/before-each-queue.test.js:12 - BeforeEach Inline Foo - - console.log __tests__/before-each-queue.test.js:5 - BeforeEach - - console.log __tests__/before-each-queue.test.js:17 - It Bar -" -`; diff --git a/e2e/__tests__/__snapshots__/beforeAllFiltered.js.snap b/e2e/__tests__/__snapshots__/beforeAllFiltered.js.snap new file mode 100644 index 000000000000..3ee05080e1b2 --- /dev/null +++ b/e2e/__tests__/__snapshots__/beforeAllFiltered.js.snap @@ -0,0 +1,19 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Correct BeforeAll run ensures the BeforeAll of ignored suite is not run 1`] = ` +" console.log __tests__/beforeAllFiltered.test.js:5 + beforeAll 1 + + console.log __tests__/beforeAllFiltered.test.js:8 + beforeEach 1 + + console.log __tests__/beforeAllFiltered.test.js:17 + It Foo + + console.log __tests__/beforeAllFiltered.test.js:11 + afterEach 1 + + console.log __tests__/beforeAllFiltered.test.js:14 + afterAll 1 +" +`; diff --git a/e2e/__tests__/__snapshots__/beforeEachQueue.js.snap b/e2e/__tests__/__snapshots__/beforeEachQueue.js.snap new file mode 100644 index 000000000000..3e6c6f91d79d --- /dev/null +++ b/e2e/__tests__/__snapshots__/beforeEachQueue.js.snap @@ -0,0 +1,19 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Correct beforeEach order ensures the correct order for beforeEach 1`] = ` +" console.log __tests__/beforeEachQueue.test.js:5 + BeforeEach + + console.log __tests__/beforeEachQueue.test.js:9 + It Foo + + console.log __tests__/beforeEachQueue.test.js:12 + BeforeEach Inline Foo + + console.log __tests__/beforeEachQueue.test.js:5 + BeforeEach + + console.log __tests__/beforeEachQueue.test.js:17 + It Bar +" +`; diff --git a/e2e/__tests__/__snapshots__/cli-handles-exact-filenames.test.js.snap b/e2e/__tests__/__snapshots__/cliHandlesExactFilenames.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/cli-handles-exact-filenames.test.js.snap rename to e2e/__tests__/__snapshots__/cliHandlesExactFilenames.test.js.snap diff --git a/e2e/__tests__/__snapshots__/console_log_output_when_run_in_band.test.js.snap b/e2e/__tests__/__snapshots__/consoleLogOutputWhenRunInBand.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/console_log_output_when_run_in_band.test.js.snap rename to e2e/__tests__/__snapshots__/consoleLogOutputWhenRunInBand.test.js.snap diff --git a/e2e/__tests__/__snapshots__/coverage_remapping.test.js.snap b/e2e/__tests__/__snapshots__/coverageRemapping.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/coverage_remapping.test.js.snap rename to e2e/__tests__/__snapshots__/coverageRemapping.test.js.snap diff --git a/e2e/__tests__/__snapshots__/coverage_report.test.js.snap b/e2e/__tests__/__snapshots__/coverageReport.test.js.snap similarity index 83% rename from e2e/__tests__/__snapshots__/coverage_report.test.js.snap rename to e2e/__tests__/__snapshots__/coverageReport.test.js.snap index 22b2a7a6ba06..aaf5bd50d645 100644 --- a/e2e/__tests__/__snapshots__/coverage_report.test.js.snap +++ b/e2e/__tests__/__snapshots__/coverageReport.test.js.snap @@ -6,9 +6,9 @@ File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s | ---------------|----------|----------|----------|----------|-------------------| All files | 100 | 100 | 100 | 100 | | a | 100 | 100 | 100 | 100 | | - Identical.js | 100 | 100 | 100 | 100 | | + identical.js | 100 | 100 | 100 | 100 | | b | 100 | 100 | 100 | 100 | | - Identical.js | 100 | 100 | 100 | 100 | | + identical.js | 100 | 100 | 100 | 100 | | ---------------|----------|----------|----------|----------|-------------------|" `; @@ -17,7 +17,7 @@ exports[`collects coverage only from multiple specified files 1`] = ` File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s | --------------|----------|----------|----------|----------|-------------------| All files | 100 | 100 | 100 | 100 | | - OtherFile.js | 100 | 100 | 100 | 100 | | + otherFile.js | 100 | 100 | 100 | 100 | | setup.js | 100 | 100 | 100 | 100 | | --------------|----------|----------|----------|----------|-------------------|" `; @@ -36,7 +36,7 @@ exports[`collects coverage only from specified files avoiding dependencies 1`] = File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s | ----------|----------|----------|----------|----------|-------------------| All files | 85.71 | 100 | 50 | 100 | | - Sum.js | 85.71 | 100 | 50 | 100 | | + sum.js | 85.71 | 100 | 50 | 100 | | ----------|----------|----------|----------|----------|-------------------|" `; @@ -48,14 +48,14 @@ File | % Stmts | % Branch | % Funcs | % Lines -------------------------------------|----------|----------|----------|----------|-------------------| All files | 56.52 | 0 | 50 | 55.56 | | coverage-report | 41.18 | 0 | 25 | 42.86 | | - OtherFile.js | 100 | 100 | 100 | 100 | | - Sum.js | 85.71 | 100 | 50 | 100 | | - SumDependency.js | 0 | 0 | 0 | 0 | 8,10,12 | notRequiredInTestSuite.js | 0 | 0 | 0 | 0 | 8,15,16,17,19 | + otherFile.js | 100 | 100 | 100 | 100 | | + sum.js | 85.71 | 100 | 50 | 100 | | + sumDependency.js | 0 | 0 | 0 | 0 | 8,10,12 | coverage-report/cached-duplicates/a | 100 | 100 | 100 | 100 | | - Identical.js | 100 | 100 | 100 | 100 | | + identical.js | 100 | 100 | 100 | 100 | | coverage-report/cached-duplicates/b | 100 | 100 | 100 | 100 | | - Identical.js | 100 | 100 | 100 | 100 | | + identical.js | 100 | 100 | 100 | 100 | | -------------------------------------|----------|----------|----------|----------|-------------------|" `; @@ -74,14 +74,14 @@ File | % Stmts | % Branch | % Funcs | % Lines -------------------------------------|----------|----------|----------|----------|-------------------| All files | 56.52 | 0 | 50 | 55.56 | | coverage-report | 41.18 | 0 | 25 | 42.86 | | - OtherFile.js | 100 | 100 | 100 | 100 | | - Sum.js | 85.71 | 100 | 50 | 100 | | - SumDependency.js | 0 | 0 | 0 | 0 | 8,10,12 | notRequiredInTestSuite.js | 0 | 0 | 0 | 0 | 8,15,16,17,19 | + otherFile.js | 100 | 100 | 100 | 100 | | + sum.js | 85.71 | 100 | 50 | 100 | | + sumDependency.js | 0 | 0 | 0 | 0 | 8,10,12 | coverage-report/cached-duplicates/a | 100 | 100 | 100 | 100 | | - Identical.js | 100 | 100 | 100 | 100 | | + identical.js | 100 | 100 | 100 | 100 | | coverage-report/cached-duplicates/b | 100 | 100 | 100 | 100 | | - Identical.js | 100 | 100 | 100 | 100 | | + identical.js | 100 | 100 | 100 | 100 | | -------------------------------------|----------|----------|----------|----------|-------------------|" `; @@ -98,14 +98,14 @@ File | % Stmts | % Branch | % Funcs | % Lines -------------------------------------|----------|----------|----------|----------|-------------------| All files | 56.52 | 0 | 50 | 55.56 | | coverage-report | 41.18 | 0 | 25 | 42.86 | | - OtherFile.js | 100 | 100 | 100 | 100 | | - Sum.js | 85.71 | 100 | 50 | 100 | | - SumDependency.js | 0 | 0 | 0 | 0 | 8,10,12 | notRequiredInTestSuite.js | 0 | 0 | 0 | 0 | 8,15,16,17,19 | + otherFile.js | 100 | 100 | 100 | 100 | | + sum.js | 85.71 | 100 | 50 | 100 | | + sumDependency.js | 0 | 0 | 0 | 0 | 8,10,12 | coverage-report/cached-duplicates/a | 100 | 100 | 100 | 100 | | - Identical.js | 100 | 100 | 100 | 100 | | + identical.js | 100 | 100 | 100 | 100 | | coverage-report/cached-duplicates/b | 100 | 100 | 100 | 100 | | - Identical.js | 100 | 100 | 100 | 100 | | + identical.js | 100 | 100 | 100 | 100 | | -------------------------------------|----------|----------|----------|----------|-------------------|" `; @@ -115,14 +115,14 @@ File | % Stmts | % Branch | % Funcs | % Lines -------------------------------------|----------|----------|----------|----------|-------------------| All files | 56.52 | 0 | 50 | 55.56 | | coverage-report | 41.18 | 0 | 25 | 42.86 | | - OtherFile.js | 100 | 100 | 100 | 100 | | - Sum.js | 85.71 | 100 | 50 | 100 | | - SumDependency.js | 0 | 0 | 0 | 0 | 8,10,12 | notRequiredInTestSuite.js | 0 | 0 | 0 | 0 | 8,15,16,17,19 | + otherFile.js | 100 | 100 | 100 | 100 | | + sum.js | 85.71 | 100 | 50 | 100 | | + sumDependency.js | 0 | 0 | 0 | 0 | 8,10,12 | coverage-report/cached-duplicates/a | 100 | 100 | 100 | 100 | | - Identical.js | 100 | 100 | 100 | 100 | | + identical.js | 100 | 100 | 100 | 100 | | coverage-report/cached-duplicates/b | 100 | 100 | 100 | 100 | | - Identical.js | 100 | 100 | 100 | 100 | | + identical.js | 100 | 100 | 100 | 100 | | -------------------------------------|----------|----------|----------|----------|-------------------|" `; diff --git a/e2e/__tests__/__snapshots__/coverage_threshold.test.js.snap b/e2e/__tests__/__snapshots__/coverageThreshold.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/coverage_threshold.test.js.snap rename to e2e/__tests__/__snapshots__/coverageThreshold.test.js.snap diff --git a/e2e/__tests__/__snapshots__/coverage_transform_instrumented.test.js.snap b/e2e/__tests__/__snapshots__/coverageTransformInstrumented.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/coverage_transform_instrumented.test.js.snap rename to e2e/__tests__/__snapshots__/coverageTransformInstrumented.test.js.snap diff --git a/e2e/__tests__/__snapshots__/custom_matcher_stack_trace.test.js.snap b/e2e/__tests__/__snapshots__/customMatcherStackTrace.test.js.snap similarity index 54% rename from e2e/__tests__/__snapshots__/custom_matcher_stack_trace.test.js.snap rename to e2e/__tests__/__snapshots__/customMatcherStackTrace.test.js.snap index c0a01cdeb5a7..49b4afe4098c 100644 --- a/e2e/__tests__/__snapshots__/custom_matcher_stack_trace.test.js.snap +++ b/e2e/__tests__/__snapshots__/customMatcherStackTrace.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`works with custom matchers 1`] = ` -"FAIL __tests__/custom_matcher.test.js +"FAIL __tests__/customMatcher.test.js Custom matcher ✓ passes ✓ fails @@ -19,12 +19,12 @@ exports[`works with custom matchers 1`] = ` 47 | 48 | // This expecation fails due to an error we throw (intentionally) - at Error (__tests__/custom_matcher.test.js:45:13) - at baz (__tests__/custom_matcher.test.js:43:23) - at bar (__tests__/custom_matcher.test.js:42:23) - at foo (__tests__/custom_matcher.test.js:52:7) - at Object.callback (__tests__/custom_matcher.test.js:11:18) - at Object.toCustomMatch (__tests__/custom_matcher.test.js:53:8) + at Error (__tests__/customMatcher.test.js:45:13) + at baz (__tests__/customMatcher.test.js:43:23) + at bar (__tests__/customMatcher.test.js:42:23) + at foo (__tests__/customMatcher.test.js:52:7) + at Object.callback (__tests__/customMatcher.test.js:11:18) + at Object.toCustomMatch (__tests__/customMatcher.test.js:53:8) " `; diff --git a/e2e/__tests__/__snapshots__/custom_reporters.test.js.snap b/e2e/__tests__/__snapshots__/customReporters.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/custom_reporters.test.js.snap rename to e2e/__tests__/__snapshots__/customReporters.test.js.snap diff --git a/e2e/__tests__/__snapshots__/detect_open_handles.js.snap b/e2e/__tests__/__snapshots__/detectOpenHandles.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/detect_open_handles.js.snap rename to e2e/__tests__/__snapshots__/detectOpenHandles.js.snap diff --git a/e2e/__tests__/__snapshots__/each.test.js.snap b/e2e/__tests__/__snapshots__/each.test.js.snap index 3ed64877ce88..662a0870b471 100644 --- a/e2e/__tests__/__snapshots__/each.test.js.snap +++ b/e2e/__tests__/__snapshots__/each.test.js.snap @@ -35,7 +35,7 @@ exports[`formats args with pretty format when given %p 1`] = ` `; exports[`runs only the describe.only.each tests 1`] = ` -"PASS __tests__/describe-only.test.js +"PASS __tests__/describeOnly.test.js passes all rows expected true == true ✓ passes ✓ passes @@ -46,7 +46,7 @@ exports[`runs only the describe.only.each tests 1`] = ` `; exports[`shows error message when not enough arguments are supplied to tests 1`] = ` -"FAIL __tests__/each-exception.test.js +"FAIL __tests__/eachException.test.js ✕ throws exception when one argument too few are supplied $left == $right ✕ throws exception when not enough arguments are supplied $left == $right @@ -72,7 +72,7 @@ exports[`shows error message when not enough arguments are supplied to tests 1`] 10 | \${true} | \${true} 11 | \${true} - at Object. (__tests__/each-exception.test.js:8:1) + at Object. (__tests__/eachException.test.js:8:1) ● throws exception when not enough arguments are supplied $left == $right @@ -95,13 +95,13 @@ exports[`shows error message when not enough arguments are supplied to tests 1`] 21 | \${true} | \${true} 22 | \`( - at Object. (__tests__/each-exception.test.js:19:1) + at Object. (__tests__/eachException.test.js:19:1) " `; exports[`shows only the tests with .only as being ran 1`] = ` -"PASS __tests__/each-only.test.js +"PASS __tests__/eachOnly.test.js ✓ passes one row expected true == true ✓ passes one row expected true == true ✓ passes one row expected true == true @@ -112,7 +112,7 @@ exports[`shows only the tests with .only as being ran 1`] = ` `; exports[`shows only the tests without .skip as being ran 1`] = ` -"PASS __tests__/each-skip.test.js +"PASS __tests__/eachSkip.test.js ✓ passes one row expected true == true ✓ passes one row expected true == true ✓ passes one row expected true == true diff --git a/e2e/__tests__/__snapshots__/empty-describe-with-hooks.test.js.snap b/e2e/__tests__/__snapshots__/emptyDescribeWithHooks.test.js.snap similarity index 65% rename from e2e/__tests__/__snapshots__/empty-describe-with-hooks.test.js.snap rename to e2e/__tests__/__snapshots__/emptyDescribeWithHooks.test.js.snap index 1bd884cd09fe..4c8744c30973 100644 --- a/e2e/__tests__/__snapshots__/empty-describe-with-hooks.test.js.snap +++ b/e2e/__tests__/__snapshots__/emptyDescribeWithHooks.test.js.snap @@ -7,13 +7,13 @@ Object { Tests: 1 skipped, 1 total Snapshots: 0 total Time: <> -Ran all test suites matching /hook-in-describe-with-skipped-test.test.js/i.", +Ran all test suites matching /hookInDescribeWithSkippedTest.test.js/i.", } `; exports[`hook in empty describe 1`] = ` Object { - "rest": "FAIL __tests__/hook-in-empty-describe.test.js + "rest": "FAIL __tests__/hookInEmptyDescribe.test.js ● Test suite failed to run @@ -28,22 +28,22 @@ Object { 11 | 12 | describe('another block with tests', () => { - at beforeEach (__tests__/hook-in-empty-describe.test.js:9:3) - at Object.describe (__tests__/hook-in-empty-describe.test.js:8:1) + at beforeEach (__tests__/hookInEmptyDescribe.test.js:9:3) + at Object.describe (__tests__/hookInEmptyDescribe.test.js:8:1) ", "summary": "Test Suites: 1 failed, 1 total Tests: 1 passed, 1 total Snapshots: 0 total Time: <> -Ran all test suites matching /hook-in-empty-describe.test.js/i. +Ran all test suites matching /hookInEmptyDescribe.test.js/i. ", } `; exports[`hook in empty nested describe 1`] = ` Object { - "rest": "FAIL __tests__/hook-in-empty-nested-describe.test.js + "rest": "FAIL __tests__/hookInEmptyNestedDescribe.test.js ● Test suite failed to run @@ -58,22 +58,22 @@ Object { 11 | }); 12 | - at beforeEach (__tests__/hook-in-empty-nested-describe.test.js:9:3) - at Object.describe (__tests__/hook-in-empty-nested-describe.test.js:8:1) + at beforeEach (__tests__/hookInEmptyNestedDescribe.test.js:9:3) + at Object.describe (__tests__/hookInEmptyNestedDescribe.test.js:8:1) ", "summary": "Test Suites: 1 failed, 1 total Tests: 1 passed, 1 total Snapshots: 0 total Time: <> -Ran all test suites matching /hook-in-empty-nested-describe.test.js/i. +Ran all test suites matching /hookInEmptyNestedDescribe.test.js/i. ", } `; exports[`multiple hooks in empty describe 1`] = ` Object { - "rest": "FAIL __tests__/multiple-hooks-in-empty-describe.test.js + "rest": "FAIL __tests__/multipleHooksInEmptyDescribe.test.js ● Test suite failed to run @@ -88,8 +88,8 @@ Object { 11 | afterAll(() => {}); 12 | beforeAll(() => {}); - at beforeEach (__tests__/multiple-hooks-in-empty-describe.test.js:9:3) - at Object.describe (__tests__/multiple-hooks-in-empty-describe.test.js:8:1) + at beforeEach (__tests__/multipleHooksInEmptyDescribe.test.js:9:3) + at Object.describe (__tests__/multipleHooksInEmptyDescribe.test.js:8:1) ● Test suite failed to run @@ -103,8 +103,8 @@ Object { 12 | beforeAll(() => {}); 13 | }); - at afterEach (__tests__/multiple-hooks-in-empty-describe.test.js:10:3) - at Object.describe (__tests__/multiple-hooks-in-empty-describe.test.js:8:1) + at afterEach (__tests__/multipleHooksInEmptyDescribe.test.js:10:3) + at Object.describe (__tests__/multipleHooksInEmptyDescribe.test.js:8:1) ● Test suite failed to run @@ -118,8 +118,8 @@ Object { 13 | }); 14 | - at afterAll (__tests__/multiple-hooks-in-empty-describe.test.js:11:3) - at Object.describe (__tests__/multiple-hooks-in-empty-describe.test.js:8:1) + at afterAll (__tests__/multipleHooksInEmptyDescribe.test.js:11:3) + at Object.describe (__tests__/multipleHooksInEmptyDescribe.test.js:8:1) ● Test suite failed to run @@ -133,15 +133,15 @@ Object { 14 | 15 | describe('another block with tests', () => { - at beforeAll (__tests__/multiple-hooks-in-empty-describe.test.js:12:3) - at Object.describe (__tests__/multiple-hooks-in-empty-describe.test.js:8:1) + at beforeAll (__tests__/multipleHooksInEmptyDescribe.test.js:12:3) + at Object.describe (__tests__/multipleHooksInEmptyDescribe.test.js:8:1) ", "summary": "Test Suites: 1 failed, 1 total Tests: 1 passed, 1 total Snapshots: 0 total Time: <> -Ran all test suites matching /multiple-hooks-in-empty-describe.test.js/i. +Ran all test suites matching /multipleHooksInEmptyDescribe.test.js/i. ", } `; diff --git a/e2e/__tests__/__snapshots__/error-on-deprecated.test.js.snap b/e2e/__tests__/__snapshots__/errorOnDeprecated.test.js.snap similarity index 94% rename from e2e/__tests__/__snapshots__/error-on-deprecated.test.js.snap rename to e2e/__tests__/__snapshots__/errorOnDeprecated.test.js.snap index fe2095c9428b..e2857a9525b7 100644 --- a/e2e/__tests__/__snapshots__/error-on-deprecated.test.js.snap +++ b/e2e/__tests__/__snapshots__/errorOnDeprecated.test.js.snap @@ -1,22 +1,22 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`DEFAULT_TIMEOUT_INTERVAL.test.js errors in errorOnDeprecated mode 1`] = ` -"FAIL __tests__/DEFAULT_TIMEOUT_INTERVAL.test.js - ✕ DEFAULT_TIMEOUT_INTERVAL +exports[`defaultTimeoutInterval.test.js errors in errorOnDeprecated mode 1`] = ` +"FAIL __tests__/defaultTimeoutInterval.test.js + ✕ Default Timeout Interval - ● DEFAULT_TIMEOUT_INTERVAL + ● Default Timeout Interval Illegal usage of \`jasmine.DEFAULT_TIMEOUT_INTERVAL\`, prefer \`jest.setTimeout\`. 8 | - 9 | test('DEFAULT_TIMEOUT_INTERVAL', () => { + 9 | test('Default Timeout Interval', () => { > 10 | jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000; | ^ 11 | expect(true).toBe(true); 12 | }); 13 | - at Object..test (__tests__/DEFAULT_TIMEOUT_INTERVAL.test.js:10:3) + at Object..test (__tests__/defaultTimeoutInterval.test.js:10:3) " `; diff --git a/e2e/__tests__/__snapshots__/execute-tests-once-in-mpr.js.snap b/e2e/__tests__/__snapshots__/executeTestsOnceInMpr.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/execute-tests-once-in-mpr.js.snap rename to e2e/__tests__/__snapshots__/executeTestsOnceInMpr.js.snap diff --git a/e2e/__tests__/__snapshots__/expect-async-matcher.test.js.snap b/e2e/__tests__/__snapshots__/expectAsyncMatcher.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/expect-async-matcher.test.js.snap rename to e2e/__tests__/__snapshots__/expectAsyncMatcher.test.js.snap diff --git a/e2e/__tests__/__snapshots__/failures.test.js.snap b/e2e/__tests__/__snapshots__/failures.test.js.snap index 4c00d72b044f..ed91a4e39997 100644 --- a/e2e/__tests__/__snapshots__/failures.test.js.snap +++ b/e2e/__tests__/__snapshots__/failures.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`not throwing Error objects 1`] = ` -"FAIL __tests__/throw_number.test.js +"FAIL __tests__/throwNumber.test.js ● Test suite failed to run Expected an Error, but \\"1\\" was thrown @@ -10,7 +10,7 @@ exports[`not throwing Error objects 1`] = ` `; exports[`not throwing Error objects 2`] = ` -"FAIL __tests__/throw_string.test.js +"FAIL __tests__/throwString.test.js ● Test suite failed to run banana @@ -19,7 +19,7 @@ exports[`not throwing Error objects 2`] = ` `; exports[`not throwing Error objects 3`] = ` -"FAIL __tests__/throw_object.test.js +"FAIL __tests__/throwObject.test.js ● Test suite failed to run Error: No message was provided @@ -28,7 +28,7 @@ exports[`not throwing Error objects 3`] = ` `; exports[`not throwing Error objects 4`] = ` -"FAIL __tests__/assertion_count.test.js +"FAIL __tests__/assertionCount.test.js .assertions() ✕ throws ✕ throws on redeclare of assertion count @@ -50,7 +50,7 @@ exports[`not throwing Error objects 4`] = ` 15 | const redeclare = () => { 16 | expect.assertions(1); - at Object.toBeTruthy (__tests__/assertion_count.test.js:13:17) + at Object.toBeTruthy (__tests__/assertionCount.test.js:13:17) ● .assertions() › throws @@ -66,7 +66,7 @@ exports[`not throwing Error objects 4`] = ` 14 | }; 15 | const redeclare = () => { - at Object.assertions (__tests__/assertion_count.test.js:12:10) + at Object.assertions (__tests__/assertionCount.test.js:12:10) ● .assertions() › throws on redeclare of assertion count @@ -82,7 +82,7 @@ exports[`not throwing Error objects 4`] = ` 19 | }; 20 | - at Object.toBeTruthy (__tests__/assertion_count.test.js:17:17) + at Object.toBeTruthy (__tests__/assertionCount.test.js:17:17) ● .assertions() › throws on assertion @@ -98,7 +98,7 @@ exports[`not throwing Error objects 4`] = ` 24 | }; 25 | - at Object.assertions (__tests__/assertion_count.test.js:22:10) + at Object.assertions (__tests__/assertionCount.test.js:22:10) ● .hasAssertions() › throws when there are not assertions @@ -114,13 +114,13 @@ exports[`not throwing Error objects 4`] = ` 29 | 30 | describe('.assertions()', () => { - at Object.hasAssertions (__tests__/assertion_count.test.js:27:10) + at Object.hasAssertions (__tests__/assertionCount.test.js:27:10) " `; exports[`not throwing Error objects 5`] = ` -"FAIL __tests__/during_tests.test.js +"FAIL __tests__/duringTests.test.js ✕ Promise thrown during test ✕ Boolean thrown during test ✕ undefined thrown during test @@ -142,7 +142,7 @@ exports[`not throwing Error objects 5`] = ` 11 | }); 12 | - at Object.test (__tests__/during_tests.test.js:9:1) + at Object.test (__tests__/duringTests.test.js:9:1) ● Boolean thrown during test @@ -156,7 +156,7 @@ exports[`not throwing Error objects 5`] = ` 15 | throw false; 16 | }); - at Object.test (__tests__/during_tests.test.js:13:1) + at Object.test (__tests__/duringTests.test.js:13:1) ● undefined thrown during test @@ -170,7 +170,7 @@ exports[`not throwing Error objects 5`] = ` 20 | throw undefined; 21 | }); - at Object.test (__tests__/during_tests.test.js:18:1) + at Object.test (__tests__/duringTests.test.js:18:1) ● Object thrown during test @@ -191,7 +191,7 @@ exports[`not throwing Error objects 5`] = ` 25 | throw deepObject; 26 | }); - at Object.test (__tests__/during_tests.test.js:23:1) + at Object.test (__tests__/duringTests.test.js:23:1) ● Error during test @@ -205,7 +205,7 @@ exports[`not throwing Error objects 5`] = ` 32 | 33 | test('done(Error)', done => { - at Object.doesNotExist (__tests__/during_tests.test.js:30:3) + at Object.doesNotExist (__tests__/duringTests.test.js:30:3) ● done(Error) @@ -219,7 +219,7 @@ exports[`not throwing Error objects 5`] = ` 36 | 37 | test('done(non-error)', done => { - at Object..done (__tests__/during_tests.test.js:34:8) + at Object..done (__tests__/duringTests.test.js:34:8) ● done(non-error) @@ -240,7 +240,7 @@ exports[`not throwing Error objects 5`] = ` 40 | 41 | test('returned promise rejection', () => Promise.reject(deepObject)); - at Object.done (__tests__/during_tests.test.js:38:3) + at Object.done (__tests__/duringTests.test.js:38:3) ● returned promise rejection @@ -259,13 +259,13 @@ exports[`not throwing Error objects 5`] = ` | ^ 42 | - at Object.test (__tests__/during_tests.test.js:41:1) + at Object.test (__tests__/duringTests.test.js:41:1) " `; exports[`works with assertions in separate files 1`] = ` -"FAIL __tests__/test_macro.test.js +"FAIL __tests__/testMacro.test.js ✕ use some imported macro to make assertion ● use some imported macro to make assertion @@ -283,13 +283,13 @@ exports[`works with assertions in separate files 1`] = ` 14 | at toEqual (macros.js:12:15) - at Object.shouldEqual (__tests__/test_macro.test.js:14:3) + at Object.shouldEqual (__tests__/testMacro.test.js:14:3) " `; exports[`works with async failures 1`] = ` -"FAIL __tests__/async_failures.test.js +"FAIL __tests__/asyncFailures.test.js ✕ resolve, but fail ✕ reject, but fail ✕ expect reject @@ -318,7 +318,7 @@ exports[`works with async failures 1`] = ` 14 | test('reject, but fail', () => 15 | expect(Promise.reject({foo: 'bar'})).rejects.toEqual({baz: 'bar'})); - at Object.toEqual (__tests__/async_failures.test.js:12:50) + at Object.toEqual (__tests__/asyncFailures.test.js:12:50) ● reject, but fail @@ -342,7 +342,7 @@ exports[`works with async failures 1`] = ` 17 | test('expect reject', () => 18 | expect(Promise.resolve({foo: 'bar'})).rejects.toEqual({foo: 'bar'})); - at Object.toEqual (__tests__/async_failures.test.js:15:48) + at Object.toEqual (__tests__/asyncFailures.test.js:15:48) ● expect reject @@ -359,7 +359,7 @@ exports[`works with async failures 1`] = ` 20 | test('expect resolve', () => 21 | expect(Promise.reject({foo: 'bar'})).resolves.toEqual({foo: 'bar'})); - at Object.expect (__tests__/async_failures.test.js:18:3) + at Object.expect (__tests__/asyncFailures.test.js:18:3) ● expect resolve @@ -376,7 +376,7 @@ exports[`works with async failures 1`] = ` 23 | test('timeout', done => { 24 | setTimeout(done, 50); - at Object.expect (__tests__/async_failures.test.js:21:3) + at Object.expect (__tests__/asyncFailures.test.js:21:3) ● timeout @@ -390,13 +390,13 @@ exports[`works with async failures 1`] = ` 25 | }, 5); 26 | - at Object.test (__tests__/async_failures.test.js:23:1) + at Object.test (__tests__/asyncFailures.test.js:23:1) " `; exports[`works with named snapshot failures 1`] = ` -"FAIL __tests__/snapshot_named.test.js +"FAIL __tests__/snapshotNamed.test.js ✕ failing named snapshot ● failing named snapshot @@ -418,14 +418,14 @@ exports[`works with named snapshot failures 1`] = ` 13 | }); 14 | - at Object.toMatchSnapshot (__tests__/snapshot_named.test.js:12:17) + at Object.toMatchSnapshot (__tests__/snapshotNamed.test.js:12:17) › 1 snapshot failed. " `; exports[`works with node assert 1`] = ` -"FAIL __tests__/node_assertion_error.test.js +"FAIL __tests__/assertionError.test.js ✕ assert ✕ assert with a message ✕ assert.ok @@ -461,7 +461,7 @@ exports[`works with node assert 1`] = ` 17 | 18 | test('assert with a message', () => { - at Object.assert (__tests__/node_assertion_error.test.js:15:3) + at Object.assert (__tests__/assertionError.test.js:15:3) ● assert with a message @@ -483,7 +483,7 @@ exports[`works with node assert 1`] = ` 21 | 22 | test('assert.ok', () => { - at Object.assert (__tests__/node_assertion_error.test.js:19:3) + at Object.assert (__tests__/assertionError.test.js:19:3) ● assert.ok @@ -502,7 +502,7 @@ exports[`works with node assert 1`] = ` 25 | 26 | test('assert.ok with a message', () => { - at Object.ok (__tests__/node_assertion_error.test.js:23:10) + at Object.ok (__tests__/assertionError.test.js:23:10) ● assert.ok with a message @@ -524,7 +524,7 @@ exports[`works with node assert 1`] = ` 29 | 30 | test('assert.equal', () => { - at Object.ok (__tests__/node_assertion_error.test.js:27:10) + at Object.ok (__tests__/assertionError.test.js:27:10) ● assert.equal @@ -543,7 +543,7 @@ exports[`works with node assert 1`] = ` 33 | 34 | test('assert.notEqual', () => { - at Object.equal (__tests__/node_assertion_error.test.js:31:10) + at Object.equal (__tests__/assertionError.test.js:31:10) ● assert.notEqual @@ -566,7 +566,7 @@ exports[`works with node assert 1`] = ` 37 | 38 | test('assert.deepEqual', () => { - at Object.notEqual (__tests__/node_assertion_error.test.js:35:10) + at Object.notEqual (__tests__/assertionError.test.js:35:10) ● assert.deepEqual @@ -599,7 +599,7 @@ exports[`works with node assert 1`] = ` 41 | 42 | test('assert.deepEqual with a message', () => { - at Object.deepEqual (__tests__/node_assertion_error.test.js:39:10) + at Object.deepEqual (__tests__/assertionError.test.js:39:10) ● assert.deepEqual with a message @@ -635,7 +635,7 @@ exports[`works with node assert 1`] = ` 45 | 46 | test('assert.notDeepEqual', () => { - at Object.deepEqual (__tests__/node_assertion_error.test.js:43:10) + at Object.deepEqual (__tests__/assertionError.test.js:43:10) ● assert.notDeepEqual @@ -658,7 +658,7 @@ exports[`works with node assert 1`] = ` 49 | 50 | test('assert.strictEqual', () => { - at Object.notDeepEqual (__tests__/node_assertion_error.test.js:47:10) + at Object.notDeepEqual (__tests__/assertionError.test.js:47:10) ● assert.strictEqual @@ -677,7 +677,7 @@ exports[`works with node assert 1`] = ` 53 | 54 | test('assert.notStrictEqual', () => { - at Object.strictEqual (__tests__/node_assertion_error.test.js:51:10) + at Object.strictEqual (__tests__/assertionError.test.js:51:10) ● assert.notStrictEqual @@ -703,7 +703,7 @@ exports[`works with node assert 1`] = ` 57 | 58 | test('assert.deepStrictEqual', () => { - at Object.notStrictEqual (__tests__/node_assertion_error.test.js:55:10) + at Object.notStrictEqual (__tests__/assertionError.test.js:55:10) ● assert.deepStrictEqual @@ -732,7 +732,7 @@ exports[`works with node assert 1`] = ` 61 | 62 | test('assert.notDeepStrictEqual', () => { - at Object.deepStrictEqual (__tests__/node_assertion_error.test.js:59:10) + at Object.deepStrictEqual (__tests__/assertionError.test.js:59:10) ● assert.notDeepStrictEqual @@ -755,7 +755,7 @@ exports[`works with node assert 1`] = ` 65 | 66 | test('assert.ifError', () => { - at Object.notDeepStrictEqual (__tests__/node_assertion_error.test.js:63:10) + at Object.notDeepStrictEqual (__tests__/assertionError.test.js:63:10) ● assert.ifError @@ -778,7 +778,7 @@ exports[`works with node assert 1`] = ` 73 | }); 74 | }); - at Object.doesNotThrow (__tests__/node_assertion_error.test.js:71:10) + at Object.doesNotThrow (__tests__/assertionError.test.js:71:10) ● assert.throws @@ -798,7 +798,7 @@ exports[`works with node assert 1`] = ` 79 | 80 | test('async', async () => { - at Object.throws (__tests__/node_assertion_error.test.js:77:10) + at Object.throws (__tests__/assertionError.test.js:77:10) ● async @@ -828,11 +828,11 @@ exports[`works with node assert 1`] = ` 82 | }); 83 | - at Object.equal (__tests__/node_assertion_error.test.js:81:10) - at asyncGeneratorStep (__tests__/node_assertion_error.test.js:11:103) - at _next (__tests__/node_assertion_error.test.js:13:194) - at __tests__/node_assertion_error.test.js:13:364 - at Object. (__tests__/node_assertion_error.test.js:13:97) + at Object.equal (__tests__/assertionError.test.js:81:10) + at asyncGeneratorStep (__tests__/assertionError.test.js:11:103) + at _next (__tests__/assertionError.test.js:13:194) + at __tests__/assertionError.test.js:13:364 + at Object. (__tests__/assertionError.test.js:13:97) " `; diff --git a/e2e/__tests__/__snapshots__/find_related_files.test.js.snap b/e2e/__tests__/__snapshots__/findRelatedFiles.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/find_related_files.test.js.snap rename to e2e/__tests__/__snapshots__/findRelatedFiles.test.js.snap diff --git a/e2e/__tests__/__snapshots__/globals.test.js.snap b/e2e/__tests__/__snapshots__/globals.test.js.snap index 6d7d7af67850..be32c136475a 100644 --- a/e2e/__tests__/__snapshots__/globals.test.js.snap +++ b/e2e/__tests__/__snapshots__/globals.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`basic test constructs 1`] = ` -"PASS __tests__/basic.test-constructs.test.js +"PASS __tests__/basic.testConstructs.test.js ✓ it ✓ test describe @@ -20,7 +20,7 @@ Ran all test suites." `; exports[`cannot have describe with no implementation 1`] = ` -"FAIL __tests__/only-constructs.test.js +"FAIL __tests__/onlyConstructs.test.js ● Test suite failed to run Missing second argument. It must be a callback function. @@ -30,7 +30,7 @@ exports[`cannot have describe with no implementation 1`] = ` | ^ 3 | - at Object. (__tests__/only-constructs.test.js:2:14) + at Object. (__tests__/onlyConstructs.test.js:2:14) " `; @@ -45,7 +45,7 @@ Ran all test suites. `; exports[`cannot test with no implementation 1`] = ` -"FAIL __tests__/only-constructs.test.js +"FAIL __tests__/onlyConstructs.test.js ● Test suite failed to run Missing second argument. It must be a callback function. Perhaps you want to use \`test.todo\` for a test placeholder. @@ -57,7 +57,7 @@ exports[`cannot test with no implementation 1`] = ` 4 | test('test, no implementation'); 5 | - at Object.it (__tests__/only-constructs.test.js:3:5) + at Object.it (__tests__/onlyConstructs.test.js:3:5) " `; @@ -72,7 +72,7 @@ Ran all test suites. `; exports[`cannot test with no implementation with expand arg 1`] = ` -"FAIL __tests__/only-constructs.test.js +"FAIL __tests__/onlyConstructs.test.js ● Test suite failed to run Missing second argument. It must be a callback function. Perhaps you want to use \`test.todo\` for a test placeholder. @@ -84,7 +84,7 @@ exports[`cannot test with no implementation with expand arg 1`] = ` 4 | test('test, no implementation'); 5 | - at Object.it (__tests__/only-constructs.test.js:3:5) + at Object.it (__tests__/onlyConstructs.test.js:3:5) " `; @@ -99,7 +99,7 @@ Ran all test suites. `; exports[`function as descriptor 1`] = ` -"PASS __tests__/function-as-descriptor.test.js +"PASS __tests__/functionAsDescriptor.test.js Foo ✓ it @@ -115,7 +115,7 @@ Ran all test suites." `; exports[`only 1`] = ` -"PASS __tests__/only-constructs.test.js +"PASS __tests__/onlyConstructs.test.js ✓ test.only ✓ it.only ✓ fit @@ -140,7 +140,7 @@ Ran all test suites." `; exports[`only with expand arg 1`] = ` -"PASS __tests__/only-constructs.test.js +"PASS __tests__/onlyConstructs.test.js ○ it ✓ test.only ✓ it.only @@ -165,7 +165,7 @@ Ran all test suites." `; exports[`skips 1`] = ` -"PASS __tests__/skips-constructs.test.js +"PASS __tests__/skipsConstructs.test.js ✓ it ○ skipped 4 tests xdescribe @@ -187,7 +187,7 @@ Ran all test suites." `; exports[`skips with expand arg 1`] = ` -"PASS __tests__/skips-constructs.test.js +"PASS __tests__/skipsConstructs.test.js ✓ it ○ xtest ○ xit diff --git a/e2e/__tests__/__snapshots__/jest_changed_files.test.js.snap b/e2e/__tests__/__snapshots__/jestChangedFiles.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/jest_changed_files.test.js.snap rename to e2e/__tests__/__snapshots__/jestChangedFiles.test.js.snap diff --git a/e2e/__tests__/__snapshots__/list_tests.test.js.snap b/e2e/__tests__/__snapshots__/listTests.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/list_tests.test.js.snap rename to e2e/__tests__/__snapshots__/listTests.test.js.snap diff --git a/e2e/__tests__/__snapshots__/module_name_mapper.test.js.snap b/e2e/__tests__/__snapshots__/moduleNameMapper.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/module_name_mapper.test.js.snap rename to e2e/__tests__/__snapshots__/moduleNameMapper.test.js.snap diff --git a/e2e/__tests__/__snapshots__/multi_project_runner.test.js.snap b/e2e/__tests__/__snapshots__/multiProjectRunner.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/multi_project_runner.test.js.snap rename to e2e/__tests__/__snapshots__/multiProjectRunner.test.js.snap diff --git a/e2e/__tests__/__snapshots__/process_exit.test.js.snap b/e2e/__tests__/__snapshots__/processExit.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/process_exit.test.js.snap rename to e2e/__tests__/__snapshots__/processExit.test.js.snap diff --git a/e2e/__tests__/__snapshots__/require_after_teardown.test.js.snap b/e2e/__tests__/__snapshots__/requireAfterTeardown.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/require_after_teardown.test.js.snap rename to e2e/__tests__/__snapshots__/requireAfterTeardown.test.js.snap diff --git a/e2e/__tests__/__snapshots__/resolve_no_file_extensions.test.js.snap b/e2e/__tests__/__snapshots__/resolveNoFileExtensions.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/resolve_no_file_extensions.test.js.snap rename to e2e/__tests__/__snapshots__/resolveNoFileExtensions.test.js.snap diff --git a/e2e/__tests__/__snapshots__/show_config.test.js.snap b/e2e/__tests__/__snapshots__/showConfig.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/show_config.test.js.snap rename to e2e/__tests__/__snapshots__/showConfig.test.js.snap diff --git a/e2e/__tests__/__snapshots__/snapshot.test.js.snap b/e2e/__tests__/__snapshots__/snapshot.test.js.snap index 7d07b4330396..4affd8faa05e 100644 --- a/e2e/__tests__/__snapshots__/snapshot.test.js.snap +++ b/e2e/__tests__/__snapshots__/snapshot.test.js.snap @@ -110,7 +110,7 @@ exports[`Snapshot works with escaped regex 1`] = ` Tests: 2 passed, 2 total Snapshots: 2 written, 2 total Time: <> -Ran all test suites matching /snapshot_escape_regex.js/i." +Ran all test suites matching /snapshotEscapeRegex.js/i." `; exports[`Snapshot works with escaped regex 2`] = ` @@ -118,7 +118,7 @@ exports[`Snapshot works with escaped regex 2`] = ` Tests: 2 passed, 2 total Snapshots: 2 passed, 2 total Time: <> -Ran all test suites matching /snapshot_escape_regex.js/i." +Ran all test suites matching /snapshotEscapeRegex.js/i." `; exports[`Snapshot works with template literal substitutions 1`] = ` @@ -126,7 +126,7 @@ exports[`Snapshot works with template literal substitutions 1`] = ` Tests: 1 passed, 1 total Snapshots: 1 written, 1 total Time: <> -Ran all test suites matching /snapshot_escape_substitution.test.js/i." +Ran all test suites matching /snapshotEscapeSubstitution.test.js/i." `; exports[`Snapshot works with template literal substitutions 2`] = ` @@ -134,5 +134,5 @@ exports[`Snapshot works with template literal substitutions 2`] = ` Tests: 1 passed, 1 total Snapshots: 1 passed, 1 total Time: <> -Ran all test suites matching /snapshot_escape_substitution.test.js/i." +Ran all test suites matching /snapshotEscapeSubstitution.test.js/i." `; diff --git a/e2e/__tests__/__snapshots__/snapshot-mock-fs.test.js.snap b/e2e/__tests__/__snapshots__/snapshotMockFs.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/snapshot-mock-fs.test.js.snap rename to e2e/__tests__/__snapshots__/snapshotMockFs.test.js.snap diff --git a/e2e/__tests__/__snapshots__/snapshot_serializers.test.js.snap b/e2e/__tests__/__snapshots__/snapshotSerializers.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/snapshot_serializers.test.js.snap rename to e2e/__tests__/__snapshots__/snapshotSerializers.test.js.snap diff --git a/e2e/__tests__/__snapshots__/stack_trace.test.js.snap b/e2e/__tests__/__snapshots__/stackTrace.test.js.snap similarity index 78% rename from e2e/__tests__/__snapshots__/stack_trace.test.js.snap rename to e2e/__tests__/__snapshots__/stackTrace.test.js.snap index 0e8075de198a..c6f41c5d4735 100644 --- a/e2e/__tests__/__snapshots__/stack_trace.test.js.snap +++ b/e2e/__tests__/__snapshots__/stackTrace.test.js.snap @@ -5,7 +5,7 @@ exports[`Stack Trace does not print a stack trace for errors when --noStackTrace Tests: 3 failed, 3 total Snapshots: 0 total Time: <> -Ran all test suites matching /test_error.test.js/i. +Ran all test suites matching /testError.test.js/i. " `; @@ -14,7 +14,7 @@ exports[`Stack Trace does not print a stack trace for matching errors when --noS Tests: 1 failed, 1 total Snapshots: 0 total Time: <> -Ran all test suites matching /stack_trace.test.js/i. +Ran all test suites matching /stackTrace.test.js/i. " `; @@ -23,7 +23,7 @@ exports[`Stack Trace does not print a stack trace for runtime errors when --noSt Tests: 0 total Snapshots: 0 total Time: <> -Ran all test suites matching /runtime_error.test.js/i. +Ran all test suites matching /runtimeError.test.js/i. " `; @@ -32,7 +32,7 @@ exports[`Stack Trace prints a stack trace for errors 1`] = ` Tests: 3 failed, 3 total Snapshots: 0 total Time: <> -Ran all test suites matching /test_error.test.js/i. +Ran all test suites matching /testError.test.js/i. " `; @@ -41,7 +41,7 @@ exports[`Stack Trace prints a stack trace for errors without message in stack tr Tests: 1 failed, 1 total Snapshots: 0 total Time: <> -Ran all test suites matching /stack_trace_without_message.test.js/i. +Ran all test suites matching /stackTraceWithoutMessage.test.js/i. " `; @@ -50,7 +50,7 @@ exports[`Stack Trace prints a stack trace for matching errors 1`] = ` Tests: 1 failed, 1 total Snapshots: 0 total Time: <> -Ran all test suites matching /stack_trace.test.js/i. +Ran all test suites matching /stackTrace.test.js/i. " `; @@ -59,6 +59,6 @@ exports[`Stack Trace prints a stack trace for runtime errors 1`] = ` Tests: 0 total Snapshots: 0 total Time: <> -Ran all test suites matching /runtime_error.test.js/i. +Ran all test suites matching /runtimeError.test.js/i. " `; diff --git a/e2e/__tests__/__snapshots__/test_name_pattern.test.js.snap b/e2e/__tests__/__snapshots__/testNamePattern.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/test_name_pattern.test.js.snap rename to e2e/__tests__/__snapshots__/testNamePattern.test.js.snap diff --git a/e2e/__tests__/__snapshots__/test_name_pattern_skipped.test.js.snap b/e2e/__tests__/__snapshots__/testNamePatternSkipped.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/test_name_pattern_skipped.test.js.snap rename to e2e/__tests__/__snapshots__/testNamePatternSkipped.test.js.snap diff --git a/e2e/__tests__/__snapshots__/test-todo.test.js.snap b/e2e/__tests__/__snapshots__/testTodo.test.js.snap similarity index 80% rename from e2e/__tests__/__snapshots__/test-todo.test.js.snap rename to e2e/__tests__/__snapshots__/testTodo.test.js.snap index 3eb148742200..504ca6f1b5f8 100644 --- a/e2e/__tests__/__snapshots__/test-todo.test.js.snap +++ b/e2e/__tests__/__snapshots__/testTodo.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`shows error messages when called with invalid argument 1`] = ` -"FAIL __tests__/todo_non_string.test.js +"FAIL __tests__/todoNonString.test.js ● Test suite failed to run Todo must be called with only a description. @@ -12,13 +12,13 @@ exports[`shows error messages when called with invalid argument 1`] = ` | ^ 9 | - at Object.todo (__tests__/todo_non_string.test.js:8:4) + at Object.todo (__tests__/todoNonString.test.js:8:4) " `; exports[`shows error messages when called with multiple arguments 1`] = ` -"FAIL __tests__/todo_multiple_args.test.js +"FAIL __tests__/todoMultipleArgs.test.js ● Test suite failed to run Todo must be called with only a description. @@ -29,13 +29,13 @@ exports[`shows error messages when called with multiple arguments 1`] = ` | ^ 9 | - at Object.todo (__tests__/todo_multiple_args.test.js:8:4) + at Object.todo (__tests__/todoMultipleArgs.test.js:8:4) " `; exports[`shows error messages when called with no arguments 1`] = ` -"FAIL __tests__/todo_no_args.test.js +"FAIL __tests__/todoNoArgs.test.js ● Test suite failed to run Todo must be called with only a description. @@ -46,7 +46,7 @@ exports[`shows error messages when called with no arguments 1`] = ` | ^ 9 | - at Object.todo (__tests__/todo_no_args.test.js:8:4) + at Object.todo (__tests__/todoNoArgs.test.js:8:4) " `; diff --git a/e2e/__tests__/__snapshots__/timeouts_legacy.test.js.snap b/e2e/__tests__/__snapshots__/timeoutsLegacy.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/timeouts_legacy.test.js.snap rename to e2e/__tests__/__snapshots__/timeoutsLegacy.test.js.snap diff --git a/e2e/__tests__/__snapshots__/to_match_inline_snapshot.test.js.snap b/e2e/__tests__/__snapshots__/toMatchInlineSnapshot.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/to_match_inline_snapshot.test.js.snap rename to e2e/__tests__/__snapshots__/toMatchInlineSnapshot.test.js.snap diff --git a/e2e/__tests__/__snapshots__/to_throw_error_matching_inline_snapshot.test.js.snap b/e2e/__tests__/__snapshots__/toThrowErrorMatchingInlineSnapshot.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/to_throw_error_matching_inline_snapshot.test.js.snap rename to e2e/__tests__/__snapshots__/toThrowErrorMatchingInlineSnapshot.test.js.snap diff --git a/e2e/__tests__/__snapshots__/to_throw_error_matching_snapshot.test.js.snap b/e2e/__tests__/__snapshots__/toThrowErrorMatchingSnapshot.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/to_throw_error_matching_snapshot.test.js.snap rename to e2e/__tests__/__snapshots__/toThrowErrorMatchingSnapshot.test.js.snap diff --git a/e2e/__tests__/__snapshots__/transform.test.js.snap b/e2e/__tests__/__snapshots__/transform.test.js.snap index 3189d30c87af..b6a57fc88c48 100644 --- a/e2e/__tests__/__snapshots__/transform.test.js.snap +++ b/e2e/__tests__/__snapshots__/transform.test.js.snap @@ -5,7 +5,7 @@ exports[`babel-jest instruments only specific files and collects coverage 1`] = File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s | ------------|----------|----------|----------|----------|-------------------| All files | 83.33 | 100 | 50 | 80 | | - Covered.js | 83.33 | 100 | 50 | 80 | 13 | + covered.js | 83.33 | 100 | 50 | 80 | 13 | ------------|----------|----------|----------|----------|-------------------|" `; @@ -22,7 +22,7 @@ exports[`no babel-jest instrumentation with no babel-jest 1`] = ` File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s | ------------|----------|----------|----------|----------|-------------------| All files | 83.33 | 100 | 50 | 80 | | - Covered.js | 83.33 | 100 | 50 | 80 | 13 | + covered.js | 83.33 | 100 | 50 | 80 | 13 | ------------|----------|----------|----------|----------|-------------------| " `; diff --git a/e2e/__tests__/__snapshots__/typescript_coverage.test.js.snap b/e2e/__tests__/__snapshots__/typescriptCoverage.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/typescript_coverage.test.js.snap rename to e2e/__tests__/__snapshots__/typescriptCoverage.test.js.snap diff --git a/e2e/__tests__/__snapshots__/watch_mode_only_failed.test.js.snap b/e2e/__tests__/__snapshots__/watchModeOnlyFailed.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/watch_mode_only_failed.test.js.snap rename to e2e/__tests__/__snapshots__/watchModeOnlyFailed.test.js.snap diff --git a/e2e/__tests__/__snapshots__/watch_mode_patterns.test.js.snap b/e2e/__tests__/__snapshots__/watchModePatterns.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/watch_mode_patterns.test.js.snap rename to e2e/__tests__/__snapshots__/watchModePatterns.test.js.snap diff --git a/e2e/__tests__/__snapshots__/watch_mode_update_snapshot.test.js.snap b/e2e/__tests__/__snapshots__/watchModeUpdateSnapshot.test.js.snap similarity index 100% rename from e2e/__tests__/__snapshots__/watch_mode_update_snapshot.test.js.snap rename to e2e/__tests__/__snapshots__/watchModeUpdateSnapshot.test.js.snap diff --git a/e2e/__tests__/auto_clear_mocks.test.js b/e2e/__tests__/autoClearMocks.test.js similarity index 100% rename from e2e/__tests__/auto_clear_mocks.test.js rename to e2e/__tests__/autoClearMocks.test.js diff --git a/e2e/__tests__/auto_reset_mocks.test.js b/e2e/__tests__/autoResetMocks.test.js similarity index 100% rename from e2e/__tests__/auto_reset_mocks.test.js rename to e2e/__tests__/autoResetMocks.test.js diff --git a/e2e/__tests__/auto_restore_mocks.test.js b/e2e/__tests__/autoRestoreMocks.test.js similarity index 100% rename from e2e/__tests__/auto_restore_mocks.test.js rename to e2e/__tests__/autoRestoreMocks.test.js diff --git a/e2e/__tests__/babel_plugin_jest_hoist.test.js b/e2e/__tests__/babelPluginJestHoist.test.js similarity index 100% rename from e2e/__tests__/babel_plugin_jest_hoist.test.js rename to e2e/__tests__/babelPluginJestHoist.test.js diff --git a/e2e/__tests__/bad_source_map.test.js b/e2e/__tests__/badSourceMap.test.js similarity index 100% rename from e2e/__tests__/bad_source_map.test.js rename to e2e/__tests__/badSourceMap.test.js diff --git a/e2e/__tests__/before-all-filtered.js b/e2e/__tests__/beforeAllFiltered.js similarity index 100% rename from e2e/__tests__/before-all-filtered.js rename to e2e/__tests__/beforeAllFiltered.js diff --git a/e2e/__tests__/before-each-queue.js b/e2e/__tests__/beforeEachQueue.js similarity index 100% rename from e2e/__tests__/before-each-queue.js rename to e2e/__tests__/beforeEachQueue.js diff --git a/e2e/__tests__/clear_cache.test.js b/e2e/__tests__/clearCache.test.js similarity index 100% rename from e2e/__tests__/clear_cache.test.js rename to e2e/__tests__/clearCache.test.js diff --git a/e2e/__tests__/cli-handles-exact-filenames.test.js b/e2e/__tests__/cliHandlesExactFilenames.test.js similarity index 100% rename from e2e/__tests__/cli-handles-exact-filenames.test.js rename to e2e/__tests__/cliHandlesExactFilenames.test.js diff --git a/e2e/__tests__/compare_dom_nodes.test.js b/e2e/__tests__/compareDomNodes.test.js similarity index 84% rename from e2e/__tests__/compare_dom_nodes.test.js rename to e2e/__tests__/compareDomNodes.test.js index cef2c84928b3..e17e0d0d578f 100644 --- a/e2e/__tests__/compare_dom_nodes.test.js +++ b/e2e/__tests__/compareDomNodes.test.js @@ -13,5 +13,5 @@ import runJest from '../runJest'; test('does not crash when expect involving a DOM node fails', () => { const result = runJest('compare-dom-nodes'); - expect(result.stderr).toContain('FAIL __tests__/failed-assertion.js'); + expect(result.stderr).toContain('FAIL __tests__/failedAssertion.js'); }); diff --git a/e2e/__tests__/console_log_output_when_run_in_band.test.js b/e2e/__tests__/consoleLogOutputWhenRunInBand.test.js similarity index 92% rename from e2e/__tests__/console_log_output_when_run_in_band.test.js rename to e2e/__tests__/consoleLogOutputWhenRunInBand.test.js index fd443ead78c6..5f4412f68bbf 100644 --- a/e2e/__tests__/console_log_output_when_run_in_band.test.js +++ b/e2e/__tests__/consoleLogOutputWhenRunInBand.test.js @@ -13,7 +13,7 @@ import path from 'path'; import {cleanup, extractSummary, writeFiles} from '../Utils'; import runJest from '../runJest'; -const DIR = path.resolve(__dirname, '../console_log_output_when_run_in_band'); +const DIR = path.resolve(__dirname, '../console-log-output-when-run-in-band'); beforeEach(() => cleanup(DIR)); afterAll(() => cleanup(DIR)); diff --git a/e2e/__tests__/coverage_remapping.test.js b/e2e/__tests__/coverageRemapping.test.js similarity index 100% rename from e2e/__tests__/coverage_remapping.test.js rename to e2e/__tests__/coverageRemapping.test.js diff --git a/e2e/__tests__/coverage_report.test.js b/e2e/__tests__/coverageReport.test.js similarity index 96% rename from e2e/__tests__/coverage_report.test.js rename to e2e/__tests__/coverageReport.test.js index 9cf395635b6a..9fab19fb0670 100644 --- a/e2e/__tests__/coverage_report.test.js +++ b/e2e/__tests__/coverageReport.test.js @@ -57,7 +57,7 @@ test('collects coverage only from multiple specified files', () => { '--collectCoverageFrom', 'setup.js', '--collectCoverageFrom', - 'OtherFile.js', + 'otherFile.js', ], {stripAnsi: true}, ); @@ -72,9 +72,9 @@ test('collects coverage only from specified files avoiding dependencies', () => '--no-cache', '--coverage', '--collectCoverageOnlyFrom', - 'Sum.js', + 'sum.js', '--', - 'Sum.test.js', + 'sum.test.js', ], {stripAnsi: true}, ); @@ -164,11 +164,11 @@ test('collects coverage from duplicate files avoiding shared cache', () => { '--coverageThreshold', '{"global": {"lines": 100}}', '--collectCoverageOnlyFrom', - 'cached-duplicates/a/Identical.js', + 'cached-duplicates/a/identical.js', '--collectCoverageOnlyFrom', - 'cached-duplicates/b/Identical.js', + 'cached-duplicates/b/identical.js', '--', - 'Identical.test.js', + 'identical.test.js', ]; // Run once to prime the cache runJest(DIR, args, {stripAnsi: true}); diff --git a/e2e/__tests__/coverage_threshold.test.js b/e2e/__tests__/coverageThreshold.test.js similarity index 100% rename from e2e/__tests__/coverage_threshold.test.js rename to e2e/__tests__/coverageThreshold.test.js diff --git a/e2e/__tests__/coverage_transform_instrumented.test.js b/e2e/__tests__/coverageTransformInstrumented.test.js similarity index 100% rename from e2e/__tests__/coverage_transform_instrumented.test.js rename to e2e/__tests__/coverageTransformInstrumented.test.js diff --git a/e2e/__tests__/custom_matcher_stack_trace.test.js b/e2e/__tests__/customMatcherStackTrace.test.js similarity index 100% rename from e2e/__tests__/custom_matcher_stack_trace.test.js rename to e2e/__tests__/customMatcherStackTrace.test.js diff --git a/e2e/__tests__/custom_reporters.test.js b/e2e/__tests__/customReporters.test.js similarity index 99% rename from e2e/__tests__/custom_reporters.test.js rename to e2e/__tests__/customReporters.test.js index 0ba5c64c581a..0fba6b615965 100644 --- a/e2e/__tests__/custom_reporters.test.js +++ b/e2e/__tests__/customReporters.test.js @@ -97,7 +97,7 @@ describe('Custom Reporters Integration', () => { test('TestReporter with all tests failing', () => { const {stdout, status, stderr} = runJest('custom-reporters', [ - 'add_fail.test.js', + 'addFail.test.js', ]); const parsedJSON = JSON.parse(stdout); diff --git a/e2e/__tests__/custom-resolver.test.js b/e2e/__tests__/customResolver.test.js similarity index 100% rename from e2e/__tests__/custom-resolver.test.js rename to e2e/__tests__/customResolver.test.js diff --git a/e2e/__tests__/dependency_clash.test.js b/e2e/__tests__/dependencyClash.test.js similarity index 100% rename from e2e/__tests__/dependency_clash.test.js rename to e2e/__tests__/dependencyClash.test.js diff --git a/e2e/__tests__/deprecated_cli_options.test.js b/e2e/__tests__/deprecatedCliOptions.test.js similarity index 100% rename from e2e/__tests__/deprecated_cli_options.test.js rename to e2e/__tests__/deprecatedCliOptions.test.js diff --git a/e2e/__tests__/detect_open_handles.js b/e2e/__tests__/detectOpenHandles.js similarity index 100% rename from e2e/__tests__/detect_open_handles.js rename to e2e/__tests__/detectOpenHandles.js diff --git a/e2e/__tests__/each.test.js b/e2e/__tests__/each.test.js index 5b743cce5420..f6ddda5d9ecd 100644 --- a/e2e/__tests__/each.test.js +++ b/e2e/__tests__/each.test.js @@ -21,7 +21,7 @@ test('works with passing tests', () => { }); test('shows error message when not enough arguments are supplied to tests', () => { - const result = runJest(dir, ['each-exception.test.js']); + const result = runJest(dir, ['eachException.test.js']); expect(result.status).toBe(1); const {rest} = extractSummary(result.stderr); expect(rest).toMatchSnapshot(); @@ -38,21 +38,21 @@ test('shows the correct errors in stderr when failing tests', () => { }); test('shows only the tests with .only as being ran', () => { - const result = runJest(dir, ['each-only.test.js']); + const result = runJest(dir, ['eachOnly.test.js']); expect(result.status).toBe(0); const {rest} = extractSummary(result.stderr); expect(rest).toMatchSnapshot(); }); test('shows only the tests without .skip as being ran', () => { - const result = runJest(dir, ['each-skip.test.js']); + const result = runJest(dir, ['eachSkip.test.js']); const {rest} = extractSummary(result.stderr); expect(rest).toMatchSnapshot(); expect(result.status).toBe(0); }); test('runs only the describe.only.each tests', () => { - const result = runJest(dir, ['describe-only.test.js']); + const result = runJest(dir, ['describeOnly.test.js']); const {rest} = extractSummary(result.stderr); expect(rest).toMatchSnapshot(); expect(result.status).toBe(0); diff --git a/e2e/__tests__/empty-describe-with-hooks.test.js b/e2e/__tests__/emptyDescribeWithHooks.test.js similarity index 79% rename from e2e/__tests__/empty-describe-with-hooks.test.js rename to e2e/__tests__/emptyDescribeWithHooks.test.js index b8876fb79d51..a20c8e8c8a0e 100644 --- a/e2e/__tests__/empty-describe-with-hooks.test.js +++ b/e2e/__tests__/emptyDescribeWithHooks.test.js @@ -19,25 +19,25 @@ const dir = path.resolve(__dirname, '../empty-describe-with-hooks'); skipSuiteOnJasmine(); test('hook in empty describe', () => { - const result = runJest(dir, ['hook-in-empty-describe.test.js']); + const result = runJest(dir, ['hookInEmptyDescribe.test.js']); expect(result.status).toBe(1); expect(extractSummary(result.stderr)).toMatchSnapshot(); }); test('hook in describe with skipped test', () => { - const result = runJest(dir, ['hook-in-describe-with-skipped-test.test.js']); + const result = runJest(dir, ['hookInDescribeWithSkippedTest.test.js']); expect(result.status).toBe(0); expect(extractSummary(result.stderr)).toMatchSnapshot(); }); test('hook in empty nested describe', () => { - const result = runJest(dir, ['hook-in-empty-nested-describe.test.js']); + const result = runJest(dir, ['hookInEmptyNestedDescribe.test.js']); expect(result.status).toBe(1); expect(extractSummary(result.stderr)).toMatchSnapshot(); }); test('multiple hooks in empty describe', () => { - const result = runJest(dir, ['multiple-hooks-in-empty-describe.test.js']); + const result = runJest(dir, ['multipleHooksInEmptyDescribe.test.js']); expect(result.status).toBe(1); expect(extractSummary(result.stderr)).toMatchSnapshot(); }); diff --git a/e2e/__tests__/empty_suite_error.test.js b/e2e/__tests__/emptySuiteError.test.js similarity index 100% rename from e2e/__tests__/empty_suite_error.test.js rename to e2e/__tests__/emptySuiteError.test.js diff --git a/e2e/__tests__/error-on-deprecated.test.js b/e2e/__tests__/errorOnDeprecated.test.js similarity index 97% rename from e2e/__tests__/error-on-deprecated.test.js rename to e2e/__tests__/errorOnDeprecated.test.js index 94ab728d384b..b341dea25140 100644 --- a/e2e/__tests__/error-on-deprecated.test.js +++ b/e2e/__tests__/errorOnDeprecated.test.js @@ -26,7 +26,7 @@ const testFiles = [ 'pending.test.js', 'spyOn.test.js', 'spyOnProperty.test.js', - 'DEFAULT_TIMEOUT_INTERVAL.test.js', + 'defaultTimeoutInterval.test.js', ]; const SHOULD_NOT_PASS_IN_JEST = new Set([ diff --git a/e2e/__tests__/execute-tests-once-in-mpr.js b/e2e/__tests__/executeTestsOnceInMpr.js similarity index 100% rename from e2e/__tests__/execute-tests-once-in-mpr.js rename to e2e/__tests__/executeTestsOnceInMpr.js diff --git a/e2e/__tests__/expect-async-matcher.test.js b/e2e/__tests__/expectAsyncMatcher.test.js similarity index 100% rename from e2e/__tests__/expect-async-matcher.test.js rename to e2e/__tests__/expectAsyncMatcher.test.js diff --git a/e2e/__tests__/expect_in_vm.test.js b/e2e/__tests__/expectInVm.test.js similarity index 100% rename from e2e/__tests__/expect_in_vm.test.js rename to e2e/__tests__/expectInVm.test.js diff --git a/e2e/__tests__/failures.test.js b/e2e/__tests__/failures.test.js index 3e630c2ef399..088248ca76fb 100644 --- a/e2e/__tests__/failures.test.js +++ b/e2e/__tests__/failures.test.js @@ -24,21 +24,21 @@ function cleanStderr(stderr) { test('not throwing Error objects', () => { let stderr; - stderr = runJest(dir, ['throw_number.test.js']).stderr; + stderr = runJest(dir, ['throwNumber.test.js']).stderr; expect(cleanStderr(stderr)).toMatchSnapshot(); - stderr = runJest(dir, ['throw_string.test.js']).stderr; + stderr = runJest(dir, ['throwString.test.js']).stderr; expect(cleanStderr(stderr)).toMatchSnapshot(); - stderr = runJest(dir, ['throw_object.test.js']).stderr; + stderr = runJest(dir, ['throwObject.test.js']).stderr; expect(cleanStderr(stderr)).toMatchSnapshot(); - stderr = runJest(dir, ['assertion_count.test.js']).stderr; + stderr = runJest(dir, ['assertionCount.test.js']).stderr; expect(cleanStderr(stderr)).toMatchSnapshot(); - stderr = runJest(dir, ['during_tests.test.js']).stderr; + stderr = runJest(dir, ['duringTests.test.js']).stderr; expect(cleanStderr(stderr)).toMatchSnapshot(); }); test('works with node assert', () => { const nodeMajorVersion = Number(process.versions.node.split('.')[0]); - const {stderr} = runJest(dir, ['node_assertion_error.test.js']); + const {stderr} = runJest(dir, ['assertionError.test.js']); let summary = normalizeDots(cleanStderr(stderr)); // Node 9 started to include the error for `doesNotThrow` @@ -64,7 +64,7 @@ test('works with node assert', () => { 73 | }); 74 | }); - at Object.doesNotThrow (__tests__/node_assertion_error.test.js:71:10) + at Object.doesNotThrow (__tests__/assertionError.test.js:71:10) `); const commonErrorMessage = `Message: @@ -114,7 +114,7 @@ test('works with node assert', () => { 69 | 70 | test('assert.doesNotThrow', () => { - at Object.ifError (__tests__/node_assertion_error.test.js:67:10) + at Object.ifError (__tests__/assertionError.test.js:67:10) `; expect(summary).toContain(ifErrorMessage); @@ -131,7 +131,7 @@ test('works with node assert', () => { 68 | }); 69 | - at Object.test (__tests__/node_assertion_error.test.js:66:1) + at Object.test (__tests__/assertionError.test.js:66:1) `; expect(summary).toContain(ifErrorMessage); @@ -142,13 +142,13 @@ test('works with node assert', () => { }); test('works with assertions in separate files', () => { - const {stderr} = runJest(dir, ['test_macro.test.js']); + const {stderr} = runJest(dir, ['testMacro.test.js']); expect(normalizeDots(cleanStderr(stderr))).toMatchSnapshot(); }); test('works with async failures', () => { - const {stderr} = runJest(dir, ['async_failures.test.js']); + const {stderr} = runJest(dir, ['asyncFailures.test.js']); const rest = cleanStderr(stderr) .split('\n') @@ -175,7 +175,7 @@ test('works with snapshot failures', () => { }); test('works with named snapshot failures', () => { - const {stderr} = runJest(dir, ['snapshot_named.test.js']); + const {stderr} = runJest(dir, ['snapshotNamed.test.js']); const result = normalizeDots(cleanStderr(stderr)); diff --git a/e2e/__tests__/fake-promises.test.js b/e2e/__tests__/fakePromises.test.js similarity index 100% rename from e2e/__tests__/fake-promises.test.js rename to e2e/__tests__/fakePromises.test.js diff --git a/e2e/__tests__/find_related_files.test.js b/e2e/__tests__/findRelatedFiles.test.js similarity index 98% rename from e2e/__tests__/find_related_files.test.js rename to e2e/__tests__/findRelatedFiles.test.js index 479626847cb0..98fa91b5523f 100644 --- a/e2e/__tests__/find_related_files.test.js +++ b/e2e/__tests__/findRelatedFiles.test.js @@ -14,7 +14,7 @@ import os from 'os'; import path from 'path'; import {cleanup, extractSummary, writeFiles} from '../Utils'; -const DIR = path.resolve(os.tmpdir(), 'find_related_tests_test'); +const DIR = path.resolve(os.tmpdir(), 'find-related-tests-test'); beforeEach(() => cleanup(DIR)); afterEach(() => cleanup(DIR)); diff --git a/e2e/__tests__/force_exit.test.js b/e2e/__tests__/forceExit.test.js similarity index 95% rename from e2e/__tests__/force_exit.test.js rename to e2e/__tests__/forceExit.test.js index ed0ec2ea0646..11179a316c5e 100644 --- a/e2e/__tests__/force_exit.test.js +++ b/e2e/__tests__/forceExit.test.js @@ -14,7 +14,7 @@ import os from 'os'; import path from 'path'; import {cleanup, writeFiles} from '../Utils'; -const DIR = path.resolve(os.tmpdir(), 'force_exit_test'); +const DIR = path.resolve(os.tmpdir(), 'force-exit-test'); beforeEach(() => cleanup(DIR)); afterEach(() => cleanup(DIR)); diff --git a/e2e/__tests__/generator_mock.test.js b/e2e/__tests__/generatorMock.test.js similarity index 100% rename from e2e/__tests__/generator_mock.test.js rename to e2e/__tests__/generatorMock.test.js diff --git a/e2e/__tests__/global_setup.test.js b/e2e/__tests__/globalSetup.test.js similarity index 97% rename from e2e/__tests__/global_setup.test.js rename to e2e/__tests__/globalSetup.test.js index 74ad525423b4..44b409f6f0b4 100644 --- a/e2e/__tests__/global_setup.test.js +++ b/e2e/__tests__/globalSetup.test.js @@ -43,7 +43,7 @@ test('globalSetup is triggered once before all test suites', () => { }); test('jest throws an error when globalSetup does not export a function', () => { - const setupPath = path.resolve(__dirname, '../global-setup/invalid_setup.js'); + const setupPath = path.resolve(__dirname, '../global-setup/invalidSetup.js'); const {status, stderr} = runJest('global-setup', [ `--globalSetup=${setupPath}`, `--testPathPattern=__tests__`, @@ -58,7 +58,7 @@ test('jest throws an error when globalSetup does not export a function', () => { test('globalSetup function gets jest config object as a parameter', () => { const setupPath = path.resolve( __dirname, - '../global-setup/setup-with-config.js', + '../global-setup/setupWithConfig.js', ); const testPathPattern = 'pass'; diff --git a/e2e/__tests__/global_teardown.test.js b/e2e/__tests__/globalTeardown.test.js similarity index 96% rename from e2e/__tests__/global_teardown.test.js rename to e2e/__tests__/globalTeardown.test.js index f510313dd8df..8f776ae30e8e 100644 --- a/e2e/__tests__/global_teardown.test.js +++ b/e2e/__tests__/globalTeardown.test.js @@ -50,7 +50,7 @@ test('globalTeardown is triggered once after all test suites', () => { test('jest throws an error when globalTeardown does not export a function', () => { const teardownPath = path.resolve( __dirname, - '../global-teardown/invalid_teardown.js', + '../global-teardown/invalidTeardown.js', ); const {status, stderr} = runJest('global-teardown', [ `--globalTeardown=${teardownPath}`, @@ -66,7 +66,7 @@ test('jest throws an error when globalTeardown does not export a function', () = test('globalTeardown function gets jest config object as a parameter', () => { const teardownPath = path.resolve( __dirname, - '../global-teardown/teardown-with-config.js', + '../global-teardown/teardownWithConfig.js', ); const testPathPattern = 'pass'; diff --git a/e2e/__tests__/globals.test.js b/e2e/__tests__/globals.test.js index c2c6361c8f63..0a60e99d6b8d 100644 --- a/e2e/__tests__/globals.test.js +++ b/e2e/__tests__/globals.test.js @@ -19,7 +19,7 @@ import { writeFiles, } from '../Utils'; -const DIR = path.resolve(os.tmpdir(), 'global-variables.test'); +const DIR = path.resolve(os.tmpdir(), 'globalVariables.test'); const TEST_DIR = path.resolve(DIR, '__tests__'); function cleanStderr(stderr) { @@ -35,7 +35,7 @@ beforeEach(() => { afterAll(() => cleanup(DIR)); test('basic test constructs', () => { - const filename = 'basic.test-constructs.test.js'; + const filename = 'basic.testConstructs.test.js'; const content = ` it('it', () => {}); test('test', () => {}); @@ -56,7 +56,7 @@ test('basic test constructs', () => { }); test('skips', () => { - const filename = 'skips-constructs.test.js'; + const filename = 'skipsConstructs.test.js'; const content = ` it('it', () => {}); xtest('xtest', () => {}); @@ -87,7 +87,7 @@ test('skips', () => { }); test('only', () => { - const filename = 'only-constructs.test.js'; + const filename = 'onlyConstructs.test.js'; const content = ` it('it', () => {}); test.only('test.only', () => {}); @@ -117,7 +117,7 @@ test('only', () => { }); test('cannot have describe with no implementation', () => { - const filename = 'only-constructs.test.js'; + const filename = 'onlyConstructs.test.js'; const content = ` describe('describe, no implementation'); `; @@ -133,7 +133,7 @@ test('cannot have describe with no implementation', () => { }); test('cannot test with no implementation', () => { - const filename = 'only-constructs.test.js'; + const filename = 'onlyConstructs.test.js'; const content = ` it('it', () => {}); it('it, no implementation'); @@ -150,7 +150,7 @@ test('cannot test with no implementation', () => { }); test('skips with expand arg', () => { - const filename = 'skips-constructs.test.js'; + const filename = 'skipsConstructs.test.js'; const content = ` it('it', () => {}); xtest('xtest', () => {}); @@ -181,7 +181,7 @@ test('skips with expand arg', () => { }); test('only with expand arg', () => { - const filename = 'only-constructs.test.js'; + const filename = 'onlyConstructs.test.js'; const content = ` it('it', () => {}); test.only('test.only', () => {}); @@ -211,7 +211,7 @@ test('only with expand arg', () => { }); test('cannot test with no implementation with expand arg', () => { - const filename = 'only-constructs.test.js'; + const filename = 'onlyConstructs.test.js'; const content = ` it('it', () => {}); it('it, no implementation'); @@ -228,7 +228,7 @@ test('cannot test with no implementation with expand arg', () => { }); test('function as descriptor', () => { - const filename = 'function-as-descriptor.test.js'; + const filename = 'functionAsDescriptor.test.js'; const content = ` function Foo() {} describe(Foo, () => { diff --git a/e2e/__tests__/haste_map_sha1.test.js b/e2e/__tests__/hasteMapSha1.test.js similarity index 87% rename from e2e/__tests__/haste_map_sha1.test.js rename to e2e/__tests__/hasteMapSha1.test.js index e9859953b7d0..9a9fa2b28ae4 100644 --- a/e2e/__tests__/haste_map_sha1.test.js +++ b/e2e/__tests__/hasteMapSha1.test.js @@ -24,8 +24,8 @@ test('exits the process after test are done but before timers complete', async ( 'file.android.js': '"foo android"', 'file.ios.js': '"foo ios"', 'file.js': '"foo default"', - 'file_with_extension.ignored': '"ignored file"', - 'node_modules/bar/file_with_extension.ignored': '"ignored node modules"', + 'fileWithExtension.ignored': '"ignored file"', + 'node_modules/bar/fileWithExtension.ignored': '"ignored node modules"', 'node_modules/bar/image.png': '"an image"', 'node_modules/bar/index.js': '"node modules bar"', }); @@ -70,13 +70,13 @@ test('exits the process after test are done but before timers complete', async ( // Ignored files do not get the SHA-1 computed. - expect(hasteFS.getSha1(path.join(DIR, 'file_with_extension.ignored'))).toBe( + expect(hasteFS.getSha1(path.join(DIR, 'fileWithExtension.ignored'))).toBe( null, ); expect( hasteFS.getSha1( - path.join(DIR, 'node_modules/bar/file_with_extension.ignored'), + path.join(DIR, 'node_modules/bar/fileWithExtension.ignored'), ), ).toBe(null); }); diff --git a/e2e/__tests__/haste_map_size.test.js b/e2e/__tests__/hasteMapSize.test.js similarity index 100% rename from e2e/__tests__/haste_map_size.test.js rename to e2e/__tests__/hasteMapSize.test.js diff --git a/e2e/__tests__/jasmine_async.test.js b/e2e/__tests__/jasmineAsync.test.js similarity index 85% rename from e2e/__tests__/jasmine_async.test.js rename to e2e/__tests__/jasmineAsync.test.js index 08d44591eaa2..f86aad6ecfca 100644 --- a/e2e/__tests__/jasmine_async.test.js +++ b/e2e/__tests__/jasmineAsync.test.js @@ -13,7 +13,7 @@ import runJest, {json as runWithJson} from '../runJest'; describe('async jasmine', () => { it('works with beforeAll', () => { - const result = runWithJson('jasmine-async', ['promise_before_all.test.js']); + const result = runWithJson('jasmine-async', ['promiseBeforeAll.test.js']); const json = result.json; expect(json.numTotalTests).toBe(4); @@ -29,9 +29,7 @@ describe('async jasmine', () => { }); it('works with beforeEach', () => { - const result = runWithJson('jasmine-async', [ - 'promise_before_each.test.js', - ]); + const result = runWithJson('jasmine-async', ['promiseBeforeEach.test.js']); const json = result.json; expect(json.numTotalTests).toBe(3); @@ -45,7 +43,7 @@ describe('async jasmine', () => { }); it('works with afterAll', () => { - const result = runWithJson('jasmine-async', ['promise_after_all.test.js']); + const result = runWithJson('jasmine-async', ['promiseAfterAll.test.js']); const json = result.json; expect(json.numTotalTests).toBe(2); @@ -58,7 +56,7 @@ describe('async jasmine', () => { }); it('works with afterEach', () => { - const result = runWithJson('jasmine-async', ['promise_after_each.test.js']); + const result = runWithJson('jasmine-async', ['promiseAfterEach.test.js']); const json = result.json; expect(json.numTotalTests).toBe(2); @@ -69,7 +67,7 @@ describe('async jasmine', () => { }); it('works with fit', () => { - const result = runWithJson('jasmine-async', ['promise_fit.test.js']); + const result = runWithJson('jasmine-async', ['promiseFit.test.js']); const json = result.json; expect(json.numTotalTests).toBe(3); @@ -80,7 +78,7 @@ describe('async jasmine', () => { }); it('works with xit', () => { - const result = runWithJson('jasmine-async', ['promise_xit.test.js']); + const result = runWithJson('jasmine-async', ['promiseXit.test.js']); const json = result.json; expect(json.numTotalTests).toBe(2); @@ -90,7 +88,7 @@ describe('async jasmine', () => { }); it('throws when not a promise is returned', () => { - const result = runWithJson('jasmine-async', ['returning_values.test.js']); + const result = runWithJson('jasmine-async', ['returningValues.test.js']); const json = result.json; expect(json.numTotalTests).toBe(11); @@ -100,7 +98,7 @@ describe('async jasmine', () => { }); it('tests async promise code', () => { - const result = runWithJson('jasmine-async', ['promise_it.test.js']); + const result = runWithJson('jasmine-async', ['promiseIt.test.js']); const json = result.json; const message = json.testResults[0].message; @@ -130,7 +128,7 @@ describe('async jasmine', () => { }); it('async test fails', () => { - const result = runWithJson('jasmine-async', ['async_test_fails.test.js']); + const result = runWithJson('jasmine-async', ['asyncTestFails.test.js']); expect(result.status).toBe(1); expect(result.json.testResults[0].message).toEqual( diff --git a/e2e/__tests__/jasmine_async_with_pending_during_test.js b/e2e/__tests__/jasmineAsyncWithPendingDuringTest.js similarity index 89% rename from e2e/__tests__/jasmine_async_with_pending_during_test.js rename to e2e/__tests__/jasmineAsyncWithPendingDuringTest.js index cf9cf54d84d9..cfb24c9adc30 100644 --- a/e2e/__tests__/jasmine_async_with_pending_during_test.js +++ b/e2e/__tests__/jasmineAsyncWithPendingDuringTest.js @@ -16,7 +16,7 @@ describe('async jasmine with pending during test', () => { skipSuiteOnJestCircus(); it('should be reported as a pending test', () => { - const result = runWithJson('jasmine-async', ['pending_in_promise.test.js']); + const result = runWithJson('jasmine-async', ['pendingInPromise.test.js']); const json = result.json; expect(json.numTotalTests).toBe(1); diff --git a/e2e/__tests__/jest_changed_files.test.js b/e2e/__tests__/jestChangedFiles.test.js similarity index 77% rename from e2e/__tests__/jest_changed_files.test.js rename to e2e/__tests__/jestChangedFiles.test.js index 0c1a4ad3ec6a..cdbbe646b706 100644 --- a/e2e/__tests__/jest_changed_files.test.js +++ b/e2e/__tests__/jestChangedFiles.test.js @@ -21,7 +21,7 @@ import runJest from '../runJest'; skipSuiteOnWindows(); -const DIR = path.resolve(os.tmpdir(), 'jest_changed_files_test_dir'); +const DIR = path.resolve(os.tmpdir(), 'jest-changed-files-test-dir'); const GIT = 'git -c user.name=jest_test -c user.email=jest_test@test.com'; const HG = 'hg --config ui.username=jest_test'; @@ -31,23 +31,23 @@ afterEach(() => cleanup(DIR)); test('gets hg SCM roots and dedups them', async () => { writeFiles(DIR, { - 'first_repo/file1.txt': 'file1', - 'first_repo/nested_dir/file2.txt': 'file2', - 'first_repo/nested_dir/second_nested_dir/file3.txt': 'file3', - 'second_repo/file1.txt': 'file1', - 'second_repo/nested_dir/file2.txt': 'file2', - 'second_repo/nested_dir/second_nested_dir/file3.txt': 'file3', + 'first-repo/file1.txt': 'file1', + 'first-repo/nested-dir/file2.txt': 'file2', + 'first-repo/nested-dir/second-nested-dir/file3.txt': 'file3', + 'second-repo/file1.txt': 'file1', + 'second-repo/nested-dir/file2.txt': 'file2', + 'second-repo/nested-dir/second-nested-dir/file3.txt': 'file3', }); - run(`${HG} init`, path.resolve(DIR, 'first_repo')); - run(`${HG} init`, path.resolve(DIR, 'second_repo')); + run(`${HG} init`, path.resolve(DIR, 'first-repo')); + run(`${HG} init`, path.resolve(DIR, 'second-repo')); const roots = [ '', - 'first_repo/nested_dir', - 'first_repo/nested_dir/second_nested_dir', - 'second_repo/nested_dir', - 'second_repo/nested_dir/second_nested_dir', + 'first-repo/nested-dir', + 'first-repo/nested-dir/second-nested-dir', + 'second-repo/nested-dir', + 'second-repo/nested-dir/second-nested-dir', ].map(filename => path.resolve(DIR, filename)); const repos = await findRepos(roots); @@ -60,29 +60,29 @@ test('gets hg SCM roots and dedups them', async () => { // NOTE: This test can break if you have a .hg repo initialized inside your // os tmp directory. expect(hgRepos).toHaveLength(2); - expect(hgRepos[0]).toMatch(/\/jest_changed_files_test_dir\/first_repo$/); - expect(hgRepos[1]).toMatch(/\/jest_changed_files_test_dir\/second_repo$/); + expect(hgRepos[0]).toMatch(/\/jest-changed-files-test-dir\/first-repo$/); + expect(hgRepos[1]).toMatch(/\/jest-changed-files-test-dir\/second-repo$/); }); test('gets git SCM roots and dedups them', async () => { writeFiles(DIR, { - 'first_repo/file1.txt': 'file1', - 'first_repo/nested_dir/file2.txt': 'file2', - 'first_repo/nested_dir/second_nested_dir/file3.txt': 'file3', - 'second_repo/file1.txt': 'file1', - 'second_repo/nested_dir/file2.txt': 'file2', - 'second_repo/nested_dir/second_nested_dir/file3.txt': 'file3', + 'first-repo/file1.txt': 'file1', + 'first-repo/nested-dir/file2.txt': 'file2', + 'first-repo/nested-dir/second-nested-dir/file3.txt': 'file3', + 'second-repo/file1.txt': 'file1', + 'second-repo/nested-dir/file2.txt': 'file2', + 'second-repo/nested-dir/second-nested-dir/file3.txt': 'file3', }); - run(`${GIT} init`, path.resolve(DIR, 'first_repo')); - run(`${GIT} init`, path.resolve(DIR, 'second_repo')); + run(`${GIT} init`, path.resolve(DIR, 'first-repo')); + run(`${GIT} init`, path.resolve(DIR, 'second-repo')); const roots = [ '', - 'first_repo/nested_dir', - 'first_repo/nested_dir/second_nested_dir', - 'second_repo/nested_dir', - 'second_repo/nested_dir/second_nested_dir', + 'first-repo/nested-dir', + 'first-repo/nested-dir/second-nested-dir', + 'second-repo/nested-dir', + 'second-repo/nested-dir/second-nested-dir', ].map(filename => path.resolve(DIR, filename)); const repos = await findRepos(roots); @@ -94,29 +94,29 @@ test('gets git SCM roots and dedups them', async () => { // NOTE: This test can break if you have a .git repo initialized inside your // os tmp directory. expect(gitRepos).toHaveLength(2); - expect(gitRepos[0]).toMatch(/\/jest_changed_files_test_dir\/first_repo$/); - expect(gitRepos[1]).toMatch(/\/jest_changed_files_test_dir\/second_repo$/); + expect(gitRepos[0]).toMatch(/\/jest-changed-files-test-dir\/first-repo$/); + expect(gitRepos[1]).toMatch(/\/jest-changed-files-test-dir\/second-repo$/); }); test('gets mixed git and hg SCM roots and dedups them', async () => { writeFiles(DIR, { - 'first_repo/file1.txt': 'file1', - 'first_repo/nested_dir/file2.txt': 'file2', - 'first_repo/nested_dir/second_nested_dir/file3.txt': 'file3', - 'second_repo/file1.txt': 'file1', - 'second_repo/nested_dir/file2.txt': 'file2', - 'second_repo/nested_dir/second_nested_dir/file3.txt': 'file3', + 'first-repo/file1.txt': 'file1', + 'first-repo/nested-dir/file2.txt': 'file2', + 'first-repo/nested-dir/second-nested-dir/file3.txt': 'file3', + 'second-repo/file1.txt': 'file1', + 'second-repo/nested-dir/file2.txt': 'file2', + 'second-repo/nested-dir/second-nested-dir/file3.txt': 'file3', }); - run(`${GIT} init`, path.resolve(DIR, 'first_repo')); - run(`${HG} init`, path.resolve(DIR, 'second_repo')); + run(`${GIT} init`, path.resolve(DIR, 'first-repo')); + run(`${HG} init`, path.resolve(DIR, 'second-repo')); const roots = [ '', - 'first_repo/nested_dir', - 'first_repo/nested_dir/second_nested_dir', - 'second_repo/nested_dir', - 'second_repo/nested_dir/second_nested_dir', + 'first-repo/nested-dir', + 'first-repo/nested-dir/second-nested-dir', + 'second-repo/nested-dir', + 'second-repo/nested-dir/second-nested-dir', ].map(filename => path.resolve(DIR, filename)); const repos = await findRepos(roots); @@ -127,20 +127,20 @@ test('gets mixed git and hg SCM roots and dedups them', async () => { // inside your os tmp directory. expect(gitRepos).toHaveLength(1); expect(hgRepos).toHaveLength(1); - expect(gitRepos[0]).toMatch(/\/jest_changed_files_test_dir\/first_repo$/); - expect(hgRepos[0]).toMatch(/\/jest_changed_files_test_dir\/second_repo$/); + expect(gitRepos[0]).toMatch(/\/jest-changed-files-test-dir\/first-repo$/); + expect(hgRepos[0]).toMatch(/\/jest-changed-files-test-dir\/second-repo$/); }); test('gets changed files for git', async () => { writeFiles(DIR, { 'file1.txt': 'file1', - 'nested_dir/file2.txt': 'file2', - 'nested_dir/second_nested_dir/file3.txt': 'file3', + 'nested-dir/file2.txt': 'file2', + 'nested-dir/second-nested-dir/file3.txt': 'file3', }); run(`${GIT} init`, DIR); - const roots = ['', 'nested_dir', 'nested_dir/second_nested_dir'].map( + const roots = ['', 'nested-dir', 'nested-dir/second-nested-dir'].map( filename => path.resolve(DIR, filename), ); @@ -228,13 +228,13 @@ test('gets changed files for git', async () => { test('monitors only root paths for git', async () => { writeFiles(DIR, { 'file1.txt': 'file1', - 'nested_dir/file2.txt': 'file2', - 'nested_dir/second_nested_dir/file3.txt': 'file3', + 'nested-dir/file2.txt': 'file2', + 'nested-dir/second-nested-dir/file3.txt': 'file3', }); run(`${GIT} init`, DIR); - const roots = [path.resolve(DIR, 'nested_dir')]; + const roots = [path.resolve(DIR, 'nested-dir')]; const {changedFiles: files} = await getChangedFilesForRoots(roots, {}); expect( @@ -272,13 +272,13 @@ test('gets changed files for hg', async () => { } writeFiles(DIR, { 'file1.txt': 'file1', - 'nested_dir/file2.txt': 'file2', - 'nested_dir/second_nested_dir/file3.txt': 'file3', + 'nested-dir/file2.txt': 'file2', + 'nested-dir/second-nested-dir/file3.txt': 'file3', }); run(`${HG} init`, DIR); - const roots = ['', 'nested_dir', 'nested_dir/second_nested_dir'].map( + const roots = ['', 'nested-dir', 'nested-dir/second-nested-dir'].map( filename => path.resolve(DIR, filename), ); @@ -375,13 +375,13 @@ test('monitors only root paths for hg', async () => { } writeFiles(DIR, { 'file1.txt': 'file1', - 'nested_dir/file2.txt': 'file2', - 'nested_dir/second_nested_dir/file3.txt': 'file3', + 'nested-dir/file2.txt': 'file2', + 'nested-dir/second-nested-dir/file3.txt': 'file3', }); run(`${HG} init`, DIR); - const roots = [path.resolve(DIR, 'nested_dir')]; + const roots = [path.resolve(DIR, 'nested-dir')]; const {changedFiles: files} = await getChangedFilesForRoots(roots, {}); expect( diff --git a/e2e/__tests__/jest_require_actual.test.js b/e2e/__tests__/jestRequireActual.test.js similarity index 95% rename from e2e/__tests__/jest_require_actual.test.js rename to e2e/__tests__/jestRequireActual.test.js index 57bf9c713fd5..ad7e2ae975e3 100644 --- a/e2e/__tests__/jest_require_actual.test.js +++ b/e2e/__tests__/jestRequireActual.test.js @@ -14,7 +14,7 @@ import os from 'os'; import {cleanup, writeFiles} from '../Utils'; import runJest from '../runJest'; -const DIR = path.resolve(os.tmpdir(), 'jest_require_actual_test'); +const DIR = path.resolve(os.tmpdir(), 'jest-require-actual-test'); beforeEach(() => cleanup(DIR)); afterAll(() => cleanup(DIR)); diff --git a/e2e/__tests__/jest_require_mock.test.js b/e2e/__tests__/jestRequireMock.test.js similarity index 95% rename from e2e/__tests__/jest_require_mock.test.js rename to e2e/__tests__/jestRequireMock.test.js index 26ea0ddc2ae1..eefe8c0bc577 100644 --- a/e2e/__tests__/jest_require_mock.test.js +++ b/e2e/__tests__/jestRequireMock.test.js @@ -14,7 +14,7 @@ import os from 'os'; import {cleanup, writeFiles} from '../Utils'; import runJest from '../runJest'; -const DIR = path.resolve(os.tmpdir(), 'jest_require_mock_test'); +const DIR = path.resolve(os.tmpdir(), 'jest-require-mock-test'); beforeEach(() => cleanup(DIR)); afterAll(() => cleanup(DIR)); diff --git a/e2e/__tests__/json_reporter.test.js b/e2e/__tests__/jsonReporter.test.js similarity index 100% rename from e2e/__tests__/json_reporter.test.js rename to e2e/__tests__/jsonReporter.test.js diff --git a/e2e/__tests__/list_tests.test.js b/e2e/__tests__/listTests.test.js similarity index 100% rename from e2e/__tests__/list_tests.test.js rename to e2e/__tests__/listTests.test.js diff --git a/e2e/__tests__/location_in_results.test.js b/e2e/__tests__/locationInResults.test.js similarity index 100% rename from e2e/__tests__/location_in_results.test.js rename to e2e/__tests__/locationInResults.test.js diff --git a/e2e/__tests__/log_heap_usage.test.js b/e2e/__tests__/logHeapUsage.test.js similarity index 100% rename from e2e/__tests__/log_heap_usage.test.js rename to e2e/__tests__/logHeapUsage.test.js diff --git a/e2e/__tests__/mock_names.test.js b/e2e/__tests__/mockNames.test.js similarity index 100% rename from e2e/__tests__/mock_names.test.js rename to e2e/__tests__/mockNames.test.js diff --git a/e2e/__tests__/module_name_mapper.test.js b/e2e/__tests__/moduleNameMapper.test.js similarity index 100% rename from e2e/__tests__/module_name_mapper.test.js rename to e2e/__tests__/moduleNameMapper.test.js diff --git a/e2e/__tests__/module_parent_null_in_test.js b/e2e/__tests__/moduleParentNullInTest.js similarity index 86% rename from e2e/__tests__/module_parent_null_in_test.js rename to e2e/__tests__/moduleParentNullInTest.js index 26fdef469a9a..127a2d2a0e1e 100644 --- a/e2e/__tests__/module_parent_null_in_test.js +++ b/e2e/__tests__/moduleParentNullInTest.js @@ -11,7 +11,7 @@ import runJest from '../runJest'; test('module.parent should be null in test files', () => { - const {status} = runJest('module_parent_null_in_test'); + const {status} = runJest('module-parent-null-in-test'); expect(status).toBe(0); }); diff --git a/e2e/__tests__/multi_project_runner.test.js b/e2e/__tests__/multiProjectRunner.test.js similarity index 98% rename from e2e/__tests__/multi_project_runner.test.js rename to e2e/__tests__/multiProjectRunner.test.js index 9583d9206b49..38d99dc29d9a 100644 --- a/e2e/__tests__/multi_project_runner.test.js +++ b/e2e/__tests__/multiProjectRunner.test.js @@ -15,7 +15,7 @@ import path from 'path'; import stripAnsi from 'strip-ansi'; import {cleanup, extractSummary, sortLines, writeFiles} from '../Utils'; -const DIR = path.resolve(os.tmpdir(), 'multi_project_runner_test'); +const DIR = path.resolve(os.tmpdir(), 'multi-project-runner-test'); const SAMPLE_FILE_CONTENT = 'module.exports = {};'; @@ -27,7 +27,7 @@ test('--listTests doesnt duplicate the test files', () => { '.watchmanconfig': '', '/project1.js': `module.exports = {rootDir: './', displayName: 'BACKEND'}`, '/project2.js': `module.exports = {rootDir: './', displayName: 'BACKEND'}`, - '__tests__/in_both_projects-test.js': `test('test', () => {});`, + '__tests__/inBothProjectsTest.js': `test('test', () => {});`, 'package.json': JSON.stringify({ jest: {projects: ['/project1.js', '/project2.js']}, }), @@ -35,7 +35,7 @@ test('--listTests doesnt duplicate the test files', () => { const {stdout} = runJest(DIR, ['--listTests']); expect(stdout.split('\n')).toHaveLength(1); - expect(stdout).toMatch('in_both_projects-test.js'); + expect(stdout).toMatch('inBothProjectsTest.js'); }); test('can pass projects or global config', () => { diff --git a/e2e/__tests__/native_async_mock.test.js b/e2e/__tests__/nativeAsyncMock.test.js similarity index 100% rename from e2e/__tests__/native_async_mock.test.js rename to e2e/__tests__/nativeAsyncMock.test.js diff --git a/e2e/__tests__/nested_event_loop.test.js b/e2e/__tests__/nestedEventLoop.test.js similarity index 100% rename from e2e/__tests__/nested_event_loop.test.js rename to e2e/__tests__/nestedEventLoop.test.js diff --git a/e2e/__tests__/no_test_found.test.js b/e2e/__tests__/noTestFound.test.js similarity index 100% rename from e2e/__tests__/no_test_found.test.js rename to e2e/__tests__/noTestFound.test.js diff --git a/e2e/__tests__/no_tests_found.test.js b/e2e/__tests__/noTestsFound.test.js similarity index 100% rename from e2e/__tests__/no_tests_found.test.js rename to e2e/__tests__/noTestsFound.test.js diff --git a/e2e/__tests__/node_path.test.js b/e2e/__tests__/nodePath.test.js similarity index 100% rename from e2e/__tests__/node_path.test.js rename to e2e/__tests__/nodePath.test.js diff --git a/e2e/__tests__/only_changed.test.js b/e2e/__tests__/onlyChanged.test.js similarity index 100% rename from e2e/__tests__/only_changed.test.js rename to e2e/__tests__/onlyChanged.test.js diff --git a/e2e/__tests__/override-globals.test.js b/e2e/__tests__/overrideGlobals.test.js similarity index 100% rename from e2e/__tests__/override-globals.test.js rename to e2e/__tests__/overrideGlobals.test.js diff --git a/e2e/__tests__/process_exit.test.js b/e2e/__tests__/processExit.test.js similarity index 100% rename from e2e/__tests__/process_exit.test.js rename to e2e/__tests__/processExit.test.js diff --git a/e2e/__tests__/promise_reject.test.js b/e2e/__tests__/promiseReject.test.js similarity index 95% rename from e2e/__tests__/promise_reject.test.js rename to e2e/__tests__/promiseReject.test.js index c2c6514ec0e9..38620a5da78f 100644 --- a/e2e/__tests__/promise_reject.test.js +++ b/e2e/__tests__/promiseReject.test.js @@ -20,7 +20,7 @@ afterEach(() => cleanup(DIR)); test('', () => { writeFiles(DIR, { 'package.json': '{}', - 'promise_reject.test.js': ` + 'promiseReject.test.js': ` test('test', () => { return Promise.reject(null) }); diff --git a/e2e/__tests__/regex_(char_in_path.test.js b/e2e/__tests__/regexCharInPath.test.js similarity index 100% rename from e2e/__tests__/regex_(char_in_path.test.js rename to e2e/__tests__/regexCharInPath.test.js diff --git a/e2e/__tests__/require_after_teardown.test.js b/e2e/__tests__/requireAfterTeardown.test.js similarity index 90% rename from e2e/__tests__/require_after_teardown.test.js rename to e2e/__tests__/requireAfterTeardown.test.js index c49220af5022..ed868db4b7df 100644 --- a/e2e/__tests__/require_after_teardown.test.js +++ b/e2e/__tests__/requireAfterTeardown.test.js @@ -21,6 +21,6 @@ test('prints useful error for requires after test is done', () => { expect(interestingLines).toMatchSnapshot(); expect(stderr.split('\n')[19]).toMatch( - new RegExp('(__tests__/late-require.test.js:11:20)'), + new RegExp('(__tests__/lateRequire.test.js:11:20)'), ); }); diff --git a/e2e/__tests__/require_main.test.js b/e2e/__tests__/requireMain.test.js similarity index 100% rename from e2e/__tests__/require_main.test.js rename to e2e/__tests__/requireMain.test.js diff --git a/e2e/__tests__/require_v8_module.test.js b/e2e/__tests__/requireV8Module.test.js similarity index 100% rename from e2e/__tests__/require_v8_module.test.js rename to e2e/__tests__/requireV8Module.test.js diff --git a/e2e/__tests__/reset_modules.test.js b/e2e/__tests__/resetModules.test.js similarity index 90% rename from e2e/__tests__/reset_modules.test.js rename to e2e/__tests__/resetModules.test.js index 67fc0de861ce..b2a7fef3548c 100644 --- a/e2e/__tests__/reset_modules.test.js +++ b/e2e/__tests__/resetModules.test.js @@ -11,6 +11,6 @@ import runJest from '../runJest'; test('jest.resetModules should not error when _isMockFunction is defined but not boolean', () => { - const result = runJest('reset_modules'); + const result = runJest('reset-modules'); expect(result.status).toBe(0); }); diff --git a/e2e/__tests__/resolve-get-paths.test.js b/e2e/__tests__/resolveGetPaths.test.js similarity index 100% rename from e2e/__tests__/resolve-get-paths.test.js rename to e2e/__tests__/resolveGetPaths.test.js diff --git a/e2e/__tests__/resolve_no_file_extensions.test.js b/e2e/__tests__/resolveNoFileExtensions.test.js similarity index 84% rename from e2e/__tests__/resolve_no_file_extensions.test.js rename to e2e/__tests__/resolveNoFileExtensions.test.js index 1fcfe127aae7..1354556e047f 100644 --- a/e2e/__tests__/resolve_no_file_extensions.test.js +++ b/e2e/__tests__/resolveNoFileExtensions.test.js @@ -12,13 +12,13 @@ import path from 'path'; import runJest from '../runJest'; import {cleanup, extractSummary, writeFiles} from '../Utils'; -const DIR = path.resolve(__dirname, '../resolve_no_extensions-no-js'); +const DIR = path.resolve(__dirname, '../resolve-no-extensions-no-js'); beforeEach(() => cleanup(DIR)); afterAll(() => cleanup(DIR)); test('show error message with matching files', () => { - const {status, stderr} = runJest('resolve_no_extensions'); + const {status, stderr} = runJest('resolve-no-extensions'); const {rest} = extractSummary(stderr); expect(status).toBe(1); @@ -46,7 +46,7 @@ test('show error message when no js moduleFileExtensions', () => { `, }); - const {status, stderr} = runJest('resolve_no_extensions-no-js'); + const {status, stderr} = runJest('resolve-no-extensions-no-js'); expect(status).toBe(1); expect(stderr).toMatchSnapshot(); diff --git a/e2e/__tests__/resolve-node-module.test.js b/e2e/__tests__/resolveNodeModule.test.js similarity index 100% rename from e2e/__tests__/resolve-node-module.test.js rename to e2e/__tests__/resolveNodeModule.test.js diff --git a/e2e/__tests__/resolve-with-paths.test.js b/e2e/__tests__/resolveWithPaths.test.js similarity index 100% rename from e2e/__tests__/resolve-with-paths.test.js rename to e2e/__tests__/resolveWithPaths.test.js diff --git a/e2e/__tests__/run_tests_by_path.test.js b/e2e/__tests__/runTestsByPath.test.js similarity index 95% rename from e2e/__tests__/run_tests_by_path.test.js rename to e2e/__tests__/runTestsByPath.test.js index 6fa5ccfc14d2..14d29b9d5dd5 100644 --- a/e2e/__tests__/run_tests_by_path.test.js +++ b/e2e/__tests__/runTestsByPath.test.js @@ -14,7 +14,7 @@ import os from 'os'; import path from 'path'; import {cleanup, writeFiles} from '../Utils'; -const DIR = path.resolve(os.tmpdir(), 'run_tests_by_path_test'); +const DIR = path.resolve(os.tmpdir(), 'run-tests-by-path-test'); beforeEach(() => cleanup(DIR)); afterEach(() => cleanup(DIR)); diff --git a/e2e/__tests__/runtime_internal_module_registry.test.js b/e2e/__tests__/runtimeInternalModuleRegistry.test.js similarity index 100% rename from e2e/__tests__/runtime_internal_module_registry.test.js rename to e2e/__tests__/runtimeInternalModuleRegistry.test.js diff --git a/e2e/__tests__/set_immediate.test.js b/e2e/__tests__/setImmediate.test.js similarity index 100% rename from e2e/__tests__/set_immediate.test.js rename to e2e/__tests__/setImmediate.test.js diff --git a/e2e/__tests__/setup_files_after_env_config.test.js b/e2e/__tests__/setupFilesAfterEnvConfig.test.js similarity index 94% rename from e2e/__tests__/setup_files_after_env_config.test.js rename to e2e/__tests__/setupFilesAfterEnvConfig.test.js index 1c45d25b6b62..a2ec3b6a3f38 100644 --- a/e2e/__tests__/setup_files_after_env_config.test.js +++ b/e2e/__tests__/setupFilesAfterEnvConfig.test.js @@ -50,7 +50,7 @@ describe('setupFilesAfterEnv', () => { it('requires setup files *after* the test runners are required', () => { const pkgJson = { jest: { - setupFilesAfterEnv: ['./setup_hooks_into_runner.js'], + setupFilesAfterEnv: ['./setupHooksIntoRunner.js'], }, }; @@ -59,7 +59,7 @@ describe('setupFilesAfterEnv', () => { }); const result = runWithJson('setup-files-after-env-config', [ - 'runner_patch.test.js', + 'runnerPatch.test.js', ]); expect(result.json.numTotalTests).toBe(1); diff --git a/e2e/__tests__/show_config.test.js b/e2e/__tests__/showConfig.test.js similarity index 91% rename from e2e/__tests__/show_config.test.js rename to e2e/__tests__/showConfig.test.js index 871cb59e95df..013ae8f7ad24 100644 --- a/e2e/__tests__/show_config.test.js +++ b/e2e/__tests__/showConfig.test.js @@ -17,7 +17,7 @@ import {cleanup, writeFiles} from '../Utils'; skipSuiteOnWindows(); -const DIR = path.resolve(os.tmpdir(), 'show_config_test'); +const DIR = path.resolve(os.tmpdir(), 'show-config-test'); beforeEach(() => cleanup(DIR)); afterEach(() => cleanup(DIR)); @@ -40,7 +40,7 @@ test('--showConfig outputs config info and exits', () => { .replace(/"name": "(.+)"/g, '"name": "[md5 hash]"') .replace(/"version": "(.+)"/g, '"version": "[version]"') .replace(/"maxWorkers": (\d+)/g, '"maxWorkers": "[maxWorkers]"') - .replace(/\"\S*show_config_test/gm, '"<>') + .replace(/\"\S*show-config-test/gm, '"<>') .replace(/\"\S*\/jest\/packages/gm, '"<>'); expect(stdout).toMatchSnapshot(); diff --git a/e2e/__tests__/snapshot.test.js b/e2e/__tests__/snapshot.test.js index 48c9d190467e..643023492d0b 100644 --- a/e2e/__tests__/snapshot.test.js +++ b/e2e/__tests__/snapshot.test.js @@ -21,7 +21,7 @@ const snapshotDir = path.resolve( const snapshotFile = path.resolve(snapshotDir, 'snapshot.test.js.snap'); const secondSnapshotFile = path.resolve( snapshotDir, - 'second_snapshot.test.js.snap', + 'secondSnapshot.test.js.snap', ); const snapshotOfCopy = path.resolve(snapshotDir, 'snapshot.test_copy.js.snap'); const originalTestPath = path.resolve( @@ -49,11 +49,11 @@ const snapshotEscapeFile = path.resolve( ); const snapshotEscapeRegexFile = path.resolve( snapshotEscapeSnapshotDir, - 'snapshot_escape_regex.js.snap', + 'snapshotEscapeRegex.js.snap', ); const snapshotEscapeSubstitutionFile = path.resolve( snapshotEscapeSnapshotDir, - 'snapshot_escape_substitution.test.js.snap', + 'snapshotEscapeSubstitution.test.js.snap', ); const initialTestData = fs.readFileSync(snapshotEscapeTestFile, 'utf8'); @@ -170,7 +170,7 @@ describe('Snapshot', () => { let result = runJest('snapshot-escape', [ '-w=1', '--ci=false', - 'snapshot_escape_regex.js', + 'snapshotEscapeRegex.js', ]); let stderr = result.stderr; @@ -181,7 +181,7 @@ describe('Snapshot', () => { result = runJest('snapshot-escape', [ '-w=1', '--ci=false', - 'snapshot_escape_regex.js', + 'snapshotEscapeRegex.js', ]); stderr = result.stderr; @@ -197,7 +197,7 @@ describe('Snapshot', () => { let result = runJest('snapshot-escape', [ '-w=1', '--ci=false', - 'snapshot_escape_substitution.test.js', + 'snapshotEscapeSubstitution.test.js', ]); let stderr = result.stderr; @@ -208,7 +208,7 @@ describe('Snapshot', () => { result = runJest('snapshot-escape', [ '-w=1', '--ci=false', - 'snapshot_escape_substitution.test.js', + 'snapshotEscapeSubstitution.test.js', ]); stderr = result.stderr; diff --git a/e2e/__tests__/snapshot-mock-fs.test.js b/e2e/__tests__/snapshotMockFs.test.js similarity index 100% rename from e2e/__tests__/snapshot-mock-fs.test.js rename to e2e/__tests__/snapshotMockFs.test.js diff --git a/e2e/__tests__/snapshot_resolver.test.js b/e2e/__tests__/snapshotResolver.test.js similarity index 100% rename from e2e/__tests__/snapshot_resolver.test.js rename to e2e/__tests__/snapshotResolver.test.js diff --git a/e2e/__tests__/snapshot_serializers.test.js b/e2e/__tests__/snapshotSerializers.test.js similarity index 100% rename from e2e/__tests__/snapshot_serializers.test.js rename to e2e/__tests__/snapshotSerializers.test.js diff --git a/e2e/__tests__/stack_trace.test.js b/e2e/__tests__/stackTrace.test.js similarity index 76% rename from e2e/__tests__/stack_trace.test.js rename to e2e/__tests__/stackTrace.test.js index e34259057c94..f0a88a613371 100644 --- a/e2e/__tests__/stack_trace.test.js +++ b/e2e/__tests__/stackTrace.test.js @@ -13,7 +13,7 @@ import {extractSummary} from '../Utils'; describe('Stack Trace', () => { it('prints a stack trace for runtime errors', () => { - const {status, stderr} = runJest('stack-trace', ['runtime_error.test.js']); + const {status, stderr} = runJest('stack-trace', ['runtimeError.test.js']); expect(extractSummary(stderr).summary).toMatchSnapshot(); @@ -23,13 +23,13 @@ describe('Stack Trace', () => { ); expect(stderr).toMatch(/> 10 \| thisIsARuntimeError\(\);/); expect(stderr).toMatch( - /\s+at\s(?:.+?)\s\(__tests__\/runtime_error.test\.js/, + /\s+at\s(?:.+?)\s\(__tests__\/runtimeError.test\.js/, ); }); it('does not print a stack trace for runtime errors when --noStackTrace is given', () => { const {status, stderr} = runJest('stack-trace', [ - 'runtime_error.test.js', + 'runtimeError.test.js', '--noStackTrace', ]); @@ -40,22 +40,22 @@ describe('Stack Trace', () => { /ReferenceError: thisIsARuntimeError is not defined/, ); expect(stderr).not.toMatch( - /\s+at\s(?:.+?)\s\(__tests__\/runtime_error.test\.js/, + /\s+at\s(?:.+?)\s\(__tests__\/runtimeError.test\.js/, ); }); it('prints a stack trace for matching errors', () => { - const {status, stderr} = runJest('stack-trace', ['stack_trace.test.js']); + const {status, stderr} = runJest('stack-trace', ['stackTrace.test.js']); expect(extractSummary(stderr).summary).toMatchSnapshot(); expect(status).toBe(1); - expect(stderr).toMatch(/\s+at\s(?:.+?)\s\(__tests__\/stack_trace.test\.js/); + expect(stderr).toMatch(/\s+at\s(?:.+?)\s\(__tests__\/stackTrace.test\.js/); }); it('does not print a stack trace for matching errors when --noStackTrace is given', () => { const {status, stderr} = runJest('stack-trace', [ - 'stack_trace.test.js', + 'stackTrace.test.js', '--noStackTrace', ]); @@ -63,12 +63,12 @@ describe('Stack Trace', () => { expect(status).toBe(1); expect(stderr).not.toMatch( - /\s+at\s(?:.+?)\s\(__tests__\/stack_trace.test\.js/, + /\s+at\s(?:.+?)\s\(__tests__\/stackTrace.test\.js/, ); }); it('prints a stack trace for errors', () => { - const {status, stderr} = runJest('stack-trace', ['test_error.test.js']); + const {status, stderr} = runJest('stack-trace', ['testError.test.js']); expect(extractSummary(stderr).summary).toMatchSnapshot(); expect(status).toBe(1); @@ -76,11 +76,11 @@ describe('Stack Trace', () => { expect(stderr).toMatch(/this is unexpected\./); expect(stderr).toMatch(/this is a string\./); - expect(stderr).toMatch(/\s+at\s(?:.+?)\s\(__tests__\/test_error.test\.js/); + expect(stderr).toMatch(/\s+at\s(?:.+?)\s\(__tests__\/testError.test\.js/); // Make sure we show Jest's jest-resolve as part of the stack trace expect(stderr).toMatch( - /Cannot find module 'this-module-does-not-exist' from 'test_error.test\.js'/, + /Cannot find module 'this-module-does-not-exist' from 'testError.test\.js'/, ); expect(stderr).toMatch( @@ -90,7 +90,7 @@ describe('Stack Trace', () => { it('prints a stack trace for errors without message in stack trace', () => { const {status, stderr} = runJest('stack-trace', [ - 'stack_trace_without_message.test.js', + 'stackTraceWithoutMessage.test.js', ]); expect(extractSummary(stderr).summary).toMatchSnapshot(); @@ -98,13 +98,13 @@ describe('Stack Trace', () => { expect(stderr).toMatch(/important message/); expect(stderr).toMatch( - /\s+at\s(?:.+?)\s\(__tests__\/stack_trace_without_message.test\.js/, + /\s+at\s(?:.+?)\s\(__tests__\/stackTraceWithoutMessage.test\.js/, ); }); it('does not print a stack trace for errors when --noStackTrace is given', () => { const {status, stderr} = runJest('stack-trace', [ - 'test_error.test.js', + 'testError.test.js', '--noStackTrace', ]); @@ -112,7 +112,7 @@ describe('Stack Trace', () => { expect(status).toBe(1); expect(stderr).not.toMatch( - /\s+at\s(?:.+?)\s\(__tests__\/test_error.test\.js/, + /\s+at\s(?:.+?)\s\(__tests__\/testError.test\.js/, ); }); }); diff --git a/e2e/__tests__/stack_trace_no_captureStackTrace.test.js b/e2e/__tests__/stackTraceNoCaptureStackTrace.test.js similarity index 100% rename from e2e/__tests__/stack_trace_no_captureStackTrace.test.js rename to e2e/__tests__/stackTraceNoCaptureStackTrace.test.js diff --git a/e2e/__tests__/stack_trace_source_maps.test.js b/e2e/__tests__/stackTraceSourceMaps.test.js similarity index 100% rename from e2e/__tests__/stack_trace_source_maps.test.js rename to e2e/__tests__/stackTraceSourceMaps.test.js diff --git a/e2e/__tests__/supports-dashed-args.js b/e2e/__tests__/supportsDashedArgs.js similarity index 100% rename from e2e/__tests__/supports-dashed-args.js rename to e2e/__tests__/supportsDashedArgs.js diff --git a/e2e/__tests__/test_environment.test.js b/e2e/__tests__/testEnvironment.test.js similarity index 100% rename from e2e/__tests__/test_environment.test.js rename to e2e/__tests__/testEnvironment.test.js diff --git a/e2e/__tests__/test_environment_async.test.js b/e2e/__tests__/testEnvironmentAsync.test.js similarity index 100% rename from e2e/__tests__/test_environment_async.test.js rename to e2e/__tests__/testEnvironmentAsync.test.js diff --git a/e2e/__tests__/test_failure_exit_code.test.js b/e2e/__tests__/testFailureExitCode.test.js similarity index 94% rename from e2e/__tests__/test_failure_exit_code.test.js rename to e2e/__tests__/testFailureExitCode.test.js index fd80614624b2..2fd1e4ad171b 100644 --- a/e2e/__tests__/test_failure_exit_code.test.js +++ b/e2e/__tests__/testFailureExitCode.test.js @@ -14,7 +14,7 @@ import os from 'os'; import {cleanup, writeFiles} from '../Utils'; import runJest from '../runJest'; -const DIR = path.resolve(os.tmpdir(), 'test_failure_exit_code_test'); +const DIR = path.resolve(os.tmpdir(), 'test-failure-exit-code-test'); beforeEach(() => cleanup(DIR)); afterAll(() => cleanup(DIR)); diff --git a/e2e/__tests__/test_in_root.test.js b/e2e/__tests__/testInRoot.test.js similarity index 100% rename from e2e/__tests__/test_in_root.test.js rename to e2e/__tests__/testInRoot.test.js diff --git a/e2e/__tests__/test_name_pattern.test.js b/e2e/__tests__/testNamePattern.test.js similarity index 89% rename from e2e/__tests__/test_name_pattern.test.js rename to e2e/__tests__/testNamePattern.test.js index 0af11d40a21d..6c47547cf66f 100644 --- a/e2e/__tests__/test_name_pattern.test.js +++ b/e2e/__tests__/testNamePattern.test.js @@ -12,7 +12,7 @@ import {extractSummary} from '../Utils'; import {json as runWithJson} from '../runJest'; test('testNamePattern', () => { - const {stderr, status} = runWithJson('testNamePattern', [ + const {stderr, status} = runWithJson('test-name-pattern', [ '--testNamePattern', 'should match', ]); diff --git a/e2e/__tests__/test_name_pattern_skipped.test.js b/e2e/__tests__/testNamePatternSkipped.test.js similarity index 88% rename from e2e/__tests__/test_name_pattern_skipped.test.js rename to e2e/__tests__/testNamePatternSkipped.test.js index 23155ec96015..5bb7fbe23701 100644 --- a/e2e/__tests__/test_name_pattern_skipped.test.js +++ b/e2e/__tests__/testNamePatternSkipped.test.js @@ -12,7 +12,7 @@ import {extractSummary} from '../Utils'; import {json as runWithJson} from '../runJest'; test('testNamePattern skipped', () => { - const {stderr, status} = runWithJson('testNamePattern_skipped', [ + const {stderr, status} = runWithJson('test-name-pattern-skipped', [ '--testNamePattern', 'false', ]); diff --git a/e2e/__tests__/test_path_pattern_reporter_message.test.js b/e2e/__tests__/testPathPatternReporterMessage.test.js similarity index 93% rename from e2e/__tests__/test_path_pattern_reporter_message.test.js rename to e2e/__tests__/testPathPatternReporterMessage.test.js index 922231e2b6ed..c09320c21702 100644 --- a/e2e/__tests__/test_path_pattern_reporter_message.test.js +++ b/e2e/__tests__/testPathPatternReporterMessage.test.js @@ -13,7 +13,7 @@ import os from 'os'; import path from 'path'; import {cleanup, writeFiles} from '../Utils'; -const DIR = path.resolve(os.tmpdir(), 'jest_path_pattern_reporter_message'); +const DIR = path.resolve(os.tmpdir(), 'jest-path-pattern-reporter-message'); beforeEach(() => cleanup(DIR)); afterEach(() => cleanup(DIR)); diff --git a/e2e/__tests__/test_results_processor.test.js b/e2e/__tests__/testResultsProcessor.test.js similarity index 83% rename from e2e/__tests__/test_results_processor.test.js rename to e2e/__tests__/testResultsProcessor.test.js index 7ecc794cc9b5..5230167a5aee 100644 --- a/e2e/__tests__/test_results_processor.test.js +++ b/e2e/__tests__/testResultsProcessor.test.js @@ -13,9 +13,9 @@ import {json as runWithJson} from '../runJest'; test('testNamePattern', () => { const processorPath = path.resolve( __dirname, - '../testResultsProcessor/processor.js', + '../test-results-processor/processor.js', ); - const result = runWithJson('testResultsProcessor', [ + const result = runWithJson('test-results-processor', [ '--json', `--testResultsProcessor=${processorPath}`, ]); diff --git a/e2e/__tests__/test_retries.test.js b/e2e/__tests__/testRetries.test.js similarity index 100% rename from e2e/__tests__/test_retries.test.js rename to e2e/__tests__/testRetries.test.js diff --git a/e2e/__tests__/test-todo.test.js b/e2e/__tests__/testTodo.test.js similarity index 86% rename from e2e/__tests__/test-todo.test.js rename to e2e/__tests__/testTodo.test.js index fa930382bc70..d6c24febbbee 100644 --- a/e2e/__tests__/test-todo.test.js +++ b/e2e/__tests__/testTodo.test.js @@ -22,21 +22,21 @@ test('works with all statuses', () => { }); test('shows error messages when called with no arguments', () => { - const result = runJest(dir, ['todo_no_args.test.js']); + const result = runJest(dir, ['todoNoArgs.test.js']); expect(result.status).toBe(1); const {rest} = extractSummary(result.stderr); expect(rest).toMatchSnapshot(); }); test('shows error messages when called with multiple arguments', () => { - const result = runJest(dir, ['todo_multiple_args.test.js']); + const result = runJest(dir, ['todoMultipleArgs.test.js']); expect(result.status).toBe(1); const {rest} = extractSummary(result.stderr); expect(rest).toMatchSnapshot(); }); test('shows error messages when called with invalid argument', () => { - const result = runJest(dir, ['todo_non_string.test.js']); + const result = runJest(dir, ['todoNonString.test.js']); expect(result.status).toBe(1); const {rest} = extractSummary(result.stderr); expect(rest).toMatchSnapshot(); diff --git a/e2e/__tests__/timeouts_legacy.test.js b/e2e/__tests__/timeoutsLegacy.test.js similarity index 100% rename from e2e/__tests__/timeouts_legacy.test.js rename to e2e/__tests__/timeoutsLegacy.test.js diff --git a/e2e/__tests__/timer_reset_mocks.test.js b/e2e/__tests__/timerResetMocks.test.js similarity index 100% rename from e2e/__tests__/timer_reset_mocks.test.js rename to e2e/__tests__/timerResetMocks.test.js diff --git a/e2e/__tests__/timer_use_real_timers.test.js b/e2e/__tests__/timerUseRealTimers.test.js similarity index 100% rename from e2e/__tests__/timer_use_real_timers.test.js rename to e2e/__tests__/timerUseRealTimers.test.js diff --git a/e2e/__tests__/to_match_inline_snapshot.test.js b/e2e/__tests__/toMatchInlineSnapshot.test.js similarity index 99% rename from e2e/__tests__/to_match_inline_snapshot.test.js rename to e2e/__tests__/toMatchInlineSnapshot.test.js index 6868193a92fb..3bd85ffedd34 100644 --- a/e2e/__tests__/to_match_inline_snapshot.test.js +++ b/e2e/__tests__/toMatchInlineSnapshot.test.js @@ -12,7 +12,7 @@ import path from 'path'; import {cleanup, makeTemplate, writeFiles} from '../Utils'; import runJest from '../runJest'; -const DIR = path.resolve(__dirname, '../toMatchInlineSnapshot'); +const DIR = path.resolve(__dirname, '../to-match-inline-snapshot'); const TESTS_DIR = path.resolve(DIR, '__tests__'); const readFile = filename => diff --git a/e2e/__tests__/to_match_snapshot.test.js b/e2e/__tests__/toMatchSnapshot.test.js similarity index 99% rename from e2e/__tests__/to_match_snapshot.test.js rename to e2e/__tests__/toMatchSnapshot.test.js index cb60fdf9d474..5fd065d03259 100644 --- a/e2e/__tests__/to_match_snapshot.test.js +++ b/e2e/__tests__/toMatchSnapshot.test.js @@ -11,7 +11,7 @@ import path from 'path'; import {cleanup, makeTemplate, writeFiles} from '../Utils'; import runJest from '../runJest'; -const DIR = path.resolve(__dirname, '../toMatchSnapshot'); +const DIR = path.resolve(__dirname, '../to-match-snapshot'); const TESTS_DIR = path.resolve(DIR, '__tests__'); beforeEach(() => cleanup(TESTS_DIR)); diff --git a/e2e/__tests__/to_throw_error_matching_inline_snapshot.test.js b/e2e/__tests__/toThrowErrorMatchingInlineSnapshot.test.js similarity index 97% rename from e2e/__tests__/to_throw_error_matching_inline_snapshot.test.js rename to e2e/__tests__/toThrowErrorMatchingInlineSnapshot.test.js index f8033e7e0ab5..e2bb075cd961 100644 --- a/e2e/__tests__/to_throw_error_matching_inline_snapshot.test.js +++ b/e2e/__tests__/toThrowErrorMatchingInlineSnapshot.test.js @@ -12,7 +12,10 @@ import fs from 'fs'; import {cleanup, makeTemplate, writeFiles} from '../Utils'; import runJest from '../runJest'; -const DIR = path.resolve(__dirname, '../toThrowErrorMatchingInlineSnapshot'); +const DIR = path.resolve( + __dirname, + '../to-throw-error-matching-inline-snapshot', +); const TESTS_DIR = path.resolve(DIR, '__tests__'); const readFile = filename => diff --git a/e2e/__tests__/to_throw_error_matching_snapshot.test.js b/e2e/__tests__/toThrowErrorMatchingSnapshot.test.js similarity index 97% rename from e2e/__tests__/to_throw_error_matching_snapshot.test.js rename to e2e/__tests__/toThrowErrorMatchingSnapshot.test.js index 8bacbd5bffa2..bfcebc9c20c3 100644 --- a/e2e/__tests__/to_throw_error_matching_snapshot.test.js +++ b/e2e/__tests__/toThrowErrorMatchingSnapshot.test.js @@ -12,7 +12,7 @@ import fs from 'fs'; import {cleanup, makeTemplate, writeFiles} from '../Utils'; import runJest from '../runJest'; -const DIR = path.resolve(__dirname, '../toThrowErrorMatchingSnapshot'); +const DIR = path.resolve(__dirname, '../to-throw-error-matching-snapshot'); const TESTS_DIR = path.resolve(DIR, '__tests__'); beforeEach(() => cleanup(TESTS_DIR)); diff --git a/e2e/__tests__/transform.test.js b/e2e/__tests__/transform.test.js index 9e13d5438f78..56792bb98557 100644 --- a/e2e/__tests__/transform.test.js +++ b/e2e/__tests__/transform.test.js @@ -36,9 +36,9 @@ describe('babel-jest', () => { const {stdout} = runJest(dir, ['--coverage', '--no-cache'], { stripAnsi: true, }); - expect(stdout).toMatch('Covered.js'); - expect(stdout).not.toMatch('NotCovered.js'); - expect(stdout).not.toMatch('ExcludedFromCoverage.js'); + expect(stdout).toMatch('covered.js'); + expect(stdout).not.toMatch('notCovered.js'); + expect(stdout).not.toMatch('excludedFromCoverage.js'); // coverage result should not change expect(stdout).toMatchSnapshot(); }); @@ -60,7 +60,7 @@ describe('no babel-jest', () => { test('fails with syntax error on flow types', () => { const {stderr} = runJest(tempDir, ['--no-cache', '--no-watchman']); - expect(stderr).toMatch(/FAIL.*fails_with_syntax_error/); + expect(stderr).toMatch(/FAIL.*failsWithSyntaxError/); expect(stderr).toMatch('Unexpected token'); }); @@ -70,8 +70,8 @@ describe('no babel-jest', () => { ['--no-cache', '--coverage', '--no-watchman'], {stripAnsi: true}, ); - expect(stdout).toMatch('Covered.js'); - expect(stdout).not.toMatch('ExcludedFromCoverage.js'); + expect(stdout).toMatch('covered.js'); + expect(stdout).not.toMatch('excludedFromCoverage.js'); // coverage result should not change expect(stdout).toMatchSnapshot(); }); diff --git a/e2e/__tests__/transform-linked-modules.test.js b/e2e/__tests__/transformLinkedModules.test.js similarity index 100% rename from e2e/__tests__/transform-linked-modules.test.js rename to e2e/__tests__/transformLinkedModules.test.js diff --git a/e2e/__tests__/typescript_coverage.test.js b/e2e/__tests__/typescriptCoverage.test.js similarity index 100% rename from e2e/__tests__/typescript_coverage.test.js rename to e2e/__tests__/typescriptCoverage.test.js diff --git a/e2e/__tests__/unexpected-token.test.js b/e2e/__tests__/unexpectedToken.test.js similarity index 100% rename from e2e/__tests__/unexpected-token.test.js rename to e2e/__tests__/unexpectedToken.test.js diff --git a/e2e/__tests__/use_stderr.test.js b/e2e/__tests__/useStderr.test.js similarity index 94% rename from e2e/__tests__/use_stderr.test.js rename to e2e/__tests__/useStderr.test.js index f9da1cd3b64d..e7e217c7f027 100644 --- a/e2e/__tests__/use_stderr.test.js +++ b/e2e/__tests__/useStderr.test.js @@ -14,7 +14,7 @@ import os from 'os'; import path from 'path'; import {cleanup, writeFiles} from '../Utils'; -const DIR = path.resolve(os.tmpdir(), 'use_stderr_test'); +const DIR = path.resolve(os.tmpdir(), 'use-stderr-test'); beforeEach(() => cleanup(DIR)); afterEach(() => cleanup(DIR)); diff --git a/e2e/__tests__/version.test.js b/e2e/__tests__/version.test.js index ead7dd6a78a2..9150d2a9425b 100644 --- a/e2e/__tests__/version.test.js +++ b/e2e/__tests__/version.test.js @@ -14,7 +14,7 @@ import os from 'os'; import {cleanup, writeFiles} from '../Utils'; import runJest from '../runJest'; -const DIR = path.resolve(os.tmpdir(), 'version_test'); +const DIR = path.resolve(os.tmpdir(), 'version-test'); beforeEach(() => cleanup(DIR)); afterAll(() => cleanup(DIR)); diff --git a/e2e/__tests__/watch_mode_only_failed.test.js b/e2e/__tests__/watchModeOnlyFailed.test.js similarity index 95% rename from e2e/__tests__/watch_mode_only_failed.test.js rename to e2e/__tests__/watchModeOnlyFailed.test.js index 1d4d3861aeb3..09e50945c8ad 100644 --- a/e2e/__tests__/watch_mode_only_failed.test.js +++ b/e2e/__tests__/watchModeOnlyFailed.test.js @@ -13,7 +13,7 @@ import {cleanup, extractSummaries, writeFiles} from '../Utils'; import os from 'os'; import runJest from '../runJest'; -const DIR = path.resolve(os.tmpdir(), 'watch_mode_only_failed'); +const DIR = path.resolve(os.tmpdir(), 'watch-mode-only-failed'); const pluginPath = path.resolve(__dirname, '../MockStdinWatchPlugin'); beforeEach(() => cleanup(DIR)); diff --git a/e2e/__tests__/watch_mode_patterns.test.js b/e2e/__tests__/watchModePatterns.test.js similarity index 97% rename from e2e/__tests__/watch_mode_patterns.test.js rename to e2e/__tests__/watchModePatterns.test.js index 142aef1accde..66a3cfb1442a 100644 --- a/e2e/__tests__/watch_mode_patterns.test.js +++ b/e2e/__tests__/watchModePatterns.test.js @@ -13,7 +13,7 @@ import {cleanup, extractSummaries, writeFiles} from '../Utils'; import os from 'os'; import runJest from '../runJest'; -const DIR = path.resolve(os.tmpdir(), 'watch_mode_patterns'); +const DIR = path.resolve(os.tmpdir(), 'watch-mode-patterns'); const pluginPath = path.resolve(__dirname, '../MockStdinWatchPlugin'); beforeEach(() => cleanup(DIR)); diff --git a/e2e/__tests__/watch_mode_update_snapshot.test.js b/e2e/__tests__/watchModeUpdateSnapshot.test.js similarity index 96% rename from e2e/__tests__/watch_mode_update_snapshot.test.js rename to e2e/__tests__/watchModeUpdateSnapshot.test.js index b1845d21f416..872a9e2c13a7 100644 --- a/e2e/__tests__/watch_mode_update_snapshot.test.js +++ b/e2e/__tests__/watchModeUpdateSnapshot.test.js @@ -13,7 +13,7 @@ import {cleanup, extractSummaries, writeFiles} from '../Utils'; import os from 'os'; import runJest from '../runJest'; -const DIR = path.resolve(os.tmpdir(), 'watch_mode_update_snapshot'); +const DIR = path.resolve(os.tmpdir(), 'watch-mode-update-snapshot'); const pluginPath = path.resolve(__dirname, '../MockStdinWatchPlugin'); beforeEach(() => cleanup(DIR)); diff --git a/e2e/babel-plugin-jest-hoist/__tests__/integration_automock_off.test.js b/e2e/babel-plugin-jest-hoist/__tests__/integrationAutomockOff.test.js similarity index 100% rename from e2e/babel-plugin-jest-hoist/__tests__/integration_automock_off.test.js rename to e2e/babel-plugin-jest-hoist/__tests__/integrationAutomockOff.test.js diff --git a/e2e/bad-source-map/__tests__/bad-source-map.js b/e2e/bad-source-map/__tests__/badSourceMap.js similarity index 88% rename from e2e/bad-source-map/__tests__/bad-source-map.js rename to e2e/bad-source-map/__tests__/badSourceMap.js index 684a0e5775ea..f7e209e4f358 100644 --- a/e2e/bad-source-map/__tests__/bad-source-map.js +++ b/e2e/bad-source-map/__tests__/badSourceMap.js @@ -12,4 +12,4 @@ it('should fail with a proper stacktrace', () => { expect(true).toBe(false); }); -//# sourceMappingURL=bad-source-map.js.map +//# sourceMappingURL=badSourceMap.js.map diff --git a/e2e/bad-source-map/__tests__/bad-source-map.js.map b/e2e/bad-source-map/__tests__/badSourceMap.js.map similarity index 54% rename from e2e/bad-source-map/__tests__/bad-source-map.js.map rename to e2e/bad-source-map/__tests__/badSourceMap.js.map index 6d7809e16409..dbe7e3818e46 100644 --- a/e2e/bad-source-map/__tests__/bad-source-map.js.map +++ b/e2e/bad-source-map/__tests__/badSourceMap.js.map @@ -1 +1 @@ -{"version":3,"file":"bad-source-map.js","sources":["dummy:///./index.js"],"sourcesContent":[""],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACzEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACRA;;;;;;;;;;;;;;;;A","sourceRoot":""} +{"version":3,"file":"badSourceMap.js","sources":["dummy:///./index.js"],"sourcesContent":[""],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACzEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACRA;;;;;;;;;;;;;;;;A","sourceRoot":""} diff --git a/e2e/before-all-filtered/__tests__/before-all-filtered.test.js b/e2e/before-all-filtered/__tests__/beforeAllFiltered.test.js similarity index 100% rename from e2e/before-all-filtered/__tests__/before-all-filtered.test.js rename to e2e/before-all-filtered/__tests__/beforeAllFiltered.test.js diff --git a/e2e/before-each-queue/__tests__/before-each-queue.test.js b/e2e/before-each-queue/__tests__/beforeEachQueue.test.js similarity index 100% rename from e2e/before-each-queue/__tests__/before-each-queue.test.js rename to e2e/before-each-queue/__tests__/beforeEachQueue.test.js diff --git a/e2e/browser-support/browser-test.js b/e2e/browser-support/browserTest.js similarity index 100% rename from e2e/browser-support/browser-test.js rename to e2e/browser-support/browserTest.js diff --git a/e2e/clear-cache/__tests__/clear_cache.test.js b/e2e/clear-cache/__tests__/clearCache.test.js similarity index 100% rename from e2e/clear-cache/__tests__/clear_cache.test.js rename to e2e/clear-cache/__tests__/clearCache.test.js diff --git a/e2e/compare-dom-nodes/__tests__/failed-assertion.js b/e2e/compare-dom-nodes/__tests__/failedAssertion.js similarity index 100% rename from e2e/compare-dom-nodes/__tests__/failed-assertion.js rename to e2e/compare-dom-nodes/__tests__/failedAssertion.js diff --git a/e2e/coverage-remapping/__tests__/covered-test.ts b/e2e/coverage-remapping/__tests__/coveredTest.ts similarity index 100% rename from e2e/coverage-remapping/__tests__/covered-test.ts rename to e2e/coverage-remapping/__tests__/coveredTest.ts diff --git a/e2e/coverage-remapping/package.json b/e2e/coverage-remapping/package.json index 6a0bc877eed1..293ece57d892 100644 --- a/e2e/coverage-remapping/package.json +++ b/e2e/coverage-remapping/package.json @@ -2,7 +2,7 @@ "jest": { "rootDir": "./", "transform": { - "^.+\\.(ts|js)$": "/TypescriptPreprocessor.js" + "^.+\\.(ts|js)$": "/typescriptPreprocessor.js" }, "testRegex": "/__tests__/.*\\.(ts|tsx|js)$", "testEnvironment": "node", diff --git a/e2e/coverage-remapping/TypescriptPreprocessor.js b/e2e/coverage-remapping/typescriptPreprocessor.js similarity index 100% rename from e2e/coverage-remapping/TypescriptPreprocessor.js rename to e2e/coverage-remapping/typescriptPreprocessor.js diff --git a/e2e/coverage-report/__mocks__/SumDependency.js b/e2e/coverage-report/__mocks__/sumDependency.js similarity index 100% rename from e2e/coverage-report/__mocks__/SumDependency.js rename to e2e/coverage-report/__mocks__/sumDependency.js diff --git a/e2e/coverage-report/__tests__/Sum.test.js b/e2e/coverage-report/__tests__/sum.test.js similarity index 81% rename from e2e/coverage-report/__tests__/Sum.test.js rename to e2e/coverage-report/__tests__/sum.test.js index 5700ad4e3f4b..21e90c7698b8 100644 --- a/e2e/coverage-report/__tests__/Sum.test.js +++ b/e2e/coverage-report/__tests__/sum.test.js @@ -6,9 +6,9 @@ */ 'use strict'; -jest.mock('../SumDependency.js'); // call mock explicitly +jest.mock('../sumDependency.js'); // call mock explicitly -const {sum} = require('../Sum'); +const {sum} = require('../sum'); if (!global.setup) { throw new Error('setup.js was not called.'); diff --git a/e2e/coverage-report/cached-duplicates/a/__tests__/Identical.test.js b/e2e/coverage-report/cached-duplicates/a/__tests__/identical.test.js similarity index 89% rename from e2e/coverage-report/cached-duplicates/a/__tests__/Identical.test.js rename to e2e/coverage-report/cached-duplicates/a/__tests__/identical.test.js index b8bf2bd79f6b..9b92ce339ddf 100644 --- a/e2e/coverage-report/cached-duplicates/a/__tests__/Identical.test.js +++ b/e2e/coverage-report/cached-duplicates/a/__tests__/identical.test.js @@ -6,7 +6,7 @@ */ 'use strict'; -const {sum} = require('../Identical'); +const {sum} = require('../identical'); describe('sum', () => { it('adds numbers', () => { diff --git a/e2e/coverage-report/cached-duplicates/a/Identical.js b/e2e/coverage-report/cached-duplicates/a/identical.js similarity index 100% rename from e2e/coverage-report/cached-duplicates/a/Identical.js rename to e2e/coverage-report/cached-duplicates/a/identical.js diff --git a/e2e/coverage-report/cached-duplicates/b/__tests__/Identical.test.js b/e2e/coverage-report/cached-duplicates/b/__tests__/identical.test.js similarity index 89% rename from e2e/coverage-report/cached-duplicates/b/__tests__/Identical.test.js rename to e2e/coverage-report/cached-duplicates/b/__tests__/identical.test.js index b8bf2bd79f6b..9b92ce339ddf 100644 --- a/e2e/coverage-report/cached-duplicates/b/__tests__/Identical.test.js +++ b/e2e/coverage-report/cached-duplicates/b/__tests__/identical.test.js @@ -6,7 +6,7 @@ */ 'use strict'; -const {sum} = require('../Identical'); +const {sum} = require('../identical'); describe('sum', () => { it('adds numbers', () => { diff --git a/e2e/coverage-report/cached-duplicates/b/Identical.js b/e2e/coverage-report/cached-duplicates/b/identical.js similarity index 100% rename from e2e/coverage-report/cached-duplicates/b/Identical.js rename to e2e/coverage-report/cached-duplicates/b/identical.js diff --git a/e2e/coverage-report/OtherFile.js b/e2e/coverage-report/otherFile.js similarity index 100% rename from e2e/coverage-report/OtherFile.js rename to e2e/coverage-report/otherFile.js diff --git a/e2e/coverage-report/Sum.js b/e2e/coverage-report/sum.js similarity index 85% rename from e2e/coverage-report/Sum.js rename to e2e/coverage-report/sum.js index 3279ffd7df4c..27e339dbed42 100644 --- a/e2e/coverage-report/Sum.js +++ b/e2e/coverage-report/sum.js @@ -5,8 +5,8 @@ * LICENSE file in the root directory of this source tree. */ -require('./SumDependency.js'); -require('./OtherFile'); +require('./sumDependency.js'); +require('./otherFile'); const uncoveredFunction = () => 1 + 'abc'; diff --git a/e2e/coverage-report/SumDependency.js b/e2e/coverage-report/sumDependency.js similarity index 100% rename from e2e/coverage-report/SumDependency.js rename to e2e/coverage-report/sumDependency.js diff --git a/e2e/coverage-transform-instrumented/__tests__/covered-test.js b/e2e/coverage-transform-instrumented/__tests__/coveredTest.js similarity index 100% rename from e2e/coverage-transform-instrumented/__tests__/covered-test.js rename to e2e/coverage-transform-instrumented/__tests__/coveredTest.js diff --git a/e2e/coverage-transform-instrumented/package.json b/e2e/coverage-transform-instrumented/package.json index f4ed2ef57648..e4356a9f2ea9 100644 --- a/e2e/coverage-transform-instrumented/package.json +++ b/e2e/coverage-transform-instrumented/package.json @@ -2,7 +2,7 @@ "jest": { "rootDir": "./", "transform": { - "^.+\\.(js)$": "/Preprocessor.js" + "^.+\\.(js)$": "/preprocessor.js" }, "testRegex": "/__tests__/.*\\.(js)$", "testEnvironment": "node", diff --git a/e2e/coverage-transform-instrumented/Preprocessor.js b/e2e/coverage-transform-instrumented/preprocessor.js similarity index 100% rename from e2e/coverage-transform-instrumented/Preprocessor.js rename to e2e/coverage-transform-instrumented/preprocessor.js diff --git a/e2e/custom-matcher-stack-trace/__tests__/custom_matcher.test.js b/e2e/custom-matcher-stack-trace/__tests__/customMatcher.test.js similarity index 100% rename from e2e/custom-matcher-stack-trace/__tests__/custom_matcher.test.js rename to e2e/custom-matcher-stack-trace/__tests__/customMatcher.test.js diff --git a/e2e/custom-reporters/__tests__/add_fail.test.js b/e2e/custom-reporters/__tests__/addFail.test.js similarity index 100% rename from e2e/custom-reporters/__tests__/add_fail.test.js rename to e2e/custom-reporters/__tests__/addFail.test.js diff --git a/e2e/custom-resolver/__mocks__/manual-mock.js b/e2e/custom-resolver/__mocks__/manualMock.js similarity index 100% rename from e2e/custom-resolver/__mocks__/manual-mock.js rename to e2e/custom-resolver/__mocks__/manualMock.js diff --git a/e2e/custom-resolver/__tests__/custom-resolver.test.js b/e2e/custom-resolver/__tests__/customResolver.test.js similarity index 88% rename from e2e/custom-resolver/__tests__/custom-resolver.test.js rename to e2e/custom-resolver/__tests__/customResolver.test.js index 364c449541ab..9e6911f35f62 100644 --- a/e2e/custom-resolver/__tests__/custom-resolver.test.js +++ b/e2e/custom-resolver/__tests__/customResolver.test.js @@ -24,7 +24,7 @@ test('should work with automock', () => { }); test('should allow manual mocks to make require calls through the resolver', () => { - jest.mock('../manual-mock'); + jest.mock('../manualMock'); - expect(require('../manual-mock')).toEqual('bar'); + expect(require('../manualMock')).toEqual('bar'); }); diff --git a/e2e/custom-resolver/fake-regenerator.js b/e2e/custom-resolver/fakeRegenerator.js similarity index 100% rename from e2e/custom-resolver/fake-regenerator.js rename to e2e/custom-resolver/fakeRegenerator.js diff --git a/e2e/custom-resolver/manual-mock.js b/e2e/custom-resolver/manualMock.js similarity index 100% rename from e2e/custom-resolver/manual-mock.js rename to e2e/custom-resolver/manualMock.js diff --git a/e2e/custom-resolver/resolver.js b/e2e/custom-resolver/resolver.js index 255dbe073d0c..f854ce959e6b 100644 --- a/e2e/custom-resolver/resolver.js +++ b/e2e/custom-resolver/resolver.js @@ -7,7 +7,7 @@ const { const exportedModules = new Map([ ['foo', 'foo'], ['bar', 'bar'], - ['regenerator-runtime/runtime', 'fake-regenerator'], + ['regenerator-runtime/runtime', 'fakeRegenerator'], ]); module.exports = (name, options) => { diff --git a/e2e/each/__tests__/describe-only.test.js b/e2e/each/__tests__/describeOnly.test.js similarity index 100% rename from e2e/each/__tests__/describe-only.test.js rename to e2e/each/__tests__/describeOnly.test.js diff --git a/e2e/each/__tests__/each-exception.test.js b/e2e/each/__tests__/eachException.test.js similarity index 100% rename from e2e/each/__tests__/each-exception.test.js rename to e2e/each/__tests__/eachException.test.js diff --git a/e2e/each/__tests__/each-only.test.js b/e2e/each/__tests__/eachOnly.test.js similarity index 100% rename from e2e/each/__tests__/each-only.test.js rename to e2e/each/__tests__/eachOnly.test.js diff --git a/e2e/each/__tests__/each-skip.test.js b/e2e/each/__tests__/eachSkip.test.js similarity index 100% rename from e2e/each/__tests__/each-skip.test.js rename to e2e/each/__tests__/eachSkip.test.js diff --git a/e2e/empty-describe-with-hooks/__tests__/hook-in-describe-with-skipped-test.test.js b/e2e/empty-describe-with-hooks/__tests__/hookInDescribeWithSkippedTest.test.js similarity index 100% rename from e2e/empty-describe-with-hooks/__tests__/hook-in-describe-with-skipped-test.test.js rename to e2e/empty-describe-with-hooks/__tests__/hookInDescribeWithSkippedTest.test.js diff --git a/e2e/empty-describe-with-hooks/__tests__/hook-in-empty-describe.test.js b/e2e/empty-describe-with-hooks/__tests__/hookInEmptyDescribe.test.js similarity index 100% rename from e2e/empty-describe-with-hooks/__tests__/hook-in-empty-describe.test.js rename to e2e/empty-describe-with-hooks/__tests__/hookInEmptyDescribe.test.js diff --git a/e2e/empty-describe-with-hooks/__tests__/hook-in-empty-nested-describe.test.js b/e2e/empty-describe-with-hooks/__tests__/hookInEmptyNestedDescribe.test.js similarity index 100% rename from e2e/empty-describe-with-hooks/__tests__/hook-in-empty-nested-describe.test.js rename to e2e/empty-describe-with-hooks/__tests__/hookInEmptyNestedDescribe.test.js diff --git a/e2e/empty-describe-with-hooks/__tests__/multiple-hooks-in-empty-describe.test.js b/e2e/empty-describe-with-hooks/__tests__/multipleHooksInEmptyDescribe.test.js similarity index 100% rename from e2e/empty-describe-with-hooks/__tests__/multiple-hooks-in-empty-describe.test.js rename to e2e/empty-describe-with-hooks/__tests__/multipleHooksInEmptyDescribe.test.js diff --git a/e2e/empty-suite-error/__tests__/empty_suite.test.js b/e2e/empty-suite-error/__tests__/emptySuite.test.js similarity index 100% rename from e2e/empty-suite-error/__tests__/empty_suite.test.js rename to e2e/empty-suite-error/__tests__/emptySuite.test.js diff --git a/e2e/error-on-deprecated/__tests__/DEFAULT_TIMEOUT_INTERVAL.test.js b/e2e/error-on-deprecated/__tests__/defaultTimeoutInterval.test.js similarity index 87% rename from e2e/error-on-deprecated/__tests__/DEFAULT_TIMEOUT_INTERVAL.test.js rename to e2e/error-on-deprecated/__tests__/defaultTimeoutInterval.test.js index 4e5bdf377024..f411f5075ee6 100644 --- a/e2e/error-on-deprecated/__tests__/DEFAULT_TIMEOUT_INTERVAL.test.js +++ b/e2e/error-on-deprecated/__tests__/defaultTimeoutInterval.test.js @@ -6,7 +6,7 @@ */ 'use strict'; -test('DEFAULT_TIMEOUT_INTERVAL', () => { +test('Default Timeout Interval', () => { jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000; expect(true).toBe(true); }); diff --git a/e2e/failures/__tests__/__snapshots__/snapshot_named.test.js.snap b/e2e/failures/__tests__/__snapshots__/snapshotNamed.test.js.snap similarity index 100% rename from e2e/failures/__tests__/__snapshots__/snapshot_named.test.js.snap rename to e2e/failures/__tests__/__snapshots__/snapshotNamed.test.js.snap diff --git a/e2e/failures/__tests__/assertion_count.test.js b/e2e/failures/__tests__/assertionCount.test.js similarity index 100% rename from e2e/failures/__tests__/assertion_count.test.js rename to e2e/failures/__tests__/assertionCount.test.js diff --git a/e2e/failures/__tests__/node_assertion_error.test.js b/e2e/failures/__tests__/assertionError.test.js similarity index 100% rename from e2e/failures/__tests__/node_assertion_error.test.js rename to e2e/failures/__tests__/assertionError.test.js diff --git a/e2e/failures/__tests__/async_failures.test.js b/e2e/failures/__tests__/asyncFailures.test.js similarity index 100% rename from e2e/failures/__tests__/async_failures.test.js rename to e2e/failures/__tests__/asyncFailures.test.js diff --git a/e2e/failures/__tests__/during_tests.test.js b/e2e/failures/__tests__/duringTests.test.js similarity index 100% rename from e2e/failures/__tests__/during_tests.test.js rename to e2e/failures/__tests__/duringTests.test.js diff --git a/e2e/failures/__tests__/snapshot_named.test.js b/e2e/failures/__tests__/snapshotNamed.test.js similarity index 100% rename from e2e/failures/__tests__/snapshot_named.test.js rename to e2e/failures/__tests__/snapshotNamed.test.js diff --git a/e2e/failures/__tests__/test_macro.test.js b/e2e/failures/__tests__/testMacro.test.js similarity index 100% rename from e2e/failures/__tests__/test_macro.test.js rename to e2e/failures/__tests__/testMacro.test.js diff --git a/e2e/failures/__tests__/throw_number.test.js b/e2e/failures/__tests__/throwNumber.test.js similarity index 100% rename from e2e/failures/__tests__/throw_number.test.js rename to e2e/failures/__tests__/throwNumber.test.js diff --git a/e2e/failures/__tests__/throw_object.test.js b/e2e/failures/__tests__/throwObject.test.js similarity index 100% rename from e2e/failures/__tests__/throw_object.test.js rename to e2e/failures/__tests__/throwObject.test.js diff --git a/e2e/failures/__tests__/throw_string.test.js b/e2e/failures/__tests__/throwString.test.js similarity index 100% rename from e2e/failures/__tests__/throw_string.test.js rename to e2e/failures/__tests__/throwString.test.js diff --git a/e2e/generator-mock/__tests__/generator_mock.test.js b/e2e/generator-mock/__tests__/generatorMock.test.js similarity index 100% rename from e2e/generator-mock/__tests__/generator_mock.test.js rename to e2e/generator-mock/__tests__/generatorMock.test.js diff --git a/e2e/global-setup/custom_tests_dir/pass.test.js b/e2e/global-setup/custom-tests-dir/pass.test.js similarity index 100% rename from e2e/global-setup/custom_tests_dir/pass.test.js rename to e2e/global-setup/custom-tests-dir/pass.test.js diff --git a/e2e/global-setup/invalid_setup.js b/e2e/global-setup/invalidSetup.js similarity index 100% rename from e2e/global-setup/invalid_setup.js rename to e2e/global-setup/invalidSetup.js diff --git a/e2e/global-setup/setup-with-config.js b/e2e/global-setup/setupWithConfig.js similarity index 100% rename from e2e/global-setup/setup-with-config.js rename to e2e/global-setup/setupWithConfig.js diff --git a/e2e/global-teardown/custom_tests_dir/pass.test.js b/e2e/global-teardown/custom-tests-dir/pass.test.js similarity index 100% rename from e2e/global-teardown/custom_tests_dir/pass.test.js rename to e2e/global-teardown/custom-tests-dir/pass.test.js diff --git a/e2e/global-teardown/invalid_teardown.js b/e2e/global-teardown/invalidTeardown.js similarity index 100% rename from e2e/global-teardown/invalid_teardown.js rename to e2e/global-teardown/invalidTeardown.js diff --git a/e2e/global-teardown/teardown-with-config.js b/e2e/global-teardown/teardownWithConfig.js similarity index 100% rename from e2e/global-teardown/teardown-with-config.js rename to e2e/global-teardown/teardownWithConfig.js diff --git a/e2e/jasmine-async/__tests__/async_test_fails.test.js b/e2e/jasmine-async/__tests__/asyncTestFails.test.js similarity index 100% rename from e2e/jasmine-async/__tests__/async_test_fails.test.js rename to e2e/jasmine-async/__tests__/asyncTestFails.test.js diff --git a/e2e/jasmine-async/__tests__/pending_in_promise.test.js b/e2e/jasmine-async/__tests__/pendingInPromise.test.js similarity index 100% rename from e2e/jasmine-async/__tests__/pending_in_promise.test.js rename to e2e/jasmine-async/__tests__/pendingInPromise.test.js diff --git a/e2e/jasmine-async/__tests__/promise_after_all.test.js b/e2e/jasmine-async/__tests__/promiseAfterAll.test.js similarity index 100% rename from e2e/jasmine-async/__tests__/promise_after_all.test.js rename to e2e/jasmine-async/__tests__/promiseAfterAll.test.js diff --git a/e2e/jasmine-async/__tests__/promise_after_each.test.js b/e2e/jasmine-async/__tests__/promiseAfterEach.test.js similarity index 100% rename from e2e/jasmine-async/__tests__/promise_after_each.test.js rename to e2e/jasmine-async/__tests__/promiseAfterEach.test.js diff --git a/e2e/jasmine-async/__tests__/promise_before_all.test.js b/e2e/jasmine-async/__tests__/promiseBeforeAll.test.js similarity index 100% rename from e2e/jasmine-async/__tests__/promise_before_all.test.js rename to e2e/jasmine-async/__tests__/promiseBeforeAll.test.js diff --git a/e2e/jasmine-async/__tests__/promise_before_each.test.js b/e2e/jasmine-async/__tests__/promiseBeforeEach.test.js similarity index 100% rename from e2e/jasmine-async/__tests__/promise_before_each.test.js rename to e2e/jasmine-async/__tests__/promiseBeforeEach.test.js diff --git a/e2e/jasmine-async/__tests__/promise_fit.test.js b/e2e/jasmine-async/__tests__/promiseFit.test.js similarity index 100% rename from e2e/jasmine-async/__tests__/promise_fit.test.js rename to e2e/jasmine-async/__tests__/promiseFit.test.js diff --git a/e2e/jasmine-async/__tests__/promise_it.test.js b/e2e/jasmine-async/__tests__/promiseIt.test.js similarity index 100% rename from e2e/jasmine-async/__tests__/promise_it.test.js rename to e2e/jasmine-async/__tests__/promiseIt.test.js diff --git a/e2e/jasmine-async/__tests__/promise_xit.test.js b/e2e/jasmine-async/__tests__/promiseXit.test.js similarity index 100% rename from e2e/jasmine-async/__tests__/promise_xit.test.js rename to e2e/jasmine-async/__tests__/promiseXit.test.js diff --git a/e2e/jasmine-async/__tests__/returning_values.test.js b/e2e/jasmine-async/__tests__/returningValues.test.js similarity index 100% rename from e2e/jasmine-async/__tests__/returning_values.test.js rename to e2e/jasmine-async/__tests__/returningValues.test.js diff --git a/e2e/module-name-mapper-correct-config/__mocks__/style_mock.js b/e2e/module-name-mapper-correct-config/__mocks__/styleMock.js similarity index 100% rename from e2e/module-name-mapper-correct-config/__mocks__/style_mock.js rename to e2e/module-name-mapper-correct-config/__mocks__/styleMock.js diff --git a/e2e/module-name-mapper-correct-config/package.json b/e2e/module-name-mapper-correct-config/package.json index 52a664c7c235..bae54df851fe 100644 --- a/e2e/module-name-mapper-correct-config/package.json +++ b/e2e/module-name-mapper-correct-config/package.json @@ -1,7 +1,7 @@ { "jest": { "moduleNameMapper": { - "\\.(css|less)$": "./__mocks__/style_mock.js" + "\\.(css|less)$": "./__mocks__/styleMock.js" } } } diff --git a/e2e/module_parent_null_in_test/__tests__/index.js b/e2e/module-parent-null-in-test/__tests__/index.js similarity index 100% rename from e2e/module_parent_null_in_test/__tests__/index.js rename to e2e/module-parent-null-in-test/__tests__/index.js diff --git a/e2e/module_parent_null_in_test/package.json b/e2e/module-parent-null-in-test/package.json similarity index 100% rename from e2e/module_parent_null_in_test/package.json rename to e2e/module-parent-null-in-test/package.json diff --git a/e2e/multi-project-config-root/bar/__tests__/boggus-bar.test.js b/e2e/multi-project-config-root/bar/__tests__/boggusBar.test.js similarity index 100% rename from e2e/multi-project-config-root/bar/__tests__/boggus-bar.test.js rename to e2e/multi-project-config-root/bar/__tests__/boggusBar.test.js diff --git a/e2e/multi-project-config-root/foo/__tests__/boggus-foo.test.js b/e2e/multi-project-config-root/foo/__tests__/boggusFoo.test.js similarity index 100% rename from e2e/multi-project-config-root/foo/__tests__/boggus-foo.test.js rename to e2e/multi-project-config-root/foo/__tests__/boggusFoo.test.js diff --git a/e2e/native-async-mock/__tests__/native_async_mock.test.js b/e2e/native-async-mock/__tests__/nativeAsyncMock.test.js similarity index 100% rename from e2e/native-async-mock/__tests__/native_async_mock.test.js rename to e2e/native-async-mock/__tests__/nativeAsyncMock.test.js diff --git a/e2e/nested-event-loop/__tests__/nested_event_loop.test.js b/e2e/nested-event-loop/__tests__/nestedEventLoop.test.js similarity index 100% rename from e2e/nested-event-loop/__tests__/nested_event_loop.test.js rename to e2e/nested-event-loop/__tests__/nestedEventLoop.test.js diff --git a/e2e/node-path/__tests__/node_path.test.js b/e2e/node-path/__tests__/nodePath.test.js similarity index 100% rename from e2e/node-path/__tests__/node_path.test.js rename to e2e/node-path/__tests__/nodePath.test.js diff --git a/e2e/regex-(char-in-path/__tests__/regex_(char_in_path.test.js b/e2e/regex-(char-in-path/__tests__/regexCharInPath.test.js similarity index 100% rename from e2e/regex-(char-in-path/__tests__/regex_(char_in_path.test.js rename to e2e/regex-(char-in-path/__tests__/regexCharInPath.test.js diff --git a/e2e/require-after-teardown/__tests__/late-require.test.js b/e2e/require-after-teardown/__tests__/lateRequire.test.js similarity index 100% rename from e2e/require-after-teardown/__tests__/late-require.test.js rename to e2e/require-after-teardown/__tests__/lateRequire.test.js diff --git a/e2e/reset_modules/__tests__/reset_modules.test.js b/e2e/reset-modules/__tests__/resetModules.test.js similarity index 100% rename from e2e/reset_modules/__tests__/reset_modules.test.js rename to e2e/reset-modules/__tests__/resetModules.test.js diff --git a/e2e/reset_modules/package.json b/e2e/reset-modules/package.json similarity index 100% rename from e2e/reset_modules/package.json rename to e2e/reset-modules/package.json diff --git a/e2e/resolve-get-paths/__tests__/resolve-get-paths.test.js b/e2e/resolve-get-paths/__tests__/resolveGetPaths.test.js similarity index 100% rename from e2e/resolve-get-paths/__tests__/resolve-get-paths.test.js rename to e2e/resolve-get-paths/__tests__/resolveGetPaths.test.js diff --git a/e2e/resolve_no_extensions/__tests__/test.js b/e2e/resolve-no-extensions/__tests__/test.js similarity index 100% rename from e2e/resolve_no_extensions/__tests__/test.js rename to e2e/resolve-no-extensions/__tests__/test.js diff --git a/e2e/resolve_no_extensions/babel.config.js b/e2e/resolve-no-extensions/babel.config.js similarity index 100% rename from e2e/resolve_no_extensions/babel.config.js rename to e2e/resolve-no-extensions/babel.config.js diff --git a/e2e/resolve_no_extensions/index.js b/e2e/resolve-no-extensions/index.js similarity index 100% rename from e2e/resolve_no_extensions/index.js rename to e2e/resolve-no-extensions/index.js diff --git a/e2e/resolve_no_extensions/package.json b/e2e/resolve-no-extensions/package.json similarity index 100% rename from e2e/resolve_no_extensions/package.json rename to e2e/resolve-no-extensions/package.json diff --git a/e2e/resolve_no_extensions/some-json-file.json b/e2e/resolve-no-extensions/some-json-file.json similarity index 100% rename from e2e/resolve_no_extensions/some-json-file.json rename to e2e/resolve-no-extensions/some-json-file.json diff --git a/e2e/resolve-with-paths/__tests__/resolve-with-paths.test.js b/e2e/resolve-with-paths/__tests__/resolveWithPaths.test.js similarity index 100% rename from e2e/resolve-with-paths/__tests__/resolve-with-paths.test.js rename to e2e/resolve-with-paths/__tests__/resolveWithPaths.test.js diff --git a/e2e/runtime-internal-module-registry/__tests__/runtime_internal_module_registry.test.js b/e2e/runtime-internal-module-registry/__tests__/runtimeInternalModuleRegistry.test.js similarity index 100% rename from e2e/runtime-internal-module-registry/__tests__/runtime_internal_module_registry.test.js rename to e2e/runtime-internal-module-registry/__tests__/runtimeInternalModuleRegistry.test.js diff --git a/e2e/set-immediate/__tests__/set_immediate.test.js b/e2e/set-immediate/__tests__/setImmediate.test.js similarity index 100% rename from e2e/set-immediate/__tests__/set_immediate.test.js rename to e2e/set-immediate/__tests__/setImmediate.test.js diff --git a/e2e/setup-files-after-env-config/__tests__/runner_patch.test.js b/e2e/setup-files-after-env-config/__tests__/runnerPatch.test.js similarity index 100% rename from e2e/setup-files-after-env-config/__tests__/runner_patch.test.js rename to e2e/setup-files-after-env-config/__tests__/runnerPatch.test.js diff --git a/e2e/setup-files-after-env-config/setup_hooks_into_runner.js b/e2e/setup-files-after-env-config/setupHooksIntoRunner.js similarity index 100% rename from e2e/setup-files-after-env-config/setup_hooks_into_runner.js rename to e2e/setup-files-after-env-config/setupHooksIntoRunner.js diff --git a/e2e/snapshot-escape/__tests__/snapshot_escape_regex.js b/e2e/snapshot-escape/__tests__/snapshotEscapeRegex.js similarity index 100% rename from e2e/snapshot-escape/__tests__/snapshot_escape_regex.js rename to e2e/snapshot-escape/__tests__/snapshotEscapeRegex.js diff --git a/e2e/snapshot-escape/__tests__/snapshot_escape_substitution.test.js b/e2e/snapshot-escape/__tests__/snapshotEscapeSubstitution.test.js similarity index 100% rename from e2e/snapshot-escape/__tests__/snapshot_escape_substitution.test.js rename to e2e/snapshot-escape/__tests__/snapshotEscapeSubstitution.test.js diff --git a/e2e/snapshot-serializers/package.json b/e2e/snapshot-serializers/package.json index 4e1ce54a0258..658160fc0f8e 100644 --- a/e2e/snapshot-serializers/package.json +++ b/e2e/snapshot-serializers/package.json @@ -2,7 +2,7 @@ "jest": { "testEnvironment": "node", "transform": { - "^.+\\.js$": "/Transformer.js" + "^.+\\.js$": "/transformer.js" }, "snapshotSerializers": [ "./plugins/foo", diff --git a/e2e/snapshot-serializers/plugins/bar.js b/e2e/snapshot-serializers/plugins/bar.js index 6f70bfc05b43..a506f2858069 100644 --- a/e2e/snapshot-serializers/plugins/bar.js +++ b/e2e/snapshot-serializers/plugins/bar.js @@ -8,6 +8,6 @@ /* eslint-disable no-unused-vars */ -const createPlugin = require('../Utils').createPlugin; +const createPlugin = require('../utils').createPlugin; // We inject the call to "createPlugin('bar') through the transformer" diff --git a/e2e/snapshot-serializers/plugins/foo/index.js b/e2e/snapshot-serializers/plugins/foo/index.js index 51e32d9fac12..696d39a315c7 100644 --- a/e2e/snapshot-serializers/plugins/foo/index.js +++ b/e2e/snapshot-serializers/plugins/foo/index.js @@ -6,5 +6,5 @@ * */ -const createPlugin = require('../../Utils').createPlugin; +const createPlugin = require('../../utils').createPlugin; module.exports = createPlugin('foo'); diff --git a/e2e/snapshot-serializers/Transformer.js b/e2e/snapshot-serializers/transformer.js similarity index 100% rename from e2e/snapshot-serializers/Transformer.js rename to e2e/snapshot-serializers/transformer.js diff --git a/e2e/snapshot-serializers/Utils.js b/e2e/snapshot-serializers/utils.js similarity index 100% rename from e2e/snapshot-serializers/Utils.js rename to e2e/snapshot-serializers/utils.js diff --git a/e2e/snapshot/__tests__/second_snapshot.test.js b/e2e/snapshot/__tests__/secondSnapshot.test.js similarity index 100% rename from e2e/snapshot/__tests__/second_snapshot.test.js rename to e2e/snapshot/__tests__/secondSnapshot.test.js diff --git a/e2e/stack-trace-no-capture-stack-trace/__tests__/runtime_error.test.js b/e2e/stack-trace-no-capture-stack-trace/__tests__/runtimeError.test.js similarity index 100% rename from e2e/stack-trace-no-capture-stack-trace/__tests__/runtime_error.test.js rename to e2e/stack-trace-no-capture-stack-trace/__tests__/runtimeError.test.js diff --git a/e2e/stack-trace-source-maps/package.json b/e2e/stack-trace-source-maps/package.json index 8941387eb502..5a20e78c8014 100644 --- a/e2e/stack-trace-source-maps/package.json +++ b/e2e/stack-trace-source-maps/package.json @@ -2,7 +2,7 @@ "jest": { "rootDir": "./", "transform": { - "^.+\\.(ts)$": "/Preprocessor.js" + "^.+\\.(ts)$": "/preprocessor.js" }, "testEnvironment": "node", "moduleFileExtensions": [ diff --git a/e2e/stack-trace-source-maps/Preprocessor.js b/e2e/stack-trace-source-maps/preprocessor.js similarity index 100% rename from e2e/stack-trace-source-maps/Preprocessor.js rename to e2e/stack-trace-source-maps/preprocessor.js diff --git a/e2e/stack-trace/__tests__/runtime_error.test.js b/e2e/stack-trace/__tests__/runtimeError.test.js similarity index 100% rename from e2e/stack-trace/__tests__/runtime_error.test.js rename to e2e/stack-trace/__tests__/runtimeError.test.js diff --git a/e2e/stack-trace/__tests__/stack_trace.test.js b/e2e/stack-trace/__tests__/stackTrace.test.js similarity index 100% rename from e2e/stack-trace/__tests__/stack_trace.test.js rename to e2e/stack-trace/__tests__/stackTrace.test.js diff --git a/e2e/stack-trace/__tests__/stack_trace_without_message.test.js b/e2e/stack-trace/__tests__/stackTraceWithoutMessage.test.js similarity index 100% rename from e2e/stack-trace/__tests__/stack_trace_without_message.test.js rename to e2e/stack-trace/__tests__/stackTraceWithoutMessage.test.js diff --git a/e2e/stack-trace/__tests__/test_error.test.js b/e2e/stack-trace/__tests__/testError.test.js similarity index 100% rename from e2e/stack-trace/__tests__/test_error.test.js rename to e2e/stack-trace/__tests__/testError.test.js diff --git a/e2e/testNamePattern_skipped/__tests__/test_name_pattern_skipped.test.js b/e2e/test-name-pattern-skipped/__tests__/testNamePatternSkipped.test.js similarity index 100% rename from e2e/testNamePattern_skipped/__tests__/test_name_pattern_skipped.test.js rename to e2e/test-name-pattern-skipped/__tests__/testNamePatternSkipped.test.js diff --git a/e2e/testNamePattern/package.json b/e2e/test-name-pattern-skipped/package.json similarity index 100% rename from e2e/testNamePattern/package.json rename to e2e/test-name-pattern-skipped/package.json diff --git a/e2e/testNamePattern/__tests__/test_name_pattern.test.js b/e2e/test-name-pattern/__tests__/testNamePattern.test.js similarity index 100% rename from e2e/testNamePattern/__tests__/test_name_pattern.test.js rename to e2e/test-name-pattern/__tests__/testNamePattern.test.js diff --git a/e2e/testNamePattern_skipped/package.json b/e2e/test-name-pattern/package.json similarity index 100% rename from e2e/testNamePattern_skipped/package.json rename to e2e/test-name-pattern/package.json diff --git a/e2e/testResultsProcessor/__tests__/processor.test.js b/e2e/test-results-processor/__tests__/processor.test.js similarity index 100% rename from e2e/testResultsProcessor/__tests__/processor.test.js rename to e2e/test-results-processor/__tests__/processor.test.js diff --git a/e2e/testResultsProcessor/package.json b/e2e/test-results-processor/package.json similarity index 100% rename from e2e/testResultsProcessor/package.json rename to e2e/test-results-processor/package.json diff --git a/e2e/testResultsProcessor/processor.js b/e2e/test-results-processor/processor.js similarity index 100% rename from e2e/testResultsProcessor/processor.js rename to e2e/test-results-processor/processor.js diff --git a/e2e/test-todo/__tests__/todo_multiple_args.test.js b/e2e/test-todo/__tests__/todoMultipleArgs.test.js similarity index 100% rename from e2e/test-todo/__tests__/todo_multiple_args.test.js rename to e2e/test-todo/__tests__/todoMultipleArgs.test.js diff --git a/e2e/test-todo/__tests__/todo_no_args.test.js b/e2e/test-todo/__tests__/todoNoArgs.test.js similarity index 100% rename from e2e/test-todo/__tests__/todo_no_args.test.js rename to e2e/test-todo/__tests__/todoNoArgs.test.js diff --git a/e2e/test-todo/__tests__/todo_non_string.test.js b/e2e/test-todo/__tests__/todoNonString.test.js similarity index 100% rename from e2e/test-todo/__tests__/todo_non_string.test.js rename to e2e/test-todo/__tests__/todoNonString.test.js diff --git a/e2e/timer-reset-mocks/after-reset-all-mocks/timer_and_mock.test.js b/e2e/timer-reset-mocks/after-reset-all-mocks/timerAndMock.test.js similarity index 100% rename from e2e/timer-reset-mocks/after-reset-all-mocks/timer_and_mock.test.js rename to e2e/timer-reset-mocks/after-reset-all-mocks/timerAndMock.test.js diff --git a/e2e/timer-reset-mocks/with-reset-mocks/timer_with_mock.test.js b/e2e/timer-reset-mocks/with-reset-mocks/timerWithMock.test.js similarity index 100% rename from e2e/timer-reset-mocks/with-reset-mocks/timer_with_mock.test.js rename to e2e/timer-reset-mocks/with-reset-mocks/timerWithMock.test.js diff --git a/e2e/timer-use-real-timers/__tests__/use_real_timers.test.js b/e2e/timer-use-real-timers/__tests__/useRealTimers.test.js similarity index 100% rename from e2e/timer-use-real-timers/__tests__/use_real_timers.test.js rename to e2e/timer-use-real-timers/__tests__/useRealTimers.test.js diff --git a/e2e/toMatchInlineSnapshot/babel.config.js b/e2e/to-match-inline-snapshot/babel.config.js similarity index 100% rename from e2e/toMatchInlineSnapshot/babel.config.js rename to e2e/to-match-inline-snapshot/babel.config.js diff --git a/e2e/toMatchInlineSnapshot/package.json b/e2e/to-match-inline-snapshot/package.json similarity index 100% rename from e2e/toMatchInlineSnapshot/package.json rename to e2e/to-match-inline-snapshot/package.json diff --git a/e2e/toMatchSnapshot/package.json b/e2e/to-match-snapshot/package.json similarity index 100% rename from e2e/toMatchSnapshot/package.json rename to e2e/to-match-snapshot/package.json diff --git a/e2e/toThrowErrorMatchingInlineSnapshot/babel.config.js b/e2e/to-throw-error-matching-inline-snapshot/babel.config.js similarity index 100% rename from e2e/toThrowErrorMatchingInlineSnapshot/babel.config.js rename to e2e/to-throw-error-matching-inline-snapshot/babel.config.js diff --git a/e2e/toThrowErrorMatchingInlineSnapshot/package.json b/e2e/to-throw-error-matching-inline-snapshot/package.json similarity index 100% rename from e2e/toThrowErrorMatchingInlineSnapshot/package.json rename to e2e/to-throw-error-matching-inline-snapshot/package.json diff --git a/e2e/toThrowErrorMatchingSnapshot/package.json b/e2e/to-throw-error-matching-snapshot/package.json similarity index 100% rename from e2e/toThrowErrorMatchingSnapshot/package.json rename to e2e/to-throw-error-matching-snapshot/package.json diff --git a/e2e/transform-linked-modules/__tests__/linked-modules.test.js b/e2e/transform-linked-modules/__tests__/linkedModules.test.js similarity index 100% rename from e2e/transform-linked-modules/__tests__/linked-modules.test.js rename to e2e/transform-linked-modules/__tests__/linkedModules.test.js diff --git a/e2e/transform-linked-modules/package.json b/e2e/transform-linked-modules/package.json index 55214f57d3e8..0887a1756750 100644 --- a/e2e/transform-linked-modules/package.json +++ b/e2e/transform-linked-modules/package.json @@ -7,7 +7,7 @@ "/ignored/" ], "transform": { - "^.+\\.js$": "/Preprocessor.js" + "^.+\\.js$": "/preprocessor.js" } } } diff --git a/e2e/transform-linked-modules/Preprocessor.js b/e2e/transform-linked-modules/preprocessor.js similarity index 100% rename from e2e/transform-linked-modules/Preprocessor.js rename to e2e/transform-linked-modules/preprocessor.js diff --git a/e2e/transform/babel-jest/__tests__/babel_jest.test.js b/e2e/transform/babel-jest/__tests__/babelJest.test.js similarity index 84% rename from e2e/transform/babel-jest/__tests__/babel_jest.test.js rename to e2e/transform/babel-jest/__tests__/babelJest.test.js index 9dfb88ae75cd..f657e72cafae 100644 --- a/e2e/transform/babel-jest/__tests__/babel_jest.test.js +++ b/e2e/transform/babel-jest/__tests__/babelJest.test.js @@ -7,7 +7,7 @@ 'use strict'; -require('../this-directory-is-covered/ExcludedFromCoverage'); +require('../this-directory-is-covered/excludedFromCoverage'); it('strips flowtypes using babel-jest and .babelrc', () => { const a: string = 'a'; diff --git a/e2e/transform/babel-jest/__tests__/changed_cwd.test.js b/e2e/transform/babel-jest/__tests__/changedCwd.test.js similarity index 88% rename from e2e/transform/babel-jest/__tests__/changed_cwd.test.js rename to e2e/transform/babel-jest/__tests__/changedCwd.test.js index 74b213a9593b..ae8f55d62896 100644 --- a/e2e/transform/babel-jest/__tests__/changed_cwd.test.js +++ b/e2e/transform/babel-jest/__tests__/changedCwd.test.js @@ -13,7 +13,7 @@ beforeAll(() => { process.chdir(path.resolve(__dirname, '../some-dir')); // even though we change the cwd, correct config is still found - require('../this-directory-is-covered/ExcludedFromCoverage'); + require('../this-directory-is-covered/excludedFromCoverage'); }); it('strips flowtypes using babel-jest and .babelrc', () => { diff --git a/e2e/transform/babel-jest/NotCovered.js b/e2e/transform/babel-jest/notCovered.js similarity index 100% rename from e2e/transform/babel-jest/NotCovered.js rename to e2e/transform/babel-jest/notCovered.js diff --git a/e2e/transform/babel-jest/package.json b/e2e/transform/babel-jest/package.json index 1d2c6f501017..a070c4c33e01 100644 --- a/e2e/transform/babel-jest/package.json +++ b/e2e/transform/babel-jest/package.json @@ -4,11 +4,11 @@ }, "jest": { "collectCoverageOnlyFrom": { - "/this-directory-is-covered/Covered.js": true, - "/this-directory-is-covered/ExcludedFromCoverage.js": true + "/this-directory-is-covered/covered.js": true, + "/this-directory-is-covered/excludedFromCoverage.js": true }, "coveragePathIgnorePatterns": [ - "ExcludedFromCoverage" + "excludedFromCoverage" ], "testEnvironment": "node" } diff --git a/e2e/transform/babel-jest/this-directory-is-covered/Covered.js b/e2e/transform/babel-jest/this-directory-is-covered/covered.js similarity index 100% rename from e2e/transform/babel-jest/this-directory-is-covered/Covered.js rename to e2e/transform/babel-jest/this-directory-is-covered/covered.js diff --git a/e2e/transform/babel-jest/this-directory-is-covered/ExcludedFromCoverage.js b/e2e/transform/babel-jest/this-directory-is-covered/excludedFromCoverage.js similarity index 87% rename from e2e/transform/babel-jest/this-directory-is-covered/ExcludedFromCoverage.js rename to e2e/transform/babel-jest/this-directory-is-covered/excludedFromCoverage.js index 12616bcb0a6e..42144c78d095 100644 --- a/e2e/transform/babel-jest/this-directory-is-covered/ExcludedFromCoverage.js +++ b/e2e/transform/babel-jest/this-directory-is-covered/excludedFromCoverage.js @@ -5,8 +5,8 @@ * LICENSE file in the root directory of this source tree. */ -require('./Covered'); -require('../NotCovered'); +require('./covered'); +require('../notCovered'); const thisFunctionIsNeverInstrumented = () => null; diff --git a/e2e/transform/custom-instrumenting-preprocessor/__tests__/custom_preprocessor.test.js b/e2e/transform/custom-instrumenting-preprocessor/__tests__/customPreprocessor.test.js similarity index 100% rename from e2e/transform/custom-instrumenting-preprocessor/__tests__/custom_preprocessor.test.js rename to e2e/transform/custom-instrumenting-preprocessor/__tests__/customPreprocessor.test.js diff --git a/e2e/transform/custom-instrumenting-preprocessor/package.json b/e2e/transform/custom-instrumenting-preprocessor/package.json index 7e4bce94a8ee..088eb25348a4 100644 --- a/e2e/transform/custom-instrumenting-preprocessor/package.json +++ b/e2e/transform/custom-instrumenting-preprocessor/package.json @@ -1,7 +1,7 @@ { "jest": { "transform": { - "^.+\\.js$": "/Preprocessor.js" + "^.+\\.js$": "/preprocessor.js" }, "testEnvironment": "node" } diff --git a/e2e/transform/custom-instrumenting-preprocessor/Preprocessor.js b/e2e/transform/custom-instrumenting-preprocessor/preprocessor.js similarity index 100% rename from e2e/transform/custom-instrumenting-preprocessor/Preprocessor.js rename to e2e/transform/custom-instrumenting-preprocessor/preprocessor.js diff --git a/e2e/transform/ecmascript-modules-support/__tests__/ecmascript-modules-support.mjs b/e2e/transform/ecmascript-modules-support/__tests__/ecmascriptModulesSupport.mjs similarity index 100% rename from e2e/transform/ecmascript-modules-support/__tests__/ecmascript-modules-support.mjs rename to e2e/transform/ecmascript-modules-support/__tests__/ecmascriptModulesSupport.mjs diff --git a/e2e/transform/multiple-transformers/__tests__/__snapshots__/multiple_transformers.test.js.snap b/e2e/transform/multiple-transformers/__tests__/__snapshots__/multipleTransformers.test.js.snap similarity index 100% rename from e2e/transform/multiple-transformers/__tests__/__snapshots__/multiple_transformers.test.js.snap rename to e2e/transform/multiple-transformers/__tests__/__snapshots__/multipleTransformers.test.js.snap diff --git a/e2e/transform/multiple-transformers/__tests__/multiple_transformers.test.js b/e2e/transform/multiple-transformers/__tests__/multipleTransformers.test.js similarity index 100% rename from e2e/transform/multiple-transformers/__tests__/multiple_transformers.test.js rename to e2e/transform/multiple-transformers/__tests__/multipleTransformers.test.js diff --git a/e2e/transform/multiple-transformers/CssPreprocessor.js b/e2e/transform/multiple-transformers/cssPreprocessor.js similarity index 100% rename from e2e/transform/multiple-transformers/CssPreprocessor.js rename to e2e/transform/multiple-transformers/cssPreprocessor.js diff --git a/e2e/transform/multiple-transformers/FilePreprocessor.js b/e2e/transform/multiple-transformers/filePreprocessor.js similarity index 100% rename from e2e/transform/multiple-transformers/FilePreprocessor.js rename to e2e/transform/multiple-transformers/filePreprocessor.js diff --git a/e2e/transform/multiple-transformers/JsPreprocessor.js b/e2e/transform/multiple-transformers/jsPreprocessor.js similarity index 100% rename from e2e/transform/multiple-transformers/JsPreprocessor.js rename to e2e/transform/multiple-transformers/jsPreprocessor.js diff --git a/e2e/transform/multiple-transformers/package.json b/e2e/transform/multiple-transformers/package.json index 56cd63ecd3d2..393763823ac8 100644 --- a/e2e/transform/multiple-transformers/package.json +++ b/e2e/transform/multiple-transformers/package.json @@ -1,9 +1,9 @@ { "jest": { "transform": { - "^.+\\.css$": "/CssPreprocessor.js", - "^.+\\.js$": "/JsPreprocessor.js", - "^.+\\.svg$": "/FilePreprocessor.js" + "^.+\\.css$": "/cssPreprocessor.js", + "^.+\\.js$": "/jsPreprocessor.js", + "^.+\\.svg$": "/filePreprocessor.js" }, "testEnvironment": "node" }, diff --git a/e2e/transform/no-babel-jest/__tests__/fails_with_syntax_error.test.js b/e2e/transform/no-babel-jest/__tests__/failsWithSyntaxError.test.js similarity index 100% rename from e2e/transform/no-babel-jest/__tests__/fails_with_syntax_error.test.js rename to e2e/transform/no-babel-jest/__tests__/failsWithSyntaxError.test.js diff --git a/e2e/transform/no-babel-jest/__tests__/passes-with-no-babel-jest.js b/e2e/transform/no-babel-jest/__tests__/passesWithNoBabelJest.js similarity index 80% rename from e2e/transform/no-babel-jest/__tests__/passes-with-no-babel-jest.js rename to e2e/transform/no-babel-jest/__tests__/passesWithNoBabelJest.js index 790c502f785f..5696e9979292 100644 --- a/e2e/transform/no-babel-jest/__tests__/passes-with-no-babel-jest.js +++ b/e2e/transform/no-babel-jest/__tests__/passesWithNoBabelJest.js @@ -7,6 +7,6 @@ 'use strict'; -require('../this-directory-is-covered/ExcludedFromCoverage'); +require('../this-directory-is-covered/excludedFromCoverage'); test('1', () => {}); diff --git a/e2e/transform/no-babel-jest/package.json b/e2e/transform/no-babel-jest/package.json index 9fb09b127a3b..16da6b6cf73c 100644 --- a/e2e/transform/no-babel-jest/package.json +++ b/e2e/transform/no-babel-jest/package.json @@ -1,11 +1,11 @@ { "jest": { "collectCoverageOnlyFrom": { - "/this-directory-is-covered/Covered.js": true, - "/this-directory-is-covered/ExcludedFromCoverage.js": true + "/this-directory-is-covered/covered.js": true, + "/this-directory-is-covered/excludedFromCoverage.js": true }, "coveragePathIgnorePatterns": [ - "ExcludedFromCoverage" + "excludedFromCoverage" ], "testEnvironment": "node" } diff --git a/e2e/transform/no-babel-jest/this-directory-is-covered/Covered.js b/e2e/transform/no-babel-jest/this-directory-is-covered/covered.js similarity index 100% rename from e2e/transform/no-babel-jest/this-directory-is-covered/Covered.js rename to e2e/transform/no-babel-jest/this-directory-is-covered/covered.js diff --git a/e2e/transform/no-babel-jest/this-directory-is-covered/ExcludedFromCoverage.js b/e2e/transform/no-babel-jest/this-directory-is-covered/excludedFromCoverage.js similarity index 93% rename from e2e/transform/no-babel-jest/this-directory-is-covered/ExcludedFromCoverage.js rename to e2e/transform/no-babel-jest/this-directory-is-covered/excludedFromCoverage.js index 5d5170a2909a..a79a9fa2dc0f 100644 --- a/e2e/transform/no-babel-jest/this-directory-is-covered/ExcludedFromCoverage.js +++ b/e2e/transform/no-babel-jest/this-directory-is-covered/excludedFromCoverage.js @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -require('./Covered'); +require('./covered'); const thisFunctionIsNeverInstrumented = () => null; diff --git a/e2e/typescript-coverage/__tests__/covered-test.ts b/e2e/typescript-coverage/__tests__/coveredTest.ts similarity index 100% rename from e2e/typescript-coverage/__tests__/covered-test.ts rename to e2e/typescript-coverage/__tests__/coveredTest.ts diff --git a/e2e/typescript-coverage/package.json b/e2e/typescript-coverage/package.json index 9b6cf144b886..667e970829c2 100644 --- a/e2e/typescript-coverage/package.json +++ b/e2e/typescript-coverage/package.json @@ -2,7 +2,7 @@ "jest": { "rootDir": "./", "transform": { - "^.+\\.(ts|js)$": "/TypescriptPreprocessor.js" + "^.+\\.(ts|js)$": "/typescriptPreprocessor.js" }, "testMatch": [ "**/__tests__/*.+(ts|tsx|js)" diff --git a/e2e/typescript-coverage/TypescriptPreprocessor.js b/e2e/typescript-coverage/typescriptPreprocessor.js similarity index 100% rename from e2e/typescript-coverage/TypescriptPreprocessor.js rename to e2e/typescript-coverage/typescriptPreprocessor.js diff --git a/karma.conf.js b/karma.conf.js index 539a80e9d616..d0cde3e7c381 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -8,10 +8,10 @@ module.exports = config => { config.set({ browsers: ['ChromeHeadless'], - files: ['e2e/browser-support/browser-test.js'], + files: ['e2e/browser-support/browserTest.js'], frameworks: ['mocha', 'browserify'], preprocessors: { - 'e2e/browser-support/browser-test.js': ['browserify'], + 'e2e/browser-support/browserTest.js': ['browserify'], }, }); };