diff --git a/.eslintrc.js b/.eslintrc.js index 273bb0128ecf..01c5257b4288 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -46,7 +46,7 @@ module.exports = { }, }, { - files: ['scripts/**/*', 'integration_tests/**/*'], + files: ['scripts/**/*', 'integration-tests/**/*'], rules: { 'babel/func-params-comma-dangle': 0, 'unicorn/filename-case': 0, @@ -83,11 +83,11 @@ module.exports = { }, }, { - excludedFiles: 'integration_tests/__tests__/**/*', + excludedFiles: 'integration-tests/__tests__/**/*', files: [ 'examples/**/*', 'scripts/**/*', - 'integration_tests/*/**/*', + 'integration-tests/*/**/*', 'website/*/**/*', 'eslint_import_resolver.js', ], @@ -105,7 +105,7 @@ module.exports = { }, { files: [ - 'integration_tests/__tests__/**/*', + 'integration-tests/__tests__/**/*', 'packages/babel-jest/**/*.test.js', 'packages/babel-plugin-jest-hoist/**/*.test.js', 'packages/babel-preset-jest/**/*.test.js', @@ -127,7 +127,7 @@ module.exports = { files: [ 'website/**', '**/__tests__/**', - 'integration_tests/**', + 'integration-tests/**', '**/pretty-format/perf/**', ], rules: { diff --git a/.gitignore b/.gitignore index 5a147c97d326..67678961442f 100644 --- a/.gitignore +++ b/.gitignore @@ -4,9 +4,9 @@ *~ /examples/*/node_modules/ -/integration_tests/*/node_modules -/integration_tests/transform/*/coverage -/integration_tests/transform/*/node_modules +/integration-tests/*/node_modules +/integration-tests/transform/*/coverage +/integration-tests/transform/*/node_modules /node_modules diff --git a/CHANGELOG.md b/CHANGELOG.md index 21c67ff83c25..a080a0b2922f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,12 @@ the case of `--lastCommit`, `--findRelatedTests`, or `--onlyChanged` options having been passed to the CLI +### Chore & Maintenance + +* `[filenames]` Standardize folder names under `integration-tests/` + ([#5298](https://github.com/facebook/jest/pull/5298)) + + ## jest 22.0.6 ### Fixes diff --git a/docs/SnapshotTesting.md b/docs/SnapshotTesting.md index 2643996c2a23..6f58d000ae1b 100644 --- a/docs/SnapshotTesting.md +++ b/docs/SnapshotTesting.md @@ -172,7 +172,7 @@ serializable value and should be used anytime the goal is testing whether the output is correct. The Jest repository contains many examples of testing the output of Jest itself, the output of Jest's assertion library as well as log messages from various parts of the Jest codebase. See an example of -[snapshotting CLI output](https://github.com/facebook/jest/blob/master/integration_tests/__tests__/console.test.js) +[snapshotting CLI output](https://github.com/facebook/jest/blob/master/integration-tests/__tests__/console.test.js) in the Jest repo. ### What's the difference between snapshot testing and visual regression testing? diff --git a/integration_tests/__tests__/__snapshots__/cli-accepts-exact-filenames.test.js.snap b/integration-tests/__tests__/__snapshots__/cli-accepts-exact-filenames.test.js.snap similarity index 100% rename from integration_tests/__tests__/__snapshots__/cli-accepts-exact-filenames.test.js.snap rename to integration-tests/__tests__/__snapshots__/cli-accepts-exact-filenames.test.js.snap diff --git a/integration_tests/__tests__/__snapshots__/console.test.js.snap b/integration-tests/__tests__/__snapshots__/console.test.js.snap similarity index 100% rename from integration_tests/__tests__/__snapshots__/console.test.js.snap rename to integration-tests/__tests__/__snapshots__/console.test.js.snap diff --git a/integration_tests/__tests__/__snapshots__/console_log_output_when_run_in_band.test.js.snap b/integration-tests/__tests__/__snapshots__/console_log_output_when_run_in_band.test.js.snap similarity index 100% rename from integration_tests/__tests__/__snapshots__/console_log_output_when_run_in_band.test.js.snap rename to integration-tests/__tests__/__snapshots__/console_log_output_when_run_in_band.test.js.snap diff --git a/integration_tests/__tests__/__snapshots__/coverage_remapping.test.js.snap b/integration-tests/__tests__/__snapshots__/coverage_remapping.test.js.snap similarity index 100% rename from integration_tests/__tests__/__snapshots__/coverage_remapping.test.js.snap rename to integration-tests/__tests__/__snapshots__/coverage_remapping.test.js.snap diff --git a/integration_tests/__tests__/__snapshots__/coverage_report.test.js.snap b/integration-tests/__tests__/__snapshots__/coverage_report.test.js.snap similarity index 94% rename from integration_tests/__tests__/__snapshots__/coverage_report.test.js.snap rename to integration-tests/__tests__/__snapshots__/coverage_report.test.js.snap index 62e00267973b..0fe0d842cbeb 100644 --- a/integration_tests/__tests__/__snapshots__/coverage_report.test.js.snap +++ b/integration-tests/__tests__/__snapshots__/coverage_report.test.js.snap @@ -47,14 +47,14 @@ exports[`outputs coverage report 1`] = ` File | % Stmts | % Branch | % Funcs | % Lines |Uncovered Lines | -------------------------------------|----------|----------|----------|----------|----------------| All files | 56.52 | 0 | 50 | 56.52 | | - coverage_report | 41.18 | 0 | 25 | 41.18 | | + coverage-report | 41.18 | 0 | 25 | 41.18 | | not-required-in-test-suite.js | 0 | 0 | 0 | 0 | 8,15,16,17,19 | other-file.js | 100 | 100 | 100 | 100 | | sum.js | 85.71 | 100 | 50 | 85.71 | 12 | sum_dependency.js | 0 | 0 | 0 | 0 | 8,10,11,14 | - coverage_report/cached-duplicates/a | 100 | 100 | 100 | 100 | | + coverage-report/cached-duplicates/a | 100 | 100 | 100 | 100 | | identical.js | 100 | 100 | 100 | 100 | | - coverage_report/cached-duplicates/b | 100 | 100 | 100 | 100 | | + coverage-report/cached-duplicates/b | 100 | 100 | 100 | 100 | | identical.js | 100 | 100 | 100 | 100 | | -------------------------------------|----------|----------|----------|----------|----------------| " diff --git a/integration_tests/__tests__/__snapshots__/coverage_threshold.test.js.snap b/integration-tests/__tests__/__snapshots__/coverage_threshold.test.js.snap similarity index 100% rename from integration_tests/__tests__/__snapshots__/coverage_threshold.test.js.snap rename to integration-tests/__tests__/__snapshots__/coverage_threshold.test.js.snap diff --git a/integration_tests/__tests__/__snapshots__/custom_matcher_stack_trace.test.js.snap b/integration-tests/__tests__/__snapshots__/custom_matcher_stack_trace.test.js.snap similarity index 100% rename from integration_tests/__tests__/__snapshots__/custom_matcher_stack_trace.test.js.snap rename to integration-tests/__tests__/__snapshots__/custom_matcher_stack_trace.test.js.snap diff --git a/integration_tests/__tests__/__snapshots__/custom_reporters.test.js.snap b/integration-tests/__tests__/__snapshots__/custom_reporters.test.js.snap similarity index 100% rename from integration_tests/__tests__/__snapshots__/custom_reporters.test.js.snap rename to integration-tests/__tests__/__snapshots__/custom_reporters.test.js.snap diff --git a/integration_tests/__tests__/__snapshots__/failures.test.js.snap b/integration-tests/__tests__/__snapshots__/failures.test.js.snap similarity index 100% rename from integration_tests/__tests__/__snapshots__/failures.test.js.snap rename to integration-tests/__tests__/__snapshots__/failures.test.js.snap diff --git a/integration_tests/__tests__/__snapshots__/globals.test.js.snap b/integration-tests/__tests__/__snapshots__/globals.test.js.snap similarity index 100% rename from integration_tests/__tests__/__snapshots__/globals.test.js.snap rename to integration-tests/__tests__/__snapshots__/globals.test.js.snap diff --git a/integration_tests/__tests__/__snapshots__/jest.config.js.test.js.snap b/integration-tests/__tests__/__snapshots__/jest.config.js.test.js.snap similarity index 100% rename from integration_tests/__tests__/__snapshots__/jest.config.js.test.js.snap rename to integration-tests/__tests__/__snapshots__/jest.config.js.test.js.snap diff --git a/integration_tests/__tests__/__snapshots__/list_tests.test.js.snap b/integration-tests/__tests__/__snapshots__/list_tests.test.js.snap similarity index 52% rename from integration_tests/__tests__/__snapshots__/list_tests.test.js.snap rename to integration-tests/__tests__/__snapshots__/list_tests.test.js.snap index 5b62c5592066..b6e82485fe29 100644 --- a/integration_tests/__tests__/__snapshots__/list_tests.test.js.snap +++ b/integration-tests/__tests__/__snapshots__/list_tests.test.js.snap @@ -2,8 +2,8 @@ exports[`--listTests flag causes tests to be printed in different lines 1`] = ` " -/MOCK_ABOLUTE_PATH/integration_tests/list_tests/__tests__/dummy.test.js -/MOCK_ABOLUTE_PATH/integration_tests/list_tests/__tests__/other.test.js" +/MOCK_ABOLUTE_PATH/integration-tests/list-tests/__tests__/dummy.test.js +/MOCK_ABOLUTE_PATH/integration-tests/list-tests/__tests__/other.test.js" `; -exports[`--listTests flag causes tests to be printed out as JSON when using the --json flag 1`] = `"[\\"/MOCK_ABOLUTE_PATH/integration_tests/list_tests/__tests__/dummy.test.js\\",\\"/MOCK_ABOLUTE_PATH/integration_tests/list_tests/__tests__/other.test.js\\"]"`; +exports[`--listTests flag causes tests to be printed out as JSON when using the --json flag 1`] = `"[\\"/MOCK_ABOLUTE_PATH/integration-tests/list-tests/__tests__/dummy.test.js\\",\\"/MOCK_ABOLUTE_PATH/integration-tests/list-tests/__tests__/other.test.js\\"]"`; diff --git a/integration_tests/__tests__/__snapshots__/module_name_mapper.test.js.snap b/integration-tests/__tests__/__snapshots__/module_name_mapper.test.js.snap similarity index 100% rename from integration_tests/__tests__/__snapshots__/module_name_mapper.test.js.snap rename to integration-tests/__tests__/__snapshots__/module_name_mapper.test.js.snap diff --git a/integration_tests/__tests__/__snapshots__/multi_project_runner.test.js.snap b/integration-tests/__tests__/__snapshots__/multi_project_runner.test.js.snap similarity index 100% rename from integration_tests/__tests__/__snapshots__/multi_project_runner.test.js.snap rename to integration-tests/__tests__/__snapshots__/multi_project_runner.test.js.snap diff --git a/integration_tests/__tests__/__snapshots__/show_config.test.js.snap b/integration-tests/__tests__/__snapshots__/show_config.test.js.snap similarity index 100% rename from integration_tests/__tests__/__snapshots__/show_config.test.js.snap rename to integration-tests/__tests__/__snapshots__/show_config.test.js.snap diff --git a/integration_tests/__tests__/__snapshots__/snapshot.test.js.snap b/integration-tests/__tests__/__snapshots__/snapshot.test.js.snap similarity index 100% rename from integration_tests/__tests__/__snapshots__/snapshot.test.js.snap rename to integration-tests/__tests__/__snapshots__/snapshot.test.js.snap diff --git a/integration_tests/__tests__/__snapshots__/snapshot_serializers.test.js.snap b/integration-tests/__tests__/__snapshots__/snapshot_serializers.test.js.snap similarity index 100% rename from integration_tests/__tests__/__snapshots__/snapshot_serializers.test.js.snap rename to integration-tests/__tests__/__snapshots__/snapshot_serializers.test.js.snap diff --git a/integration_tests/__tests__/__snapshots__/stack_trace.test.js.snap b/integration-tests/__tests__/__snapshots__/stack_trace.test.js.snap similarity index 100% rename from integration_tests/__tests__/__snapshots__/stack_trace.test.js.snap rename to integration-tests/__tests__/__snapshots__/stack_trace.test.js.snap diff --git a/integration_tests/__tests__/__snapshots__/test_name_pattern.test.js.snap b/integration-tests/__tests__/__snapshots__/test_name_pattern.test.js.snap similarity index 100% rename from integration_tests/__tests__/__snapshots__/test_name_pattern.test.js.snap rename to integration-tests/__tests__/__snapshots__/test_name_pattern.test.js.snap diff --git a/integration_tests/__tests__/__snapshots__/timeouts.test.js.snap b/integration-tests/__tests__/__snapshots__/timeouts.test.js.snap similarity index 100% rename from integration_tests/__tests__/__snapshots__/timeouts.test.js.snap rename to integration-tests/__tests__/__snapshots__/timeouts.test.js.snap diff --git a/integration_tests/__tests__/__snapshots__/to_throw_error_matching_snapshot.test.js.snap b/integration-tests/__tests__/__snapshots__/to_throw_error_matching_snapshot.test.js.snap similarity index 100% rename from integration_tests/__tests__/__snapshots__/to_throw_error_matching_snapshot.test.js.snap rename to integration-tests/__tests__/__snapshots__/to_throw_error_matching_snapshot.test.js.snap diff --git a/integration_tests/__tests__/__snapshots__/transform.test.js.snap b/integration-tests/__tests__/__snapshots__/transform.test.js.snap similarity index 100% rename from integration_tests/__tests__/__snapshots__/transform.test.js.snap rename to integration-tests/__tests__/__snapshots__/transform.test.js.snap diff --git a/integration_tests/__tests__/__snapshots__/typescript_coverage.test.js.snap b/integration-tests/__tests__/__snapshots__/typescript_coverage.test.js.snap similarity index 100% rename from integration_tests/__tests__/__snapshots__/typescript_coverage.test.js.snap rename to integration-tests/__tests__/__snapshots__/typescript_coverage.test.js.snap diff --git a/integration_tests/__tests__/auto_clear_mocks.test.js b/integration-tests/__tests__/auto_clear_mocks.test.js similarity index 100% rename from integration_tests/__tests__/auto_clear_mocks.test.js rename to integration-tests/__tests__/auto_clear_mocks.test.js diff --git a/integration_tests/__tests__/auto_reset_mocks.test.js b/integration-tests/__tests__/auto_reset_mocks.test.js similarity index 100% rename from integration_tests/__tests__/auto_reset_mocks.test.js rename to integration-tests/__tests__/auto_reset_mocks.test.js diff --git a/integration_tests/__tests__/babel_plugin_jest_hoist.test.js b/integration-tests/__tests__/babel_plugin_jest_hoist.test.js similarity index 100% rename from integration_tests/__tests__/babel_plugin_jest_hoist.test.js rename to integration-tests/__tests__/babel_plugin_jest_hoist.test.js diff --git a/integration_tests/__tests__/clear_cache.test.js b/integration-tests/__tests__/clear_cache.test.js similarity index 82% rename from integration_tests/__tests__/clear_cache.test.js rename to integration-tests/__tests__/clear_cache.test.js index a0954fd8edd1..1b641817f4a7 100644 --- a/integration_tests/__tests__/clear_cache.test.js +++ b/integration-tests/__tests__/clear_cache.test.js @@ -13,11 +13,11 @@ const os = require('os'); const path = require('path'); const runJest = require('../runJest'); -const CACHE = path.resolve(os.tmpdir(), 'clear_cache_directory'); +const CACHE = path.resolve(os.tmpdir(), 'clear-cache-directory'); describe('jest --clearCache', () => { test('normal run results in cache directory being written', () => { - const {status} = runJest('clear_cache', [`--cacheDirectory=${CACHE}`]); + const {status} = runJest('clear-cache', [`--cacheDirectory=${CACHE}`]); expect(fs.existsSync(CACHE)).toBe(true); expect(status).toBe(0); @@ -25,7 +25,7 @@ describe('jest --clearCache', () => { test('clearCache results in deleted directory and exit status 0', () => { expect(fs.existsSync(CACHE)).toBe(true); - const {status, stdout, stderr} = runJest('clear_cache', [ + const {status, stdout, stderr} = runJest('clear-cache', [ '--clearCache', `--cacheDirectory=${CACHE}`, ]); diff --git a/integration_tests/__tests__/cli-accepts-exact-filenames.test.js b/integration-tests/__tests__/cli-accepts-exact-filenames.test.js similarity index 100% rename from integration_tests/__tests__/cli-accepts-exact-filenames.test.js rename to integration-tests/__tests__/cli-accepts-exact-filenames.test.js diff --git a/integration_tests/__tests__/compare_dom_nodes.test.js b/integration-tests/__tests__/compare_dom_nodes.test.js similarity index 100% rename from integration_tests/__tests__/compare_dom_nodes.test.js rename to integration-tests/__tests__/compare_dom_nodes.test.js diff --git a/integration_tests/__tests__/config.test.js b/integration-tests/__tests__/config.test.js similarity index 89% rename from integration_tests/__tests__/config.test.js rename to integration-tests/__tests__/config.test.js index a0a8fa7ac700..af5fa4e11b3f 100644 --- a/integration_tests/__tests__/config.test.js +++ b/integration-tests/__tests__/config.test.js @@ -11,7 +11,7 @@ const runJest = require('../runJest'); test('config as JSON', () => { - const result = runJest('verbose_reporter', [ + const result = runJest('verbose-reporter', [ '--config=' + JSON.stringify({ testEnvironment: 'node', @@ -25,7 +25,7 @@ test('config as JSON', () => { }); test('works with sane config JSON', () => { - const result = runJest('verbose_reporter', [ + const result = runJest('verbose-reporter', [ '--config=' + JSON.stringify({ testEnvironment: 'node', @@ -38,7 +38,7 @@ test('works with sane config JSON', () => { }); test('watchman config option is respected over default argv', () => { - const {stdout} = runJest('verbose_reporter', [ + const {stdout} = runJest('verbose-reporter', [ '--env=node', '--watchman=false', '--debug', @@ -48,7 +48,7 @@ test('watchman config option is respected over default argv', () => { }); test('config from argv is respected with sane config JSON', () => { - const {stdout} = runJest('verbose_reporter', [ + const {stdout} = runJest('verbose-reporter', [ '--config=' + JSON.stringify({ testEnvironment: 'node', diff --git a/integration_tests/__tests__/console.test.js b/integration-tests/__tests__/console.test.js similarity index 100% rename from integration_tests/__tests__/console.test.js rename to integration-tests/__tests__/console.test.js diff --git a/integration_tests/__tests__/console_log_output_when_run_in_band.test.js b/integration-tests/__tests__/console_log_output_when_run_in_band.test.js similarity index 100% rename from integration_tests/__tests__/console_log_output_when_run_in_band.test.js rename to integration-tests/__tests__/console_log_output_when_run_in_band.test.js diff --git a/integration_tests/__tests__/coverage_remapping.test.js b/integration-tests/__tests__/coverage_remapping.test.js similarity index 100% rename from integration_tests/__tests__/coverage_remapping.test.js rename to integration-tests/__tests__/coverage_remapping.test.js diff --git a/integration_tests/__tests__/coverage_report.test.js b/integration-tests/__tests__/coverage_report.test.js similarity index 93% rename from integration_tests/__tests__/coverage_report.test.js rename to integration-tests/__tests__/coverage_report.test.js index 6f3045999bda..0f02c83775df 100644 --- a/integration_tests/__tests__/coverage_report.test.js +++ b/integration-tests/__tests__/coverage_report.test.js @@ -14,13 +14,13 @@ const skipOnWindows = require('../../scripts/skip_on_windows'); const {extractSummary} = require('../utils'); const runJest = require('../runJest'); -const DIR = path.resolve(__dirname, '../coverage_report'); +const DIR = path.resolve(__dirname, '../coverage-report'); skipOnWindows.suite(); test('outputs coverage report', () => { const {stdout, status} = runJest(DIR, ['--no-cache', '--coverage']); - const coverageDir = path.resolve(__dirname, '../coverage_report/coverage'); + const coverageDir = path.resolve(__dirname, '../coverage-report/coverage'); // - the `setup.js` file is ignored and should not be in the coverage report. // - `sum_dependency.js` is mocked and the real module is never required but @@ -60,7 +60,7 @@ test('collects coverage only from specified files avoiding dependencies', () => }); test('json reporter printing with --coverage', () => { - const {stderr, status} = runJest('json_reporter', ['--coverage']); + const {stderr, status} = runJest('json-reporter', ['--coverage']); const {summary} = extractSummary(stderr); expect(status).toBe(1); expect(summary).toMatchSnapshot(); diff --git a/integration_tests/__tests__/coverage_threshold.test.js b/integration-tests/__tests__/coverage_threshold.test.js similarity index 100% rename from integration_tests/__tests__/coverage_threshold.test.js rename to integration-tests/__tests__/coverage_threshold.test.js diff --git a/integration_tests/__tests__/custom_matcher_stack_trace.test.js b/integration-tests/__tests__/custom_matcher_stack_trace.test.js similarity index 91% rename from integration_tests/__tests__/custom_matcher_stack_trace.test.js rename to integration-tests/__tests__/custom_matcher_stack_trace.test.js index fb4d9f817ce4..d33af4fea2c8 100644 --- a/integration_tests/__tests__/custom_matcher_stack_trace.test.js +++ b/integration-tests/__tests__/custom_matcher_stack_trace.test.js @@ -15,7 +15,7 @@ const skipOnWindows = require('../../scripts/skip_on_windows'); skipOnWindows.suite(); test('works with custom matchers', () => { - const {stderr} = runJest('custom_matcher_stack_trace'); + const {stderr} = runJest('custom-matcher-stack-trace'); let {rest} = extractSummary(stderr); diff --git a/integration_tests/__tests__/custom_reporters.test.js b/integration-tests/__tests__/custom_reporters.test.js similarity index 87% rename from integration_tests/__tests__/custom_reporters.test.js rename to integration-tests/__tests__/custom_reporters.test.js index 4463b73eea9d..b7bc53d6823c 100644 --- a/integration_tests/__tests__/custom_reporters.test.js +++ b/integration-tests/__tests__/custom_reporters.test.js @@ -14,7 +14,7 @@ const runJest = require('../runJest'); const os = require('os'); const path = require('path'); -const DIR = path.resolve(os.tmpdir(), 'custom_reporters_test_dir'); +const DIR = path.resolve(os.tmpdir(), 'custom-reporters-test-dir'); beforeEach(() => cleanup(DIR)); afterEach(() => cleanup(DIR)); @@ -27,7 +27,7 @@ describe('Custom Reporters Integration', () => { reporters: ['/reporters/test_reporter.js'], }; - const {status} = runJest('custom_reporters', [ + const {status} = runJest('custom-reporters', [ '--config', JSON.stringify(reporterConfig), 'add.test.js', @@ -46,7 +46,7 @@ describe('Custom Reporters Integration', () => { ], }; - const {status, stdout} = runJest('custom_reporters', [ + const {status, stdout} = runJest('custom-reporters', [ '--config', JSON.stringify(reporterConfig), 'add.test.js', @@ -61,7 +61,7 @@ describe('Custom Reporters Integration', () => { reporters: [[3243242]], }; - const {status, stderr} = runJest('custom_reporters', [ + const {status, stderr} = runJest('custom-reporters', [ '--config', JSON.stringify(reporterConfig), 'add.test.js', @@ -72,7 +72,7 @@ describe('Custom Reporters Integration', () => { }); test('default reporters enabled', () => { - const {stderr, stdout, status} = runJest('custom_reporters', [ + const {stderr, stdout, status} = runJest('custom-reporters', [ '--config', JSON.stringify({ reporters: ['default', '/reporters/test_reporter.js'], @@ -90,7 +90,7 @@ describe('Custom Reporters Integration', () => { }); test('TestReporter with all tests passing', () => { - const {stdout, status, stderr} = runJest('custom_reporters', [ + const {stdout, status, stderr} = runJest('custom-reporters', [ 'add.test.js', ]); @@ -102,7 +102,7 @@ describe('Custom Reporters Integration', () => { }); test('TestReporter with all tests failing', () => { - const {stdout, status, stderr} = runJest('custom_reporters', [ + const {stdout, status, stderr} = runJest('custom-reporters', [ 'add_fail.test.js', ]); @@ -114,7 +114,7 @@ describe('Custom Reporters Integration', () => { }); test('IncompleteReporter for flexibility', () => { - const {stderr, stdout, status} = runJest('custom_reporters', [ + const {stderr, stdout, status} = runJest('custom-reporters', [ '--no-cache', '--config', JSON.stringify({ diff --git a/integration_tests/__tests__/debug.test.js b/integration-tests/__tests__/debug.test.js similarity index 91% rename from integration_tests/__tests__/debug.test.js rename to integration-tests/__tests__/debug.test.js index 95e90b017cbb..87529ebb4fa0 100644 --- a/integration_tests/__tests__/debug.test.js +++ b/integration-tests/__tests__/debug.test.js @@ -13,7 +13,7 @@ const runJest = require('../runJest'); describe('jest --debug', () => { skipOnWindows.suite(); - const dir = path.resolve(__dirname, '..', 'verbose_reporter'); + const dir = path.resolve(__dirname, '..', 'verbose-reporter'); it('outputs debugging info before running the test', () => { const {stdout} = runJest(dir, ['--debug', '--no-cache']); diff --git a/integration_tests/__tests__/empty_suite_error.test.js b/integration-tests/__tests__/empty_suite_error.test.js similarity index 91% rename from integration_tests/__tests__/empty_suite_error.test.js rename to integration-tests/__tests__/empty_suite_error.test.js index 140098c77d21..8623cb386c40 100644 --- a/integration_tests/__tests__/empty_suite_error.test.js +++ b/integration-tests/__tests__/empty_suite_error.test.js @@ -11,7 +11,7 @@ const path = require('path'); const runJest = require('../runJest'); -const DIR = path.resolve(__dirname, '../empty_suite_error'); +const DIR = path.resolve(__dirname, '../empty-suite-error'); describe('JSON Reporter', () => { it('fails the test suite if it contains no tests', () => { diff --git a/integration_tests/__tests__/env.test.js b/integration-tests/__tests__/env.test.js similarity index 100% rename from integration_tests/__tests__/env.test.js rename to integration-tests/__tests__/env.test.js diff --git a/integration_tests/__tests__/failures.test.js b/integration-tests/__tests__/failures.test.js similarity index 100% rename from integration_tests/__tests__/failures.test.js rename to integration-tests/__tests__/failures.test.js diff --git a/integration_tests/__tests__/find_related_files.test.js b/integration-tests/__tests__/find_related_files.test.js similarity index 100% rename from integration_tests/__tests__/find_related_files.test.js rename to integration-tests/__tests__/find_related_files.test.js diff --git a/integration_tests/__tests__/force_exit.test.js b/integration-tests/__tests__/force_exit.test.js similarity index 100% rename from integration_tests/__tests__/force_exit.test.js rename to integration-tests/__tests__/force_exit.test.js diff --git a/integration_tests/__tests__/global.test.js b/integration-tests/__tests__/global.test.js similarity index 100% rename from integration_tests/__tests__/global.test.js rename to integration-tests/__tests__/global.test.js diff --git a/integration_tests/__tests__/global_setup.test.js b/integration-tests/__tests__/global_setup.test.js similarity index 80% rename from integration_tests/__tests__/global_setup.test.js rename to integration-tests/__tests__/global_setup.test.js index 789ca6a87f1f..9e880c17c938 100644 --- a/integration_tests/__tests__/global_setup.test.js +++ b/integration-tests/__tests__/global_setup.test.js @@ -13,14 +13,14 @@ const path = require('path'); const runJest = require('../runJest'); const {cleanup} = require('../utils'); -const DIR = path.join(os.tmpdir(), 'jest_global_setup'); +const DIR = path.join(os.tmpdir(), 'jest-global-setup'); beforeEach(() => cleanup(DIR)); afterAll(() => cleanup(DIR)); test('globalSetup is triggered once before all test suites', () => { - const setupPath = path.resolve(__dirname, '../global_setup/setup.js'); - const result = runJest.json('global_setup', [`--globalSetup=${setupPath}`]); + const setupPath = path.resolve(__dirname, '../global-setup/setup.js'); + const result = runJest.json('global-setup', [`--globalSetup=${setupPath}`]); expect(result.status).toBe(0); const files = fs.readdirSync(DIR); expect(files).toHaveLength(1); diff --git a/integration_tests/__tests__/global_teardown.test.js b/integration-tests/__tests__/global_teardown.test.js similarity index 85% rename from integration_tests/__tests__/global_teardown.test.js rename to integration-tests/__tests__/global_teardown.test.js index 3a8cb12b5d77..bc9dec1264e0 100644 --- a/integration_tests/__tests__/global_teardown.test.js +++ b/integration-tests/__tests__/global_teardown.test.js @@ -14,7 +14,7 @@ const path = require('path'); const runJest = require('../runJest'); const {cleanup} = require('../utils'); -const DIR = path.join(os.tmpdir(), 'jest_global_teardown'); +const DIR = path.join(os.tmpdir(), 'jest-global-teardown'); beforeEach(() => cleanup(DIR)); afterAll(() => cleanup(DIR)); @@ -23,9 +23,9 @@ test('globalTeardown is triggered once after all test suites', () => { mkdirp.sync(DIR); const teardownPath = path.resolve( __dirname, - '../global_teardown/teardown.js', + '../global-teardown/teardown.js', ); - const result = runJest.json('global_teardown', [ + const result = runJest.json('global-teardown', [ `--globalTeardown=${teardownPath}`, ]); expect(result.status).toBe(0); diff --git a/integration_tests/__tests__/globals.test.js b/integration-tests/__tests__/globals.test.js similarity index 100% rename from integration_tests/__tests__/globals.test.js rename to integration-tests/__tests__/globals.test.js diff --git a/integration_tests/__tests__/iterator-to-null-test.js b/integration-tests/__tests__/iterator-to-null-test.js similarity index 100% rename from integration_tests/__tests__/iterator-to-null-test.js rename to integration-tests/__tests__/iterator-to-null-test.js diff --git a/integration_tests/__tests__/jasmine_async.test.js b/integration-tests/__tests__/jasmine_async.test.js similarity index 86% rename from integration_tests/__tests__/jasmine_async.test.js rename to integration-tests/__tests__/jasmine_async.test.js index 52ef3763f5c9..57ab317f2117 100644 --- a/integration_tests/__tests__/jasmine_async.test.js +++ b/integration-tests/__tests__/jasmine_async.test.js @@ -13,7 +13,7 @@ const runJest = require('../runJest'); describe('async jasmine', () => { it('works with beforeAll', () => { - const result = runJest.json('jasmine_async', [ + const result = runJest.json('jasmine-async', [ 'promise_before_all.test.js', ]); const json = result.json; @@ -31,7 +31,7 @@ describe('async jasmine', () => { }); it('works with beforeEach', () => { - const result = runJest.json('jasmine_async', [ + const result = runJest.json('jasmine-async', [ 'promise_before_each.test.js', ]); const json = result.json; @@ -47,7 +47,7 @@ describe('async jasmine', () => { }); it('works with afterAll', () => { - const result = runJest.json('jasmine_async', ['promise_after_all.test.js']); + const result = runJest.json('jasmine-async', ['promise_after_all.test.js']); const json = result.json; expect(json.numTotalTests).toBe(2); @@ -60,7 +60,7 @@ describe('async jasmine', () => { }); it('works with afterEach', () => { - const result = runJest.json('jasmine_async', [ + const result = runJest.json('jasmine-async', [ 'promise_after_each.test.js', ]); const json = result.json; @@ -73,7 +73,7 @@ describe('async jasmine', () => { }); it('works with fit', () => { - const result = runJest.json('jasmine_async', ['promise_fit.test.js']); + const result = runJest.json('jasmine-async', ['promise_fit.test.js']); const json = result.json; expect(json.numTotalTests).toBe(3); @@ -84,7 +84,7 @@ describe('async jasmine', () => { }); it('works with xit', () => { - const result = runJest.json('jasmine_async', ['promise_xit.test.js']); + const result = runJest.json('jasmine-async', ['promise_xit.test.js']); const json = result.json; expect(json.numTotalTests).toBe(2); @@ -94,7 +94,7 @@ describe('async jasmine', () => { }); it('throws when not a promise is returned', () => { - const result = runJest.json('jasmine_async', ['returning_values.test.js']); + const result = runJest.json('jasmine-async', ['returning_values.test.js']); const json = result.json; expect(json.numTotalTests).toBe(11); @@ -104,7 +104,7 @@ describe('async jasmine', () => { }); it('tests async promise code', () => { - const result = runJest.json('jasmine_async', ['promise_it.test.js']); + const result = runJest.json('jasmine-async', ['promise_it.test.js']); const json = result.json; const message = json.testResults[0].message; @@ -124,7 +124,7 @@ describe('async jasmine', () => { }); it('works with concurrent', () => { - const result = runJest.json('jasmine_async', ['concurrent.test.js']); + const result = runJest.json('jasmine-async', ['concurrent.test.js']); const json = result.json; expect(json.numTotalTests).toBe(4); expect(json.numPassedTests).toBe(2); @@ -134,7 +134,7 @@ describe('async jasmine', () => { }); it('async test fails', () => { - const result = runJest.json('jasmine_async', ['async_test_fails.test.js']); + const result = runJest.json('jasmine-async', ['async_test_fails.test.js']); expect(result.status).toBe(1); expect(result.json.testResults[0].message).toEqual( @@ -143,7 +143,7 @@ describe('async jasmine', () => { }); it('generator test', () => { - const result = runJest('jasmine_async', ['generator.test.js']); + const result = runJest('jasmine-async', ['generator.test.js']); expect(result.status).toBe(0); }); diff --git a/integration_tests/__tests__/jest.config.js.test.js b/integration-tests/__tests__/jest.config.js.test.js similarity index 97% rename from integration_tests/__tests__/jest.config.js.test.js rename to integration-tests/__tests__/jest.config.js.test.js index be377b86b3d6..68049b1ad46f 100644 --- a/integration_tests/__tests__/jest.config.js.test.js +++ b/integration-tests/__tests__/jest.config.js.test.js @@ -54,7 +54,7 @@ test('traverses directory tree up until it finds jest.config', () => { // Snapshot the console.loged `process.cwd()` and make sure it stays the same expect( - stdout.replace(/^\W+(.*)integration_tests/gm, '<>'), + stdout.replace(/^\W+(.*)integration-tests/gm, '<>'), ).toMatchSnapshot(); const {rest, summary} = extractSummary(stderr); diff --git a/integration_tests/__tests__/jest_changed_files.test.js b/integration-tests/__tests__/jest_changed_files.test.js similarity index 100% rename from integration_tests/__tests__/jest_changed_files.test.js rename to integration-tests/__tests__/jest_changed_files.test.js diff --git a/integration_tests/__tests__/jest_require_actual.test.js b/integration-tests/__tests__/jest_require_actual.test.js similarity index 100% rename from integration_tests/__tests__/jest_require_actual.test.js rename to integration-tests/__tests__/jest_require_actual.test.js diff --git a/integration_tests/__tests__/jest_require_mock.test.js b/integration-tests/__tests__/jest_require_mock.test.js similarity index 100% rename from integration_tests/__tests__/jest_require_mock.test.js rename to integration-tests/__tests__/jest_require_mock.test.js diff --git a/integration_tests/__tests__/json.test.js b/integration-tests/__tests__/json.test.js similarity index 100% rename from integration_tests/__tests__/json.test.js rename to integration-tests/__tests__/json.test.js diff --git a/integration_tests/__tests__/json_reporter.test.js b/integration-tests/__tests__/json_reporter.test.js similarity index 95% rename from integration_tests/__tests__/json_reporter.test.js rename to integration-tests/__tests__/json_reporter.test.js index accc4c99c27a..0cdc5b8475b9 100644 --- a/integration_tests/__tests__/json_reporter.test.js +++ b/integration-tests/__tests__/json_reporter.test.js @@ -16,7 +16,7 @@ describe('JSON Reporter', () => { const outputFileName = 'sum.result.json'; const outputFilePath = path.join( process.cwd(), - 'integration_tests/json_reporter/', + 'integration-tests/json-reporter/', outputFileName, ); @@ -27,7 +27,7 @@ describe('JSON Reporter', () => { it('writes test result to sum.result.json', () => { let jsonResult; - runJest('json_reporter', ['--json', `--outputFile=${outputFileName}`]); + runJest('json-reporter', ['--json', `--outputFile=${outputFileName}`]); const testOutput = fs.readFileSync(outputFilePath, 'utf8'); try { @@ -65,7 +65,7 @@ describe('JSON Reporter', () => { }); it('outputs coverage report', () => { - const result = runJest('json_reporter', ['--json']); + const result = runJest('json-reporter', ['--json']); const stdout = result.stdout.toString(); const stderr = result.stderr.toString(); let jsonResult; diff --git a/integration_tests/__tests__/list_tests.test.js b/integration-tests/__tests__/list_tests.test.js similarity index 89% rename from integration_tests/__tests__/list_tests.test.js rename to integration-tests/__tests__/list_tests.test.js index 749de8512270..392ee1def18b 100644 --- a/integration_tests/__tests__/list_tests.test.js +++ b/integration-tests/__tests__/list_tests.test.js @@ -22,7 +22,7 @@ const normalizePaths = rawPaths => describe('--listTests flag', () => { it('causes tests to be printed in different lines', () => { - const {status, stdout} = runJest('list_tests', ['--listTests']); + const {status, stdout} = runJest('list-tests', ['--listTests']); expect(status).toBe(0); expect( @@ -34,7 +34,7 @@ describe('--listTests flag', () => { }); it('causes tests to be printed out as JSON when using the --json flag', () => { - const {status, stdout} = runJest('list_tests', ['--listTests', '--json']); + const {status, stdout} = runJest('list-tests', ['--listTests', '--json']); expect(status).toBe(0); expect(() => JSON.parse(stdout)).not.toThrow(); diff --git a/integration_tests/__tests__/location_in_results.test.js b/integration-tests/__tests__/location_in_results.test.js similarity index 89% rename from integration_tests/__tests__/location_in_results.test.js rename to integration-tests/__tests__/location_in_results.test.js index d4903234a669..19891b542a1d 100644 --- a/integration_tests/__tests__/location_in_results.test.js +++ b/integration-tests/__tests__/location_in_results.test.js @@ -11,7 +11,7 @@ const runJest = require('../runJest'); it('defaults to null for location', () => { - const result = runJest.json('location_in_results').json; + const result = runJest.json('location-in-results').json; const assertions = result.testResults[0].assertionResults; expect(result.success).toBe(true); @@ -21,7 +21,7 @@ it('defaults to null for location', () => { }); it('adds correct location info when provided with flag', () => { - const result = runJest.json('location_in_results', [ + const result = runJest.json('location-in-results', [ '--testLocationInResults', ]).json; diff --git a/integration_tests/__tests__/log_heap_usage.test.js b/integration-tests/__tests__/log_heap_usage.test.js similarity index 100% rename from integration_tests/__tests__/log_heap_usage.test.js rename to integration-tests/__tests__/log_heap_usage.test.js diff --git a/integration_tests/__tests__/mock_names.test.js b/integration-tests/__tests__/mock_names.test.js similarity index 100% rename from integration_tests/__tests__/mock_names.test.js rename to integration-tests/__tests__/mock_names.test.js diff --git a/integration_tests/__tests__/module_name_mapper.test.js b/integration-tests/__tests__/module_name_mapper.test.js similarity index 86% rename from integration_tests/__tests__/module_name_mapper.test.js rename to integration-tests/__tests__/module_name_mapper.test.js index 4298d240b833..83f5ade49068 100644 --- a/integration_tests/__tests__/module_name_mapper.test.js +++ b/integration-tests/__tests__/module_name_mapper.test.js @@ -16,7 +16,7 @@ const skipOnWindows = require('../../scripts/skip_on_windows'); skipOnWindows.suite(); test('moduleNameMapper wrong configuration', () => { - const {stderr, status} = runJest('module_name_mapper_wrong_config'); + const {stderr, status} = runJest('module-name-mapper-wrong-config'); const {rest} = extractSummary(stderr); expect(status).toBe(1); @@ -24,7 +24,7 @@ test('moduleNameMapper wrong configuration', () => { }); test('moduleNameMapper correct configuration', () => { - const {stderr, status} = runJest('module_name_mapper_correct_config'); + const {stderr, status} = runJest('module-name-mapper-correct-config'); const {rest} = extractSummary(stderr); expect(status).toBe(0); diff --git a/integration_tests/__tests__/multi_project_runner.test.js b/integration-tests/__tests__/multi_project_runner.test.js similarity index 100% rename from integration_tests/__tests__/multi_project_runner.test.js rename to integration-tests/__tests__/multi_project_runner.test.js diff --git a/integration_tests/__tests__/native_async_mock.test.js b/integration-tests/__tests__/native_async_mock.test.js similarity index 100% rename from integration_tests/__tests__/native_async_mock.test.js rename to integration-tests/__tests__/native_async_mock.test.js diff --git a/integration_tests/__tests__/nested_event_loop.test.js b/integration-tests/__tests__/nested_event_loop.test.js similarity index 88% rename from integration_tests/__tests__/nested_event_loop.test.js rename to integration-tests/__tests__/nested_event_loop.test.js index a0d3e7a6b218..7f44bb9dad8b 100644 --- a/integration_tests/__tests__/nested_event_loop.test.js +++ b/integration-tests/__tests__/nested_event_loop.test.js @@ -11,6 +11,6 @@ const runJest = require('../runJest'); test('works with nested event loops', () => { - const result = runJest('nested_event_loop'); + const result = runJest('nested-event-loop'); expect(result.status).toBe(0); }); diff --git a/integration_tests/__tests__/no_test_found.test.js b/integration-tests/__tests__/no_test_found.test.js similarity index 88% rename from integration_tests/__tests__/no_test_found.test.js rename to integration-tests/__tests__/no_test_found.test.js index b98038d405c0..a330d2585b77 100644 --- a/integration_tests/__tests__/no_test_found.test.js +++ b/integration-tests/__tests__/no_test_found.test.js @@ -12,7 +12,7 @@ const runJest = require('../runJest'); describe('Coverage Report', () => { it('outputs coverage report', () => { - const result = runJest('coverage_report', ['not-a-valid-test']); + const result = runJest('coverage-report', ['not-a-valid-test']); const stdout = result.stdout.toString(); expect(stdout).toMatch('No tests found'); diff --git a/integration_tests/__tests__/no_tests_found.test.js b/integration-tests/__tests__/no_tests_found.test.js similarity index 97% rename from integration_tests/__tests__/no_tests_found.test.js rename to integration-tests/__tests__/no_tests_found.test.js index 5b24242a782b..38c9f90d965c 100644 --- a/integration_tests/__tests__/no_tests_found.test.js +++ b/integration-tests/__tests__/no_tests_found.test.js @@ -12,7 +12,7 @@ const path = require('path'); const runJest = require('../runJest'); -const DIR = path.resolve(__dirname, '../no_tests_found-test'); +const DIR = path.resolve(__dirname, '../no-tests-found-test'); describe('No tests are found', () => { test('fails the test suite in standard situation', () => { diff --git a/integration_tests/__tests__/node_path.test.js b/integration-tests/__tests__/node_path.test.js similarity index 84% rename from integration_tests/__tests__/node_path.test.js rename to integration-tests/__tests__/node_path.test.js index 2de052283120..7a06d20407b1 100644 --- a/integration_tests/__tests__/node_path.test.js +++ b/integration-tests/__tests__/node_path.test.js @@ -12,8 +12,8 @@ const runJest = require('../runJest'); test('supports NODE_PATH', () => { // $FlowFixMe after adding @flow to this test this seems to be a real bug - const result = runJest('node_path', [], { - nodePath: ['../node_path/src'], + const result = runJest('node-path', [], { + nodePath: ['../node-path/src'], }); expect(result.status).toBe(0); }); diff --git a/integration_tests/__tests__/only_changed.test.js b/integration-tests/__tests__/only_changed.test.js similarity index 100% rename from integration_tests/__tests__/only_changed.test.js rename to integration-tests/__tests__/only_changed.test.js diff --git a/integration_tests/__tests__/override-globals.test.js b/integration-tests/__tests__/override-globals.test.js similarity index 100% rename from integration_tests/__tests__/override-globals.test.js rename to integration-tests/__tests__/override-globals.test.js diff --git a/integration_tests/__tests__/regex_(char_in_path.test.js b/integration-tests/__tests__/regex_(char_in_path.test.js similarity index 100% rename from integration_tests/__tests__/regex_(char_in_path.test.js rename to integration-tests/__tests__/regex_(char_in_path.test.js diff --git a/integration_tests/__tests__/require_v8_module.test.js b/integration-tests/__tests__/require_v8_module.test.js similarity index 100% rename from integration_tests/__tests__/require_v8_module.test.js rename to integration-tests/__tests__/require_v8_module.test.js diff --git a/integration_tests/__tests__/resolve.test.js b/integration-tests/__tests__/resolve.test.js similarity index 100% rename from integration_tests/__tests__/resolve.test.js rename to integration-tests/__tests__/resolve.test.js diff --git a/integration_tests/__tests__/run_tests_by_path.test.js b/integration-tests/__tests__/run_tests_by_path.test.js similarity index 100% rename from integration_tests/__tests__/run_tests_by_path.test.js rename to integration-tests/__tests__/run_tests_by_path.test.js diff --git a/integration_tests/__tests__/runtime_internal_module_registry.test.js b/integration-tests/__tests__/runtime_internal_module_registry.test.js similarity index 100% rename from integration_tests/__tests__/runtime_internal_module_registry.test.js rename to integration-tests/__tests__/runtime_internal_module_registry.test.js diff --git a/integration_tests/__tests__/set_immediate.test.js b/integration-tests/__tests__/set_immediate.test.js similarity index 88% rename from integration_tests/__tests__/set_immediate.test.js rename to integration-tests/__tests__/set_immediate.test.js index c600483a266a..a812eca9d273 100644 --- a/integration_tests/__tests__/set_immediate.test.js +++ b/integration-tests/__tests__/set_immediate.test.js @@ -11,7 +11,7 @@ const runJest = require('../runJest'); test('setImmediate', () => { - const result = runJest('set_immediate', ['--verbose']); + const result = runJest('set-immediate', ['--verbose']); const stderr = result.stderr.toString(); expect(stderr).toMatch('setImmediate test'); diff --git a/integration_tests/__tests__/setup_test_framework_script_file_cli_config.test.js b/integration-tests/__tests__/setup_test_framework_script_file_cli_config.test.js similarity index 87% rename from integration_tests/__tests__/setup_test_framework_script_file_cli_config.test.js rename to integration-tests/__tests__/setup_test_framework_script_file_cli_config.test.js index b9ee0ac2cfd1..217709cba81d 100644 --- a/integration_tests/__tests__/setup_test_framework_script_file_cli_config.test.js +++ b/integration-tests/__tests__/setup_test_framework_script_file_cli_config.test.js @@ -12,7 +12,7 @@ const runJest = require('../runJest'); describe('--setupTestFrameworkScriptFile setup.js', () => { it('requires a setup file before each file in the suite', () => { - const result = runJest.json('setup_test_framework_script_file_cli_config', [ + const result = runJest.json('setup-test-framework-script-file-cli-config', [ '--setupTestFrameworkScriptFile', './setup1.js', 'test1.test.js', @@ -26,7 +26,7 @@ describe('--setupTestFrameworkScriptFile setup.js', () => { }); it('requires setup files *after* the test runners are required', () => { - const result = runJest.json('setup_test_framework_script_file_cli_config', [ + const result = runJest.json('setup-test-framework-script-file-cli-config', [ '--setupTestFrameworkScriptFile', './setup_hooks_into_runner.js', 'runner_patch.test.js', diff --git a/integration_tests/__tests__/show_config.test.js b/integration-tests/__tests__/show_config.test.js similarity index 100% rename from integration_tests/__tests__/show_config.test.js rename to integration-tests/__tests__/show_config.test.js diff --git a/integration_tests/__tests__/snapshot.test.js b/integration-tests/__tests__/snapshot.test.js similarity index 100% rename from integration_tests/__tests__/snapshot.test.js rename to integration-tests/__tests__/snapshot.test.js diff --git a/integration_tests/__tests__/snapshot_serializers.test.js b/integration-tests/__tests__/snapshot_serializers.test.js similarity index 100% rename from integration_tests/__tests__/snapshot_serializers.test.js rename to integration-tests/__tests__/snapshot_serializers.test.js diff --git a/integration_tests/__tests__/stack_trace.test.js b/integration-tests/__tests__/stack_trace.test.js similarity index 90% rename from integration_tests/__tests__/stack_trace.test.js rename to integration-tests/__tests__/stack_trace.test.js index 7bf884b817c3..606ed05ff173 100644 --- a/integration_tests/__tests__/stack_trace.test.js +++ b/integration-tests/__tests__/stack_trace.test.js @@ -13,7 +13,7 @@ const {extractSummary} = require('../utils'); describe('Stack Trace', () => { it('prints a stack trace for runtime errors', () => { - const result = runJest('stack_trace', ['runtime_error.test.js']); + const result = runJest('stack-trace', ['runtime_error.test.js']); const stderr = result.stderr.toString(); expect(extractSummary(stderr).summary).toMatchSnapshot(); @@ -28,7 +28,7 @@ describe('Stack Trace', () => { }); it('does not print a stack trace for runtime errors when --noStackTrace is given', () => { - const result = runJest('stack_trace', [ + const result = runJest('stack-trace', [ 'runtime_error.test.js', '--noStackTrace', ]); @@ -46,7 +46,7 @@ describe('Stack Trace', () => { }); it('prints a stack trace for matching errors', () => { - const result = runJest('stack_trace', ['stack_trace.test.js']); + const result = runJest('stack-trace', ['stack_trace.test.js']); const stderr = result.stderr.toString(); expect(extractSummary(stderr).summary).toMatchSnapshot(); @@ -56,7 +56,7 @@ describe('Stack Trace', () => { }); it('does not print a stack trace for matching errors when --noStackTrace is given', () => { - const result = runJest('stack_trace', [ + const result = runJest('stack-trace', [ 'stack_trace.test.js', '--noStackTrace', ]); @@ -71,7 +71,7 @@ describe('Stack Trace', () => { }); it('prints a stack trace for errors', () => { - const result = runJest('stack_trace', ['test_error.test.js']); + const result = runJest('stack-trace', ['test_error.test.js']); const stderr = result.stderr.toString(); expect(extractSummary(stderr).summary).toMatchSnapshot(); @@ -93,7 +93,7 @@ describe('Stack Trace', () => { }); it('prints a stack trace for errors without message in stack trace', () => { - const result = runJest('stack_trace', [ + const result = runJest('stack-trace', [ 'stack_trace_without_message.test.js', ]); const stderr = result.stderr.toString(); @@ -108,7 +108,7 @@ describe('Stack Trace', () => { }); it('does not print a stack trace for errors when --noStackTrace is given', () => { - const result = runJest('stack_trace', [ + const result = runJest('stack-trace', [ 'test_error.test.js', '--noStackTrace', ]); diff --git a/integration_tests/__tests__/stack_trace_no_captureStackTrace.test.js b/integration-tests/__tests__/stack_trace_no_captureStackTrace.test.js similarity index 85% rename from integration_tests/__tests__/stack_trace_no_captureStackTrace.test.js rename to integration-tests/__tests__/stack_trace_no_captureStackTrace.test.js index 1b6a38eb5307..6cd0865f1a09 100644 --- a/integration_tests/__tests__/stack_trace_no_captureStackTrace.test.js +++ b/integration-tests/__tests__/stack_trace_no_captureStackTrace.test.js @@ -11,7 +11,7 @@ const runJest = require('../runJest'); it('prints a usable stack trace even if no Error.captureStackTrace', () => { - const {stderr, status} = runJest('stack_trace_no_captureStackTrace'); + const {stderr, status} = runJest('stack-trace-no-capture-stack-trace'); expect(stderr).not.toMatch('Error.captureStackTrace is not a function'); expect(status).toBe(1); }); diff --git a/integration_tests/__tests__/symbol.test.js b/integration-tests/__tests__/symbol.test.js similarity index 100% rename from integration_tests/__tests__/symbol.test.js rename to integration-tests/__tests__/symbol.test.js diff --git a/integration_tests/__tests__/test_environment.test.js b/integration-tests/__tests__/test_environment.test.js similarity index 100% rename from integration_tests/__tests__/test_environment.test.js rename to integration-tests/__tests__/test_environment.test.js diff --git a/integration_tests/__tests__/test_environment_async.test.js b/integration-tests/__tests__/test_environment_async.test.js similarity index 100% rename from integration_tests/__tests__/test_environment_async.test.js rename to integration-tests/__tests__/test_environment_async.test.js diff --git a/integration_tests/__tests__/test_failure_exit_code.test.js b/integration-tests/__tests__/test_failure_exit_code.test.js similarity index 100% rename from integration_tests/__tests__/test_failure_exit_code.test.js rename to integration-tests/__tests__/test_failure_exit_code.test.js diff --git a/integration_tests/__tests__/test_in_root.test.js b/integration-tests/__tests__/test_in_root.test.js similarity index 100% rename from integration_tests/__tests__/test_in_root.test.js rename to integration-tests/__tests__/test_in_root.test.js diff --git a/integration_tests/__tests__/test_name_pattern.test.js b/integration-tests/__tests__/test_name_pattern.test.js similarity index 100% rename from integration_tests/__tests__/test_name_pattern.test.js rename to integration-tests/__tests__/test_name_pattern.test.js diff --git a/integration_tests/__tests__/test_path_pattern_reporter_message.test.js b/integration-tests/__tests__/test_path_pattern_reporter_message.test.js similarity index 100% rename from integration_tests/__tests__/test_path_pattern_reporter_message.test.js rename to integration-tests/__tests__/test_path_pattern_reporter_message.test.js diff --git a/integration_tests/__tests__/test_results_processor.test.js b/integration-tests/__tests__/test_results_processor.test.js similarity index 100% rename from integration_tests/__tests__/test_results_processor.test.js rename to integration-tests/__tests__/test_results_processor.test.js diff --git a/integration_tests/__tests__/timeouts.test.js b/integration-tests/__tests__/timeouts.test.js similarity index 100% rename from integration_tests/__tests__/timeouts.test.js rename to integration-tests/__tests__/timeouts.test.js diff --git a/integration_tests/__tests__/timer_reset_mocks.test.js b/integration-tests/__tests__/timer_reset_mocks.test.js similarity index 77% rename from integration_tests/__tests__/timer_reset_mocks.test.js rename to integration-tests/__tests__/timer_reset_mocks.test.js index 4da232c8da7e..4fd251bafbb2 100644 --- a/integration_tests/__tests__/timer_reset_mocks.test.js +++ b/integration-tests/__tests__/timer_reset_mocks.test.js @@ -11,11 +11,11 @@ const runJest = require('../runJest'); test('run timers after resetAllMocks test', () => { - const result = runJest('timer-resetMocks/after_resetAllMocks'); + const result = runJest('timer-reset-mocks/after-reset-all-mocks'); expect(result.status).toBe(0); }); test('run timers with resetMocks in config test', () => { - const result = runJest('timer-resetMocks/with_resetMocks'); + const result = runJest('timer-reset-mocks/with-reset-mocks'); expect(result.status).toBe(0); }); diff --git a/integration_tests/__tests__/timer_use_real_timers.test.js b/integration-tests/__tests__/timer_use_real_timers.test.js similarity index 89% rename from integration_tests/__tests__/timer_use_real_timers.test.js rename to integration-tests/__tests__/timer_use_real_timers.test.js index d5dec023c8cd..53f4d511d452 100644 --- a/integration_tests/__tests__/timer_use_real_timers.test.js +++ b/integration-tests/__tests__/timer_use_real_timers.test.js @@ -11,7 +11,7 @@ const runJest = require('../runJest'); test('useRealTimers cancels "timers": "fake" for whole test file', () => { - const result = runJest('timer_use_real_timers'); + const result = runJest('timer-use-real-timers'); expect(result.stdout).toMatch('API is not mocked with fake timers.'); expect(result.status).toBe(0); }); diff --git a/integration_tests/__tests__/to_match_snapshot.test.js b/integration-tests/__tests__/to_match_snapshot.test.js similarity index 100% rename from integration_tests/__tests__/to_match_snapshot.test.js rename to integration-tests/__tests__/to_match_snapshot.test.js diff --git a/integration_tests/__tests__/to_throw_error_matching_snapshot.test.js b/integration-tests/__tests__/to_throw_error_matching_snapshot.test.js similarity index 100% rename from integration_tests/__tests__/to_throw_error_matching_snapshot.test.js rename to integration-tests/__tests__/to_throw_error_matching_snapshot.test.js diff --git a/integration_tests/__tests__/transform-linked-modules.test.js b/integration-tests/__tests__/transform-linked-modules.test.js similarity index 100% rename from integration_tests/__tests__/transform-linked-modules.test.js rename to integration-tests/__tests__/transform-linked-modules.test.js diff --git a/integration_tests/__tests__/transform.test.js b/integration-tests/__tests__/transform.test.js similarity index 100% rename from integration_tests/__tests__/transform.test.js rename to integration-tests/__tests__/transform.test.js diff --git a/integration_tests/__tests__/typescript_coverage.test.js b/integration-tests/__tests__/typescript_coverage.test.js similarity index 100% rename from integration_tests/__tests__/typescript_coverage.test.js rename to integration-tests/__tests__/typescript_coverage.test.js diff --git a/integration_tests/__tests__/use_stderr.test.js b/integration-tests/__tests__/use_stderr.test.js similarity index 100% rename from integration_tests/__tests__/use_stderr.test.js rename to integration-tests/__tests__/use_stderr.test.js diff --git a/integration_tests/__tests__/verbose.test.js b/integration-tests/__tests__/verbose.test.js similarity index 91% rename from integration_tests/__tests__/verbose.test.js rename to integration-tests/__tests__/verbose.test.js index ef52ab47db22..77672577f9e0 100644 --- a/integration_tests/__tests__/verbose.test.js +++ b/integration-tests/__tests__/verbose.test.js @@ -11,7 +11,7 @@ const runJest = require('../runJest'); test('Verbose Reporter', () => { - const result = runJest('verbose_reporter'); + const result = runJest('verbose-reporter'); const stderr = result.stderr.toString(); expect(result.status).toBe(1); diff --git a/integration_tests/__tests__/version.test.js b/integration-tests/__tests__/version.test.js similarity index 100% rename from integration_tests/__tests__/version.test.js rename to integration-tests/__tests__/version.test.js diff --git a/integration_tests/auto-clear-mocks/with-auto-clear/__tests__/index.js b/integration-tests/auto-clear-mocks/with-auto-clear/__tests__/index.js similarity index 100% rename from integration_tests/auto-clear-mocks/with-auto-clear/__tests__/index.js rename to integration-tests/auto-clear-mocks/with-auto-clear/__tests__/index.js diff --git a/integration_tests/auto-clear-mocks/with-auto-clear/index.js b/integration-tests/auto-clear-mocks/with-auto-clear/index.js similarity index 100% rename from integration_tests/auto-clear-mocks/with-auto-clear/index.js rename to integration-tests/auto-clear-mocks/with-auto-clear/index.js diff --git a/integration_tests/auto-clear-mocks/with-auto-clear/package.json b/integration-tests/auto-clear-mocks/with-auto-clear/package.json similarity index 100% rename from integration_tests/auto-clear-mocks/with-auto-clear/package.json rename to integration-tests/auto-clear-mocks/with-auto-clear/package.json diff --git a/integration_tests/auto-clear-mocks/without-auto-clear/__tests__/index.js b/integration-tests/auto-clear-mocks/without-auto-clear/__tests__/index.js similarity index 100% rename from integration_tests/auto-clear-mocks/without-auto-clear/__tests__/index.js rename to integration-tests/auto-clear-mocks/without-auto-clear/__tests__/index.js diff --git a/integration_tests/auto-clear-mocks/without-auto-clear/index.js b/integration-tests/auto-clear-mocks/without-auto-clear/index.js similarity index 100% rename from integration_tests/auto-clear-mocks/without-auto-clear/index.js rename to integration-tests/auto-clear-mocks/without-auto-clear/index.js diff --git a/integration_tests/auto-clear-mocks/without-auto-clear/package.json b/integration-tests/auto-clear-mocks/without-auto-clear/package.json similarity index 100% rename from integration_tests/auto-clear-mocks/without-auto-clear/package.json rename to integration-tests/auto-clear-mocks/without-auto-clear/package.json diff --git a/integration_tests/auto-reset-mocks/with-auto-reset/__tests__/index.js b/integration-tests/auto-reset-mocks/with-auto-reset/__tests__/index.js similarity index 100% rename from integration_tests/auto-reset-mocks/with-auto-reset/__tests__/index.js rename to integration-tests/auto-reset-mocks/with-auto-reset/__tests__/index.js diff --git a/integration_tests/auto-reset-mocks/with-auto-reset/index.js b/integration-tests/auto-reset-mocks/with-auto-reset/index.js similarity index 100% rename from integration_tests/auto-reset-mocks/with-auto-reset/index.js rename to integration-tests/auto-reset-mocks/with-auto-reset/index.js diff --git a/integration_tests/auto-reset-mocks/with-auto-reset/package.json b/integration-tests/auto-reset-mocks/with-auto-reset/package.json similarity index 100% rename from integration_tests/auto-reset-mocks/with-auto-reset/package.json rename to integration-tests/auto-reset-mocks/with-auto-reset/package.json diff --git a/integration_tests/auto-reset-mocks/without-auto-reset/__tests__/index.js b/integration-tests/auto-reset-mocks/without-auto-reset/__tests__/index.js similarity index 100% rename from integration_tests/auto-reset-mocks/without-auto-reset/__tests__/index.js rename to integration-tests/auto-reset-mocks/without-auto-reset/__tests__/index.js diff --git a/integration_tests/auto-reset-mocks/without-auto-reset/index.js b/integration-tests/auto-reset-mocks/without-auto-reset/index.js similarity index 100% rename from integration_tests/auto-reset-mocks/without-auto-reset/index.js rename to integration-tests/auto-reset-mocks/without-auto-reset/index.js diff --git a/integration_tests/auto-reset-mocks/without-auto-reset/package.json b/integration-tests/auto-reset-mocks/without-auto-reset/package.json similarity index 100% rename from integration_tests/auto-reset-mocks/without-auto-reset/package.json rename to integration-tests/auto-reset-mocks/without-auto-reset/package.json diff --git a/integration_tests/babel-plugin-jest-hoist/.babelrc b/integration-tests/babel-plugin-jest-hoist/.babelrc similarity index 100% rename from integration_tests/babel-plugin-jest-hoist/.babelrc rename to integration-tests/babel-plugin-jest-hoist/.babelrc diff --git a/integration_tests/babel-plugin-jest-hoist/__test_modules__/Mocked.js b/integration-tests/babel-plugin-jest-hoist/__test_modules__/Mocked.js similarity index 100% rename from integration_tests/babel-plugin-jest-hoist/__test_modules__/Mocked.js rename to integration-tests/babel-plugin-jest-hoist/__test_modules__/Mocked.js diff --git a/integration_tests/babel-plugin-jest-hoist/__test_modules__/Unmocked.js b/integration-tests/babel-plugin-jest-hoist/__test_modules__/Unmocked.js similarity index 100% rename from integration_tests/babel-plugin-jest-hoist/__test_modules__/Unmocked.js rename to integration-tests/babel-plugin-jest-hoist/__test_modules__/Unmocked.js diff --git a/integration_tests/babel-plugin-jest-hoist/__test_modules__/a.js b/integration-tests/babel-plugin-jest-hoist/__test_modules__/a.js similarity index 100% rename from integration_tests/babel-plugin-jest-hoist/__test_modules__/a.js rename to integration-tests/babel-plugin-jest-hoist/__test_modules__/a.js diff --git a/integration_tests/babel-plugin-jest-hoist/__test_modules__/b.js b/integration-tests/babel-plugin-jest-hoist/__test_modules__/b.js similarity index 100% rename from integration_tests/babel-plugin-jest-hoist/__test_modules__/b.js rename to integration-tests/babel-plugin-jest-hoist/__test_modules__/b.js diff --git a/integration_tests/babel-plugin-jest-hoist/__test_modules__/c.js b/integration-tests/babel-plugin-jest-hoist/__test_modules__/c.js similarity index 100% rename from integration_tests/babel-plugin-jest-hoist/__test_modules__/c.js rename to integration-tests/babel-plugin-jest-hoist/__test_modules__/c.js diff --git a/integration_tests/babel-plugin-jest-hoist/__test_modules__/d.js b/integration-tests/babel-plugin-jest-hoist/__test_modules__/d.js similarity index 100% rename from integration_tests/babel-plugin-jest-hoist/__test_modules__/d.js rename to integration-tests/babel-plugin-jest-hoist/__test_modules__/d.js diff --git a/integration_tests/babel-plugin-jest-hoist/__test_modules__/e.js b/integration-tests/babel-plugin-jest-hoist/__test_modules__/e.js similarity index 100% rename from integration_tests/babel-plugin-jest-hoist/__test_modules__/e.js rename to integration-tests/babel-plugin-jest-hoist/__test_modules__/e.js diff --git a/integration_tests/babel-plugin-jest-hoist/__tests__/integration.test.js b/integration-tests/babel-plugin-jest-hoist/__tests__/integration.test.js similarity index 100% rename from integration_tests/babel-plugin-jest-hoist/__tests__/integration.test.js rename to integration-tests/babel-plugin-jest-hoist/__tests__/integration.test.js diff --git a/integration_tests/babel-plugin-jest-hoist/__tests__/integration_automock_off.test.js b/integration-tests/babel-plugin-jest-hoist/__tests__/integration_automock_off.test.js similarity index 100% rename from integration_tests/babel-plugin-jest-hoist/__tests__/integration_automock_off.test.js rename to integration-tests/babel-plugin-jest-hoist/__tests__/integration_automock_off.test.js diff --git a/integration_tests/babel-plugin-jest-hoist/banana.js b/integration-tests/babel-plugin-jest-hoist/banana.js similarity index 100% rename from integration_tests/babel-plugin-jest-hoist/banana.js rename to integration-tests/babel-plugin-jest-hoist/banana.js diff --git a/integration_tests/babel-plugin-jest-hoist/mock-file.js b/integration-tests/babel-plugin-jest-hoist/mock-file.js similarity index 100% rename from integration_tests/babel-plugin-jest-hoist/mock-file.js rename to integration-tests/babel-plugin-jest-hoist/mock-file.js diff --git a/integration_tests/babel-plugin-jest-hoist/package.json b/integration-tests/babel-plugin-jest-hoist/package.json similarity index 100% rename from integration_tests/babel-plugin-jest-hoist/package.json rename to integration-tests/babel-plugin-jest-hoist/package.json diff --git a/integration_tests/babel-plugin-jest-hoist/yarn.lock b/integration-tests/babel-plugin-jest-hoist/yarn.lock similarity index 100% rename from integration_tests/babel-plugin-jest-hoist/yarn.lock rename to integration-tests/babel-plugin-jest-hoist/yarn.lock diff --git a/integration_tests/browser-support/browser-test.js b/integration-tests/browser-support/browser-test.js similarity index 100% rename from integration_tests/browser-support/browser-test.js rename to integration-tests/browser-support/browser-test.js diff --git a/integration_tests/clear_cache/__tests__/clear_cache.test.js b/integration-tests/clear-cache/__tests__/clear_cache.test.js similarity index 100% rename from integration_tests/clear_cache/__tests__/clear_cache.test.js rename to integration-tests/clear-cache/__tests__/clear_cache.test.js diff --git a/integration_tests/clear_cache/package.json b/integration-tests/clear-cache/package.json similarity index 100% rename from integration_tests/clear_cache/package.json rename to integration-tests/clear-cache/package.json diff --git a/integration_tests/compare-dom-nodes/__tests__/failed-assertion.js b/integration-tests/compare-dom-nodes/__tests__/failed-assertion.js similarity index 100% rename from integration_tests/compare-dom-nodes/__tests__/failed-assertion.js rename to integration-tests/compare-dom-nodes/__tests__/failed-assertion.js diff --git a/integration_tests/compare-dom-nodes/package.json b/integration-tests/compare-dom-nodes/package.json similarity index 100% rename from integration_tests/compare-dom-nodes/package.json rename to integration-tests/compare-dom-nodes/package.json diff --git a/integration_tests/console-jsdom/__tests__/console.test.js b/integration-tests/console-jsdom/__tests__/console.test.js similarity index 100% rename from integration_tests/console-jsdom/__tests__/console.test.js rename to integration-tests/console-jsdom/__tests__/console.test.js diff --git a/integration_tests/console-jsdom/package.json b/integration-tests/console-jsdom/package.json similarity index 100% rename from integration_tests/console-jsdom/package.json rename to integration-tests/console-jsdom/package.json diff --git a/integration_tests/console/__tests__/console.test.js b/integration-tests/console/__tests__/console.test.js similarity index 100% rename from integration_tests/console/__tests__/console.test.js rename to integration-tests/console/__tests__/console.test.js diff --git a/integration_tests/console/package.json b/integration-tests/console/package.json similarity index 100% rename from integration_tests/console/package.json rename to integration-tests/console/package.json diff --git a/integration_tests/coverage-remapping/__tests__/covered-test.ts b/integration-tests/coverage-remapping/__tests__/covered-test.ts similarity index 100% rename from integration_tests/coverage-remapping/__tests__/covered-test.ts rename to integration-tests/coverage-remapping/__tests__/covered-test.ts diff --git a/integration_tests/coverage-remapping/covered.ts b/integration-tests/coverage-remapping/covered.ts similarity index 100% rename from integration_tests/coverage-remapping/covered.ts rename to integration-tests/coverage-remapping/covered.ts diff --git a/integration_tests/coverage-remapping/package.json b/integration-tests/coverage-remapping/package.json similarity index 100% rename from integration_tests/coverage-remapping/package.json rename to integration-tests/coverage-remapping/package.json diff --git a/integration_tests/coverage-remapping/typescript-preprocessor.js b/integration-tests/coverage-remapping/typescript-preprocessor.js similarity index 100% rename from integration_tests/coverage-remapping/typescript-preprocessor.js rename to integration-tests/coverage-remapping/typescript-preprocessor.js diff --git a/integration_tests/coverage-remapping/yarn.lock b/integration-tests/coverage-remapping/yarn.lock similarity index 100% rename from integration_tests/coverage-remapping/yarn.lock rename to integration-tests/coverage-remapping/yarn.lock diff --git a/integration_tests/coverage_report/.gitignore b/integration-tests/coverage-report/.gitignore similarity index 100% rename from integration_tests/coverage_report/.gitignore rename to integration-tests/coverage-report/.gitignore diff --git a/integration_tests/coverage_report/__mocks__/sum_dependency.js b/integration-tests/coverage-report/__mocks__/sum_dependency.js similarity index 100% rename from integration_tests/coverage_report/__mocks__/sum_dependency.js rename to integration-tests/coverage-report/__mocks__/sum_dependency.js diff --git a/integration_tests/coverage_report/__tests__/sum.test.js b/integration-tests/coverage-report/__tests__/sum.test.js similarity index 100% rename from integration_tests/coverage_report/__tests__/sum.test.js rename to integration-tests/coverage-report/__tests__/sum.test.js diff --git a/integration_tests/coverage_report/cached-duplicates/a/__tests__/identical.test.js b/integration-tests/coverage-report/cached-duplicates/a/__tests__/identical.test.js similarity index 100% rename from integration_tests/coverage_report/cached-duplicates/a/__tests__/identical.test.js rename to integration-tests/coverage-report/cached-duplicates/a/__tests__/identical.test.js diff --git a/integration_tests/coverage_report/cached-duplicates/a/identical.js b/integration-tests/coverage-report/cached-duplicates/a/identical.js similarity index 100% rename from integration_tests/coverage_report/cached-duplicates/a/identical.js rename to integration-tests/coverage-report/cached-duplicates/a/identical.js diff --git a/integration_tests/coverage_report/cached-duplicates/b/__tests__/identical.test.js b/integration-tests/coverage-report/cached-duplicates/b/__tests__/identical.test.js similarity index 100% rename from integration_tests/coverage_report/cached-duplicates/b/__tests__/identical.test.js rename to integration-tests/coverage-report/cached-duplicates/b/__tests__/identical.test.js diff --git a/integration_tests/coverage_report/cached-duplicates/b/identical.js b/integration-tests/coverage-report/cached-duplicates/b/identical.js similarity index 100% rename from integration_tests/coverage_report/cached-duplicates/b/identical.js rename to integration-tests/coverage-report/cached-duplicates/b/identical.js diff --git a/integration_tests/coverage_report/not-required-in-test-suite.js b/integration-tests/coverage-report/not-required-in-test-suite.js similarity index 100% rename from integration_tests/coverage_report/not-required-in-test-suite.js rename to integration-tests/coverage-report/not-required-in-test-suite.js diff --git a/integration_tests/coverage_report/other-file.js b/integration-tests/coverage-report/other-file.js similarity index 100% rename from integration_tests/coverage_report/other-file.js rename to integration-tests/coverage-report/other-file.js diff --git a/integration_tests/coverage_report/package.json b/integration-tests/coverage-report/package.json similarity index 100% rename from integration_tests/coverage_report/package.json rename to integration-tests/coverage-report/package.json diff --git a/integration_tests/coverage_report/setup.js b/integration-tests/coverage-report/setup.js similarity index 100% rename from integration_tests/coverage_report/setup.js rename to integration-tests/coverage-report/setup.js diff --git a/integration_tests/coverage_report/sum.js b/integration-tests/coverage-report/sum.js similarity index 100% rename from integration_tests/coverage_report/sum.js rename to integration-tests/coverage-report/sum.js diff --git a/integration_tests/coverage_report/sum_dependency.js b/integration-tests/coverage-report/sum_dependency.js similarity index 100% rename from integration_tests/coverage_report/sum_dependency.js rename to integration-tests/coverage-report/sum_dependency.js diff --git a/integration_tests/custom_matcher_stack_trace/__tests__/custom_matcher.test.js b/integration-tests/custom-matcher-stack-trace/__tests__/custom_matcher.test.js similarity index 100% rename from integration_tests/custom_matcher_stack_trace/__tests__/custom_matcher.test.js rename to integration-tests/custom-matcher-stack-trace/__tests__/custom_matcher.test.js diff --git a/integration_tests/custom_matcher_stack_trace/package.json b/integration-tests/custom-matcher-stack-trace/package.json similarity index 100% rename from integration_tests/custom_matcher_stack_trace/package.json rename to integration-tests/custom-matcher-stack-trace/package.json diff --git a/integration_tests/custom_reporters/__tests__/add.test.js b/integration-tests/custom-reporters/__tests__/add.test.js similarity index 100% rename from integration_tests/custom_reporters/__tests__/add.test.js rename to integration-tests/custom-reporters/__tests__/add.test.js diff --git a/integration_tests/custom_reporters/__tests__/add_fail.test.js b/integration-tests/custom-reporters/__tests__/add_fail.test.js similarity index 100% rename from integration_tests/custom_reporters/__tests__/add_fail.test.js rename to integration-tests/custom-reporters/__tests__/add_fail.test.js diff --git a/integration_tests/custom_reporters/add.js b/integration-tests/custom-reporters/add.js similarity index 100% rename from integration_tests/custom_reporters/add.js rename to integration-tests/custom-reporters/add.js diff --git a/integration_tests/custom_reporters/package.json b/integration-tests/custom-reporters/package.json similarity index 100% rename from integration_tests/custom_reporters/package.json rename to integration-tests/custom-reporters/package.json diff --git a/integration_tests/custom_reporters/reporters/incomplete_reporter.js b/integration-tests/custom-reporters/reporters/incomplete_reporter.js similarity index 100% rename from integration_tests/custom_reporters/reporters/incomplete_reporter.js rename to integration-tests/custom-reporters/reporters/incomplete_reporter.js diff --git a/integration_tests/custom_reporters/reporters/test_reporter.js b/integration-tests/custom-reporters/reporters/test_reporter.js similarity index 100% rename from integration_tests/custom_reporters/reporters/test_reporter.js rename to integration-tests/custom-reporters/reporters/test_reporter.js diff --git a/integration_tests/empty_suite_error/__tests__/empty_suite.test.js b/integration-tests/empty-suite-error/__tests__/empty_suite.test.js similarity index 100% rename from integration_tests/empty_suite_error/__tests__/empty_suite.test.js rename to integration-tests/empty-suite-error/__tests__/empty_suite.test.js diff --git a/integration_tests/empty_suite_error/package.json b/integration-tests/empty-suite-error/package.json similarity index 100% rename from integration_tests/empty_suite_error/package.json rename to integration-tests/empty-suite-error/package.json diff --git a/integration_tests/env-test/__tests__/env.test.js b/integration-tests/env-test/__tests__/env.test.js similarity index 100% rename from integration_tests/env-test/__tests__/env.test.js rename to integration-tests/env-test/__tests__/env.test.js diff --git a/integration_tests/env-test/package.json b/integration-tests/env-test/package.json similarity index 100% rename from integration_tests/env-test/package.json rename to integration-tests/env-test/package.json diff --git a/integration_tests/environmentOptions/__tests__/environmentOptions.test.js b/integration-tests/environmentOptions/__tests__/environmentOptions.test.js similarity index 100% rename from integration_tests/environmentOptions/__tests__/environmentOptions.test.js rename to integration-tests/environmentOptions/__tests__/environmentOptions.test.js diff --git a/integration_tests/environmentOptions/package.json b/integration-tests/environmentOptions/package.json similarity index 100% rename from integration_tests/environmentOptions/package.json rename to integration-tests/environmentOptions/package.json diff --git a/integration_tests/failures/__tests__/__snapshots__/snapshot.test.js.snap b/integration-tests/failures/__tests__/__snapshots__/snapshot.test.js.snap similarity index 100% rename from integration_tests/failures/__tests__/__snapshots__/snapshot.test.js.snap rename to integration-tests/failures/__tests__/__snapshots__/snapshot.test.js.snap diff --git a/integration_tests/failures/__tests__/assertion_count.test.js b/integration-tests/failures/__tests__/assertion_count.test.js similarity index 100% rename from integration_tests/failures/__tests__/assertion_count.test.js rename to integration-tests/failures/__tests__/assertion_count.test.js diff --git a/integration_tests/failures/__tests__/async_failures.test.js b/integration-tests/failures/__tests__/async_failures.test.js similarity index 100% rename from integration_tests/failures/__tests__/async_failures.test.js rename to integration-tests/failures/__tests__/async_failures.test.js diff --git a/integration_tests/failures/__tests__/node_assertion_error.test.js b/integration-tests/failures/__tests__/node_assertion_error.test.js similarity index 100% rename from integration_tests/failures/__tests__/node_assertion_error.test.js rename to integration-tests/failures/__tests__/node_assertion_error.test.js diff --git a/integration_tests/failures/__tests__/snapshot.test.js b/integration-tests/failures/__tests__/snapshot.test.js similarity index 100% rename from integration_tests/failures/__tests__/snapshot.test.js rename to integration-tests/failures/__tests__/snapshot.test.js diff --git a/integration_tests/failures/__tests__/test_macro.test.js b/integration-tests/failures/__tests__/test_macro.test.js similarity index 100% rename from integration_tests/failures/__tests__/test_macro.test.js rename to integration-tests/failures/__tests__/test_macro.test.js diff --git a/integration_tests/failures/__tests__/throw_number.test.js b/integration-tests/failures/__tests__/throw_number.test.js similarity index 100% rename from integration_tests/failures/__tests__/throw_number.test.js rename to integration-tests/failures/__tests__/throw_number.test.js diff --git a/integration_tests/failures/__tests__/throw_object.test.js b/integration-tests/failures/__tests__/throw_object.test.js similarity index 100% rename from integration_tests/failures/__tests__/throw_object.test.js rename to integration-tests/failures/__tests__/throw_object.test.js diff --git a/integration_tests/failures/__tests__/throw_string.test.js b/integration-tests/failures/__tests__/throw_string.test.js similarity index 100% rename from integration_tests/failures/__tests__/throw_string.test.js rename to integration-tests/failures/__tests__/throw_string.test.js diff --git a/integration_tests/failures/macros.js b/integration-tests/failures/macros.js similarity index 100% rename from integration_tests/failures/macros.js rename to integration-tests/failures/macros.js diff --git a/integration_tests/failures/package.json b/integration-tests/failures/package.json similarity index 100% rename from integration_tests/failures/package.json rename to integration-tests/failures/package.json diff --git a/integration_tests/global_setup/__tests__/setup1.test.js b/integration-tests/global-setup/__tests__/setup1.test.js similarity index 90% rename from integration_tests/global_setup/__tests__/setup1.test.js rename to integration-tests/global-setup/__tests__/setup1.test.js index 48b835b8fad4..45748982ba9b 100644 --- a/integration_tests/global_setup/__tests__/setup1.test.js +++ b/integration-tests/global-setup/__tests__/setup1.test.js @@ -10,7 +10,7 @@ const fs = require('fs'); const os = require('os'); const path = require('path'); -const DIR = path.join(os.tmpdir(), 'jest_global_setup'); +const DIR = path.join(os.tmpdir(), 'jest-global-setup'); test('should exist setup file', () => { const files = fs.readdirSync(DIR); diff --git a/integration_tests/global_setup/__tests__/setup2.test.js b/integration-tests/global-setup/__tests__/setup2.test.js similarity index 90% rename from integration_tests/global_setup/__tests__/setup2.test.js rename to integration-tests/global-setup/__tests__/setup2.test.js index 48b835b8fad4..45748982ba9b 100644 --- a/integration_tests/global_setup/__tests__/setup2.test.js +++ b/integration-tests/global-setup/__tests__/setup2.test.js @@ -10,7 +10,7 @@ const fs = require('fs'); const os = require('os'); const path = require('path'); -const DIR = path.join(os.tmpdir(), 'jest_global_setup'); +const DIR = path.join(os.tmpdir(), 'jest-global-setup'); test('should exist setup file', () => { const files = fs.readdirSync(DIR); diff --git a/integration_tests/global_setup/__tests__/setup3.test.js b/integration-tests/global-setup/__tests__/setup3.test.js similarity index 90% rename from integration_tests/global_setup/__tests__/setup3.test.js rename to integration-tests/global-setup/__tests__/setup3.test.js index 48b835b8fad4..45748982ba9b 100644 --- a/integration_tests/global_setup/__tests__/setup3.test.js +++ b/integration-tests/global-setup/__tests__/setup3.test.js @@ -10,7 +10,7 @@ const fs = require('fs'); const os = require('os'); const path = require('path'); -const DIR = path.join(os.tmpdir(), 'jest_global_setup'); +const DIR = path.join(os.tmpdir(), 'jest-global-setup'); test('should exist setup file', () => { const files = fs.readdirSync(DIR); diff --git a/integration_tests/global_setup/package.json b/integration-tests/global-setup/package.json similarity index 100% rename from integration_tests/global_setup/package.json rename to integration-tests/global-setup/package.json diff --git a/integration_tests/global_setup/setup.js b/integration-tests/global-setup/setup.js similarity index 91% rename from integration_tests/global_setup/setup.js rename to integration-tests/global-setup/setup.js index d7acfdf5f0e3..a1bccb1b815d 100644 --- a/integration_tests/global_setup/setup.js +++ b/integration-tests/global-setup/setup.js @@ -10,7 +10,7 @@ const mkdirp = require('mkdirp'); const os = require('os'); const path = require('path'); -const DIR = path.join(os.tmpdir(), 'jest_global_setup'); +const DIR = path.join(os.tmpdir(), 'jest-global-setup'); module.exports = function() { return new Promise((resolve, reject) => { diff --git a/integration_tests/global_teardown/__tests__/teardown1.test.js b/integration-tests/global-teardown/__tests__/teardown1.test.js similarity index 87% rename from integration_tests/global_teardown/__tests__/teardown1.test.js rename to integration-tests/global-teardown/__tests__/teardown1.test.js index a61e3352b8c8..3e05558051dd 100644 --- a/integration_tests/global_teardown/__tests__/teardown1.test.js +++ b/integration-tests/global-teardown/__tests__/teardown1.test.js @@ -10,7 +10,7 @@ const fs = require('fs'); const os = require('os'); const path = require('path'); -const DIR = path.join(os.tmpdir(), 'jest_global_teardown'); +const DIR = path.join(os.tmpdir(), 'jest-global-teardown'); test('should not exist teardown file', () => { const files = fs.readdirSync(DIR); diff --git a/integration_tests/global_teardown/__tests__/teardown2.test.js b/integration-tests/global-teardown/__tests__/teardown2.test.js similarity index 87% rename from integration_tests/global_teardown/__tests__/teardown2.test.js rename to integration-tests/global-teardown/__tests__/teardown2.test.js index a61e3352b8c8..3e05558051dd 100644 --- a/integration_tests/global_teardown/__tests__/teardown2.test.js +++ b/integration-tests/global-teardown/__tests__/teardown2.test.js @@ -10,7 +10,7 @@ const fs = require('fs'); const os = require('os'); const path = require('path'); -const DIR = path.join(os.tmpdir(), 'jest_global_teardown'); +const DIR = path.join(os.tmpdir(), 'jest-global-teardown'); test('should not exist teardown file', () => { const files = fs.readdirSync(DIR); diff --git a/integration_tests/global_teardown/__tests__/teardown3.test.js b/integration-tests/global-teardown/__tests__/teardown3.test.js similarity index 87% rename from integration_tests/global_teardown/__tests__/teardown3.test.js rename to integration-tests/global-teardown/__tests__/teardown3.test.js index a61e3352b8c8..3e05558051dd 100644 --- a/integration_tests/global_teardown/__tests__/teardown3.test.js +++ b/integration-tests/global-teardown/__tests__/teardown3.test.js @@ -10,7 +10,7 @@ const fs = require('fs'); const os = require('os'); const path = require('path'); -const DIR = path.join(os.tmpdir(), 'jest_global_teardown'); +const DIR = path.join(os.tmpdir(), 'jest-global-teardown'); test('should not exist teardown file', () => { const files = fs.readdirSync(DIR); diff --git a/integration_tests/global_teardown/package.json b/integration-tests/global-teardown/package.json similarity index 100% rename from integration_tests/global_teardown/package.json rename to integration-tests/global-teardown/package.json diff --git a/integration_tests/global_teardown/teardown.js b/integration-tests/global-teardown/teardown.js similarity index 90% rename from integration_tests/global_teardown/teardown.js rename to integration-tests/global-teardown/teardown.js index a4757d0d57dc..f7d00cb0576c 100644 --- a/integration_tests/global_teardown/teardown.js +++ b/integration-tests/global-teardown/teardown.js @@ -10,7 +10,7 @@ const mkdirp = require('mkdirp'); const os = require('os'); const path = require('path'); -const DIR = path.join(os.tmpdir(), 'jest_global_teardown'); +const DIR = path.join(os.tmpdir(), 'jest-global-teardown'); module.exports = function() { return new Promise((resolve, reject) => { diff --git a/integration_tests/jasmine_async/__tests__/async_test_fails.test.js b/integration-tests/jasmine-async/__tests__/async_test_fails.test.js similarity index 100% rename from integration_tests/jasmine_async/__tests__/async_test_fails.test.js rename to integration-tests/jasmine-async/__tests__/async_test_fails.test.js diff --git a/integration_tests/jasmine_async/__tests__/concurrent.test.js b/integration-tests/jasmine-async/__tests__/concurrent.test.js similarity index 100% rename from integration_tests/jasmine_async/__tests__/concurrent.test.js rename to integration-tests/jasmine-async/__tests__/concurrent.test.js diff --git a/integration_tests/jasmine_async/__tests__/generator.test.js b/integration-tests/jasmine-async/__tests__/generator.test.js similarity index 100% rename from integration_tests/jasmine_async/__tests__/generator.test.js rename to integration-tests/jasmine-async/__tests__/generator.test.js diff --git a/integration_tests/jasmine_async/__tests__/promise_after_all.test.js b/integration-tests/jasmine-async/__tests__/promise_after_all.test.js similarity index 100% rename from integration_tests/jasmine_async/__tests__/promise_after_all.test.js rename to integration-tests/jasmine-async/__tests__/promise_after_all.test.js diff --git a/integration_tests/jasmine_async/__tests__/promise_after_each.test.js b/integration-tests/jasmine-async/__tests__/promise_after_each.test.js similarity index 100% rename from integration_tests/jasmine_async/__tests__/promise_after_each.test.js rename to integration-tests/jasmine-async/__tests__/promise_after_each.test.js diff --git a/integration_tests/jasmine_async/__tests__/promise_before_all.test.js b/integration-tests/jasmine-async/__tests__/promise_before_all.test.js similarity index 100% rename from integration_tests/jasmine_async/__tests__/promise_before_all.test.js rename to integration-tests/jasmine-async/__tests__/promise_before_all.test.js diff --git a/integration_tests/jasmine_async/__tests__/promise_before_each.test.js b/integration-tests/jasmine-async/__tests__/promise_before_each.test.js similarity index 100% rename from integration_tests/jasmine_async/__tests__/promise_before_each.test.js rename to integration-tests/jasmine-async/__tests__/promise_before_each.test.js diff --git a/integration_tests/jasmine_async/__tests__/promise_fit.test.js b/integration-tests/jasmine-async/__tests__/promise_fit.test.js similarity index 100% rename from integration_tests/jasmine_async/__tests__/promise_fit.test.js rename to integration-tests/jasmine-async/__tests__/promise_fit.test.js diff --git a/integration_tests/jasmine_async/__tests__/promise_it.test.js b/integration-tests/jasmine-async/__tests__/promise_it.test.js similarity index 100% rename from integration_tests/jasmine_async/__tests__/promise_it.test.js rename to integration-tests/jasmine-async/__tests__/promise_it.test.js diff --git a/integration_tests/jasmine_async/__tests__/promise_xit.test.js b/integration-tests/jasmine-async/__tests__/promise_xit.test.js similarity index 100% rename from integration_tests/jasmine_async/__tests__/promise_xit.test.js rename to integration-tests/jasmine-async/__tests__/promise_xit.test.js diff --git a/integration_tests/jasmine_async/__tests__/returning_values.test.js b/integration-tests/jasmine-async/__tests__/returning_values.test.js similarity index 100% rename from integration_tests/jasmine_async/__tests__/returning_values.test.js rename to integration-tests/jasmine-async/__tests__/returning_values.test.js diff --git a/integration_tests/jasmine_async/package.json b/integration-tests/jasmine-async/package.json similarity index 100% rename from integration_tests/jasmine_async/package.json rename to integration-tests/jasmine-async/package.json diff --git a/integration_tests/json_reporter/__tests__/sum.test.js b/integration-tests/json-reporter/__tests__/sum.test.js similarity index 100% rename from integration_tests/json_reporter/__tests__/sum.test.js rename to integration-tests/json-reporter/__tests__/sum.test.js diff --git a/integration_tests/json_reporter/package.json b/integration-tests/json-reporter/package.json similarity index 100% rename from integration_tests/json_reporter/package.json rename to integration-tests/json-reporter/package.json diff --git a/integration_tests/json_reporter/sum.js b/integration-tests/json-reporter/sum.js similarity index 100% rename from integration_tests/json_reporter/sum.js rename to integration-tests/json-reporter/sum.js diff --git a/integration_tests/list_tests/__tests__/dummy.test.js b/integration-tests/list-tests/__tests__/dummy.test.js similarity index 100% rename from integration_tests/list_tests/__tests__/dummy.test.js rename to integration-tests/list-tests/__tests__/dummy.test.js diff --git a/integration_tests/list_tests/__tests__/other.test.js b/integration-tests/list-tests/__tests__/other.test.js similarity index 100% rename from integration_tests/list_tests/__tests__/other.test.js rename to integration-tests/list-tests/__tests__/other.test.js diff --git a/integration_tests/list_tests/package.json b/integration-tests/list-tests/package.json similarity index 100% rename from integration_tests/list_tests/package.json rename to integration-tests/list-tests/package.json diff --git a/integration_tests/location_in_results/__tests__/test.js b/integration-tests/location-in-results/__tests__/test.js similarity index 100% rename from integration_tests/location_in_results/__tests__/test.js rename to integration-tests/location-in-results/__tests__/test.js diff --git a/integration_tests/location_in_results/package.json b/integration-tests/location-in-results/package.json similarity index 100% rename from integration_tests/location_in_results/package.json rename to integration-tests/location-in-results/package.json diff --git a/integration_tests/mock-names/with-empty-mock-name-not-called/__tests__/index.js b/integration-tests/mock-names/with-empty-mock-name-not-called/__tests__/index.js similarity index 100% rename from integration_tests/mock-names/with-empty-mock-name-not-called/__tests__/index.js rename to integration-tests/mock-names/with-empty-mock-name-not-called/__tests__/index.js diff --git a/integration_tests/mock-names/with-empty-mock-name-not-called/index.js b/integration-tests/mock-names/with-empty-mock-name-not-called/index.js similarity index 100% rename from integration_tests/mock-names/with-empty-mock-name-not-called/index.js rename to integration-tests/mock-names/with-empty-mock-name-not-called/index.js diff --git a/integration_tests/mock-names/with-empty-mock-name-not-called/package.json b/integration-tests/mock-names/with-empty-mock-name-not-called/package.json similarity index 100% rename from integration_tests/mock-names/with-empty-mock-name-not-called/package.json rename to integration-tests/mock-names/with-empty-mock-name-not-called/package.json diff --git a/integration_tests/mock-names/with-empty-mock-name/__tests__/index.js b/integration-tests/mock-names/with-empty-mock-name/__tests__/index.js similarity index 100% rename from integration_tests/mock-names/with-empty-mock-name/__tests__/index.js rename to integration-tests/mock-names/with-empty-mock-name/__tests__/index.js diff --git a/integration_tests/mock-names/with-empty-mock-name/index.js b/integration-tests/mock-names/with-empty-mock-name/index.js similarity index 100% rename from integration_tests/mock-names/with-empty-mock-name/index.js rename to integration-tests/mock-names/with-empty-mock-name/index.js diff --git a/integration_tests/mock-names/with-empty-mock-name/package.json b/integration-tests/mock-names/with-empty-mock-name/package.json similarity index 100% rename from integration_tests/mock-names/with-empty-mock-name/package.json rename to integration-tests/mock-names/with-empty-mock-name/package.json diff --git a/integration_tests/mock-names/with-mock-name-call-times-fail/__tests__/index.js b/integration-tests/mock-names/with-mock-name-call-times-fail/__tests__/index.js similarity index 100% rename from integration_tests/mock-names/with-mock-name-call-times-fail/__tests__/index.js rename to integration-tests/mock-names/with-mock-name-call-times-fail/__tests__/index.js diff --git a/integration_tests/mock-names/with-mock-name-call-times-fail/index.js b/integration-tests/mock-names/with-mock-name-call-times-fail/index.js similarity index 100% rename from integration_tests/mock-names/with-mock-name-call-times-fail/index.js rename to integration-tests/mock-names/with-mock-name-call-times-fail/index.js diff --git a/integration_tests/mock-names/with-mock-name-call-times-fail/package.json b/integration-tests/mock-names/with-mock-name-call-times-fail/package.json similarity index 100% rename from integration_tests/mock-names/with-mock-name-call-times-fail/package.json rename to integration-tests/mock-names/with-mock-name-call-times-fail/package.json diff --git a/integration_tests/mock-names/with-mock-name-call-times-pass/__tests__/index.js b/integration-tests/mock-names/with-mock-name-call-times-pass/__tests__/index.js similarity index 100% rename from integration_tests/mock-names/with-mock-name-call-times-pass/__tests__/index.js rename to integration-tests/mock-names/with-mock-name-call-times-pass/__tests__/index.js diff --git a/integration_tests/mock-names/with-mock-name-call-times-pass/index.js b/integration-tests/mock-names/with-mock-name-call-times-pass/index.js similarity index 100% rename from integration_tests/mock-names/with-mock-name-call-times-pass/index.js rename to integration-tests/mock-names/with-mock-name-call-times-pass/index.js diff --git a/integration_tests/mock-names/with-mock-name-call-times-pass/package.json b/integration-tests/mock-names/with-mock-name-call-times-pass/package.json similarity index 100% rename from integration_tests/mock-names/with-mock-name-call-times-pass/package.json rename to integration-tests/mock-names/with-mock-name-call-times-pass/package.json diff --git a/integration_tests/mock-names/with-mock-name-not-called-fail/__tests__/index.js b/integration-tests/mock-names/with-mock-name-not-called-fail/__tests__/index.js similarity index 100% rename from integration_tests/mock-names/with-mock-name-not-called-fail/__tests__/index.js rename to integration-tests/mock-names/with-mock-name-not-called-fail/__tests__/index.js diff --git a/integration_tests/mock-names/with-mock-name-not-called-fail/index.js b/integration-tests/mock-names/with-mock-name-not-called-fail/index.js similarity index 100% rename from integration_tests/mock-names/with-mock-name-not-called-fail/index.js rename to integration-tests/mock-names/with-mock-name-not-called-fail/index.js diff --git a/integration_tests/mock-names/with-mock-name-not-called-fail/package.json b/integration-tests/mock-names/with-mock-name-not-called-fail/package.json similarity index 100% rename from integration_tests/mock-names/with-mock-name-not-called-fail/package.json rename to integration-tests/mock-names/with-mock-name-not-called-fail/package.json diff --git a/integration_tests/mock-names/with-mock-name-not-called-pass/__tests__/index.js b/integration-tests/mock-names/with-mock-name-not-called-pass/__tests__/index.js similarity index 100% rename from integration_tests/mock-names/with-mock-name-not-called-pass/__tests__/index.js rename to integration-tests/mock-names/with-mock-name-not-called-pass/__tests__/index.js diff --git a/integration_tests/mock-names/with-mock-name-not-called-pass/index.js b/integration-tests/mock-names/with-mock-name-not-called-pass/index.js similarity index 100% rename from integration_tests/mock-names/with-mock-name-not-called-pass/index.js rename to integration-tests/mock-names/with-mock-name-not-called-pass/index.js diff --git a/integration_tests/mock-names/with-mock-name-not-called-pass/package.json b/integration-tests/mock-names/with-mock-name-not-called-pass/package.json similarity index 100% rename from integration_tests/mock-names/with-mock-name-not-called-pass/package.json rename to integration-tests/mock-names/with-mock-name-not-called-pass/package.json diff --git a/integration_tests/mock-names/with-mock-name-not-called/__tests__/index.js b/integration-tests/mock-names/with-mock-name-not-called/__tests__/index.js similarity index 100% rename from integration_tests/mock-names/with-mock-name-not-called/__tests__/index.js rename to integration-tests/mock-names/with-mock-name-not-called/__tests__/index.js diff --git a/integration_tests/mock-names/with-mock-name-not-called/index.js b/integration-tests/mock-names/with-mock-name-not-called/index.js similarity index 100% rename from integration_tests/mock-names/with-mock-name-not-called/index.js rename to integration-tests/mock-names/with-mock-name-not-called/index.js diff --git a/integration_tests/mock-names/with-mock-name-not-called/package.json b/integration-tests/mock-names/with-mock-name-not-called/package.json similarity index 100% rename from integration_tests/mock-names/with-mock-name-not-called/package.json rename to integration-tests/mock-names/with-mock-name-not-called/package.json diff --git a/integration_tests/mock-names/with-mock-name/__tests__/index.js b/integration-tests/mock-names/with-mock-name/__tests__/index.js similarity index 100% rename from integration_tests/mock-names/with-mock-name/__tests__/index.js rename to integration-tests/mock-names/with-mock-name/__tests__/index.js diff --git a/integration_tests/mock-names/with-mock-name/index.js b/integration-tests/mock-names/with-mock-name/index.js similarity index 100% rename from integration_tests/mock-names/with-mock-name/index.js rename to integration-tests/mock-names/with-mock-name/index.js diff --git a/integration_tests/mock-names/with-mock-name/package.json b/integration-tests/mock-names/with-mock-name/package.json similarity index 100% rename from integration_tests/mock-names/with-mock-name/package.json rename to integration-tests/mock-names/with-mock-name/package.json diff --git a/integration_tests/mock-names/without-mock-name-not-called/__tests__/index.js b/integration-tests/mock-names/without-mock-name-not-called/__tests__/index.js similarity index 100% rename from integration_tests/mock-names/without-mock-name-not-called/__tests__/index.js rename to integration-tests/mock-names/without-mock-name-not-called/__tests__/index.js diff --git a/integration_tests/mock-names/without-mock-name-not-called/index.js b/integration-tests/mock-names/without-mock-name-not-called/index.js similarity index 100% rename from integration_tests/mock-names/without-mock-name-not-called/index.js rename to integration-tests/mock-names/without-mock-name-not-called/index.js diff --git a/integration_tests/mock-names/without-mock-name-not-called/package.json b/integration-tests/mock-names/without-mock-name-not-called/package.json similarity index 100% rename from integration_tests/mock-names/without-mock-name-not-called/package.json rename to integration-tests/mock-names/without-mock-name-not-called/package.json diff --git a/integration_tests/mock-names/without-mock-name/__tests__/index.js b/integration-tests/mock-names/without-mock-name/__tests__/index.js similarity index 100% rename from integration_tests/mock-names/without-mock-name/__tests__/index.js rename to integration-tests/mock-names/without-mock-name/__tests__/index.js diff --git a/integration_tests/mock-names/without-mock-name/index.js b/integration-tests/mock-names/without-mock-name/index.js similarity index 100% rename from integration_tests/mock-names/without-mock-name/index.js rename to integration-tests/mock-names/without-mock-name/index.js diff --git a/integration_tests/mock-names/without-mock-name/package.json b/integration-tests/mock-names/without-mock-name/package.json similarity index 100% rename from integration_tests/mock-names/without-mock-name/package.json rename to integration-tests/mock-names/without-mock-name/package.json diff --git a/integration_tests/module_name_mapper_correct_config/__mocks__/style_mock.js b/integration-tests/module-name-mapper-correct-config/__mocks__/style_mock.js similarity index 100% rename from integration_tests/module_name_mapper_correct_config/__mocks__/style_mock.js rename to integration-tests/module-name-mapper-correct-config/__mocks__/style_mock.js diff --git a/integration_tests/module_name_mapper_correct_config/__tests__/index.js b/integration-tests/module-name-mapper-correct-config/__tests__/index.js similarity index 100% rename from integration_tests/module_name_mapper_correct_config/__tests__/index.js rename to integration-tests/module-name-mapper-correct-config/__tests__/index.js diff --git a/integration_tests/module_name_mapper_correct_config/index.js b/integration-tests/module-name-mapper-correct-config/index.js similarity index 100% rename from integration_tests/module_name_mapper_correct_config/index.js rename to integration-tests/module-name-mapper-correct-config/index.js diff --git a/integration_tests/module_name_mapper_correct_config/package.json b/integration-tests/module-name-mapper-correct-config/package.json similarity index 100% rename from integration_tests/module_name_mapper_correct_config/package.json rename to integration-tests/module-name-mapper-correct-config/package.json diff --git a/integration_tests/module_name_mapper_correct_config/style.css b/integration-tests/module-name-mapper-correct-config/style.css similarity index 100% rename from integration_tests/module_name_mapper_correct_config/style.css rename to integration-tests/module-name-mapper-correct-config/style.css diff --git a/integration_tests/module_name_mapper_wrong_config/__tests__/index.js b/integration-tests/module-name-mapper-wrong-config/__tests__/index.js similarity index 100% rename from integration_tests/module_name_mapper_wrong_config/__tests__/index.js rename to integration-tests/module-name-mapper-wrong-config/__tests__/index.js diff --git a/integration_tests/module_name_mapper_wrong_config/index.js b/integration-tests/module-name-mapper-wrong-config/index.js similarity index 100% rename from integration_tests/module_name_mapper_wrong_config/index.js rename to integration-tests/module-name-mapper-wrong-config/index.js diff --git a/integration_tests/module_name_mapper_wrong_config/package.json b/integration-tests/module-name-mapper-wrong-config/package.json similarity index 100% rename from integration_tests/module_name_mapper_wrong_config/package.json rename to integration-tests/module-name-mapper-wrong-config/package.json diff --git a/integration_tests/module_name_mapper_wrong_config/style.css b/integration-tests/module-name-mapper-wrong-config/style.css similarity index 100% rename from integration_tests/module_name_mapper_wrong_config/style.css rename to integration-tests/module-name-mapper-wrong-config/style.css diff --git a/integration_tests/native-async-mock/.babelrc b/integration-tests/native-async-mock/.babelrc similarity index 100% rename from integration_tests/native-async-mock/.babelrc rename to integration-tests/native-async-mock/.babelrc diff --git a/integration_tests/native-async-mock/__tests__/native_async_mock.test.js b/integration-tests/native-async-mock/__tests__/native_async_mock.test.js similarity index 100% rename from integration_tests/native-async-mock/__tests__/native_async_mock.test.js rename to integration-tests/native-async-mock/__tests__/native_async_mock.test.js diff --git a/integration_tests/native-async-mock/native.js b/integration-tests/native-async-mock/native.js similarity index 100% rename from integration_tests/native-async-mock/native.js rename to integration-tests/native-async-mock/native.js diff --git a/integration_tests/native-async-mock/package.json b/integration-tests/native-async-mock/package.json similarity index 100% rename from integration_tests/native-async-mock/package.json rename to integration-tests/native-async-mock/package.json diff --git a/integration_tests/native-async-mock/yarn.lock b/integration-tests/native-async-mock/yarn.lock similarity index 100% rename from integration_tests/native-async-mock/yarn.lock rename to integration-tests/native-async-mock/yarn.lock diff --git a/integration_tests/nested_event_loop/__tests__/nested_event_loop.test.js b/integration-tests/nested-event-loop/__tests__/nested_event_loop.test.js similarity index 100% rename from integration_tests/nested_event_loop/__tests__/nested_event_loop.test.js rename to integration-tests/nested-event-loop/__tests__/nested_event_loop.test.js diff --git a/integration_tests/nested_event_loop/package.json b/integration-tests/nested-event-loop/package.json similarity index 100% rename from integration_tests/nested_event_loop/package.json rename to integration-tests/nested-event-loop/package.json diff --git a/integration_tests/no_tests_found-test/package.json b/integration-tests/no-tests-found-test/package.json similarity index 100% rename from integration_tests/no_tests_found-test/package.json rename to integration-tests/no-tests-found-test/package.json diff --git a/integration_tests/node_path/__tests__/node_path.test.js b/integration-tests/node-path/__tests__/node_path.test.js similarity index 100% rename from integration_tests/node_path/__tests__/node_path.test.js rename to integration-tests/node-path/__tests__/node_path.test.js diff --git a/integration_tests/node_path/package.json b/integration-tests/node-path/package.json similarity index 100% rename from integration_tests/node_path/package.json rename to integration-tests/node-path/package.json diff --git a/integration_tests/node_path/src/path/file.js b/integration-tests/node-path/src/path/file.js similarity index 100% rename from integration_tests/node_path/src/path/file.js rename to integration-tests/node-path/src/path/file.js diff --git a/integration_tests/override-globals/__tests__/index.js b/integration-tests/override-globals/__tests__/index.js similarity index 100% rename from integration_tests/override-globals/__tests__/index.js rename to integration-tests/override-globals/__tests__/index.js diff --git a/integration_tests/override-globals/index.js b/integration-tests/override-globals/index.js similarity index 100% rename from integration_tests/override-globals/index.js rename to integration-tests/override-globals/index.js diff --git a/integration_tests/override-globals/package.json b/integration-tests/override-globals/package.json similarity index 100% rename from integration_tests/override-globals/package.json rename to integration-tests/override-globals/package.json diff --git a/integration_tests/package.json b/integration-tests/package.json similarity index 100% rename from integration_tests/package.json rename to integration-tests/package.json diff --git a/integration_tests/regex-(char-in-path/__tests__/regex_(char_in_path.test.js b/integration-tests/regex-(char-in-path/__tests__/regex_(char_in_path.test.js similarity index 100% rename from integration_tests/regex-(char-in-path/__tests__/regex_(char_in_path.test.js rename to integration-tests/regex-(char-in-path/__tests__/regex_(char_in_path.test.js diff --git a/integration_tests/regex-(char-in-path/package.json b/integration-tests/regex-(char-in-path/package.json similarity index 100% rename from integration_tests/regex-(char-in-path/package.json rename to integration-tests/regex-(char-in-path/package.json diff --git a/integration_tests/resolve/__tests__/resolve.test.js b/integration-tests/resolve/__tests__/resolve.test.js similarity index 100% rename from integration_tests/resolve/__tests__/resolve.test.js rename to integration-tests/resolve/__tests__/resolve.test.js diff --git a/integration_tests/resolve/package.json b/integration-tests/resolve/package.json similarity index 100% rename from integration_tests/resolve/package.json rename to integration-tests/resolve/package.json diff --git a/integration_tests/resolve/test1.android.js b/integration-tests/resolve/test1.android.js similarity index 100% rename from integration_tests/resolve/test1.android.js rename to integration-tests/resolve/test1.android.js diff --git a/integration_tests/resolve/test1.js b/integration-tests/resolve/test1.js similarity index 100% rename from integration_tests/resolve/test1.js rename to integration-tests/resolve/test1.js diff --git a/integration_tests/resolve/test1.json b/integration-tests/resolve/test1.json similarity index 100% rename from integration_tests/resolve/test1.json rename to integration-tests/resolve/test1.json diff --git a/integration_tests/resolve/test1.native.js b/integration-tests/resolve/test1.native.js similarity index 100% rename from integration_tests/resolve/test1.native.js rename to integration-tests/resolve/test1.native.js diff --git a/integration_tests/resolve/test2.js b/integration-tests/resolve/test2.js similarity index 100% rename from integration_tests/resolve/test2.js rename to integration-tests/resolve/test2.js diff --git a/integration_tests/resolve/test2.json b/integration-tests/resolve/test2.json similarity index 100% rename from integration_tests/resolve/test2.json rename to integration-tests/resolve/test2.json diff --git a/integration_tests/resolve/test2.native.js b/integration-tests/resolve/test2.native.js similarity index 100% rename from integration_tests/resolve/test2.native.js rename to integration-tests/resolve/test2.native.js diff --git a/integration_tests/resolve/test3.js b/integration-tests/resolve/test3.js similarity index 100% rename from integration_tests/resolve/test3.js rename to integration-tests/resolve/test3.js diff --git a/integration_tests/resolve/test3.json b/integration-tests/resolve/test3.json similarity index 100% rename from integration_tests/resolve/test3.json rename to integration-tests/resolve/test3.json diff --git a/integration_tests/resolve/test4.json b/integration-tests/resolve/test4.json similarity index 100% rename from integration_tests/resolve/test4.json rename to integration-tests/resolve/test4.json diff --git a/integration_tests/runJest.js b/integration-tests/runJest.js similarity index 100% rename from integration_tests/runJest.js rename to integration-tests/runJest.js diff --git a/integration_tests/runtime-internal-module-registry/__mocks__/fs.js b/integration-tests/runtime-internal-module-registry/__mocks__/fs.js similarity index 100% rename from integration_tests/runtime-internal-module-registry/__mocks__/fs.js rename to integration-tests/runtime-internal-module-registry/__mocks__/fs.js diff --git a/integration_tests/runtime-internal-module-registry/__tests__/runtime_internal_module_registry.test.js b/integration-tests/runtime-internal-module-registry/__tests__/runtime_internal_module_registry.test.js similarity index 100% rename from integration_tests/runtime-internal-module-registry/__tests__/runtime_internal_module_registry.test.js rename to integration-tests/runtime-internal-module-registry/__tests__/runtime_internal_module_registry.test.js diff --git a/integration_tests/runtime-internal-module-registry/package.json b/integration-tests/runtime-internal-module-registry/package.json similarity index 100% rename from integration_tests/runtime-internal-module-registry/package.json rename to integration-tests/runtime-internal-module-registry/package.json diff --git a/integration_tests/set_immediate/__tests__/set_immediate.test.js b/integration-tests/set-immediate/__tests__/set_immediate.test.js similarity index 100% rename from integration_tests/set_immediate/__tests__/set_immediate.test.js rename to integration-tests/set-immediate/__tests__/set_immediate.test.js diff --git a/integration_tests/set_immediate/package.json b/integration-tests/set-immediate/package.json similarity index 100% rename from integration_tests/set_immediate/package.json rename to integration-tests/set-immediate/package.json diff --git a/integration_tests/setup_test_framework_script_file_cli_config/__tests__/runner_patch.test.js b/integration-tests/setup-test-framework-script-file-cli-config/__tests__/runner_patch.test.js similarity index 100% rename from integration_tests/setup_test_framework_script_file_cli_config/__tests__/runner_patch.test.js rename to integration-tests/setup-test-framework-script-file-cli-config/__tests__/runner_patch.test.js diff --git a/integration_tests/setup_test_framework_script_file_cli_config/__tests__/test1.test.js b/integration-tests/setup-test-framework-script-file-cli-config/__tests__/test1.test.js similarity index 100% rename from integration_tests/setup_test_framework_script_file_cli_config/__tests__/test1.test.js rename to integration-tests/setup-test-framework-script-file-cli-config/__tests__/test1.test.js diff --git a/integration_tests/setup_test_framework_script_file_cli_config/__tests__/test2.test.js b/integration-tests/setup-test-framework-script-file-cli-config/__tests__/test2.test.js similarity index 100% rename from integration_tests/setup_test_framework_script_file_cli_config/__tests__/test2.test.js rename to integration-tests/setup-test-framework-script-file-cli-config/__tests__/test2.test.js diff --git a/integration_tests/setup_test_framework_script_file_cli_config/package.json b/integration-tests/setup-test-framework-script-file-cli-config/package.json similarity index 100% rename from integration_tests/setup_test_framework_script_file_cli_config/package.json rename to integration-tests/setup-test-framework-script-file-cli-config/package.json diff --git a/integration_tests/setup_test_framework_script_file_cli_config/setup1.js b/integration-tests/setup-test-framework-script-file-cli-config/setup1.js similarity index 100% rename from integration_tests/setup_test_framework_script_file_cli_config/setup1.js rename to integration-tests/setup-test-framework-script-file-cli-config/setup1.js diff --git a/integration_tests/setup_test_framework_script_file_cli_config/setup_hooks_into_runner.js b/integration-tests/setup-test-framework-script-file-cli-config/setup_hooks_into_runner.js similarity index 100% rename from integration_tests/setup_test_framework_script_file_cli_config/setup_hooks_into_runner.js rename to integration-tests/setup-test-framework-script-file-cli-config/setup_hooks_into_runner.js diff --git a/integration_tests/snapshot-escape/__tests__/snapshot.test.js b/integration-tests/snapshot-escape/__tests__/snapshot.test.js similarity index 100% rename from integration_tests/snapshot-escape/__tests__/snapshot.test.js rename to integration-tests/snapshot-escape/__tests__/snapshot.test.js diff --git a/integration_tests/snapshot-escape/__tests__/snapshot_escape_regex.js b/integration-tests/snapshot-escape/__tests__/snapshot_escape_regex.js similarity index 100% rename from integration_tests/snapshot-escape/__tests__/snapshot_escape_regex.js rename to integration-tests/snapshot-escape/__tests__/snapshot_escape_regex.js diff --git a/integration_tests/snapshot-escape/__tests__/snapshot_escape_substitution.test.js b/integration-tests/snapshot-escape/__tests__/snapshot_escape_substitution.test.js similarity index 100% rename from integration_tests/snapshot-escape/__tests__/snapshot_escape_substitution.test.js rename to integration-tests/snapshot-escape/__tests__/snapshot_escape_substitution.test.js diff --git a/integration_tests/snapshot-escape/package.json b/integration-tests/snapshot-escape/package.json similarity index 100% rename from integration_tests/snapshot-escape/package.json rename to integration-tests/snapshot-escape/package.json diff --git a/integration_tests/snapshot-serializers/__tests__/snapshot.test.js b/integration-tests/snapshot-serializers/__tests__/snapshot.test.js similarity index 100% rename from integration_tests/snapshot-serializers/__tests__/snapshot.test.js rename to integration-tests/snapshot-serializers/__tests__/snapshot.test.js diff --git a/integration_tests/snapshot-serializers/package.json b/integration-tests/snapshot-serializers/package.json similarity index 100% rename from integration_tests/snapshot-serializers/package.json rename to integration-tests/snapshot-serializers/package.json diff --git a/integration_tests/snapshot-serializers/plugins/bar.js b/integration-tests/snapshot-serializers/plugins/bar.js similarity index 100% rename from integration_tests/snapshot-serializers/plugins/bar.js rename to integration-tests/snapshot-serializers/plugins/bar.js diff --git a/integration_tests/snapshot-serializers/plugins/foo/index.js b/integration-tests/snapshot-serializers/plugins/foo/index.js similarity index 100% rename from integration_tests/snapshot-serializers/plugins/foo/index.js rename to integration-tests/snapshot-serializers/plugins/foo/index.js diff --git a/integration_tests/snapshot-serializers/transformer.js b/integration-tests/snapshot-serializers/transformer.js similarity index 100% rename from integration_tests/snapshot-serializers/transformer.js rename to integration-tests/snapshot-serializers/transformer.js diff --git a/integration_tests/snapshot-serializers/utils.js b/integration-tests/snapshot-serializers/utils.js similarity index 100% rename from integration_tests/snapshot-serializers/utils.js rename to integration-tests/snapshot-serializers/utils.js diff --git a/integration_tests/snapshot/__tests__/second_snapshot.test.js b/integration-tests/snapshot/__tests__/second_snapshot.test.js similarity index 100% rename from integration_tests/snapshot/__tests__/second_snapshot.test.js rename to integration-tests/snapshot/__tests__/second_snapshot.test.js diff --git a/integration_tests/snapshot/__tests__/snapshot.test.js b/integration-tests/snapshot/__tests__/snapshot.test.js similarity index 100% rename from integration_tests/snapshot/__tests__/snapshot.test.js rename to integration-tests/snapshot/__tests__/snapshot.test.js diff --git a/integration_tests/snapshot/package.json b/integration-tests/snapshot/package.json similarity index 100% rename from integration_tests/snapshot/package.json rename to integration-tests/snapshot/package.json diff --git a/integration_tests/stack_trace_no_captureStackTrace/__tests__/runtime_error.test.js b/integration-tests/stack-trace-no-capture-stack-trace/__tests__/runtime_error.test.js similarity index 100% rename from integration_tests/stack_trace_no_captureStackTrace/__tests__/runtime_error.test.js rename to integration-tests/stack-trace-no-capture-stack-trace/__tests__/runtime_error.test.js diff --git a/integration_tests/stack_trace/package.json b/integration-tests/stack-trace-no-capture-stack-trace/package.json similarity index 100% rename from integration_tests/stack_trace/package.json rename to integration-tests/stack-trace-no-capture-stack-trace/package.json diff --git a/integration_tests/stack_trace/__tests__/runtime_error.test.js b/integration-tests/stack-trace/__tests__/runtime_error.test.js similarity index 100% rename from integration_tests/stack_trace/__tests__/runtime_error.test.js rename to integration-tests/stack-trace/__tests__/runtime_error.test.js diff --git a/integration_tests/stack_trace/__tests__/stack_trace.test.js b/integration-tests/stack-trace/__tests__/stack_trace.test.js similarity index 100% rename from integration_tests/stack_trace/__tests__/stack_trace.test.js rename to integration-tests/stack-trace/__tests__/stack_trace.test.js diff --git a/integration_tests/stack_trace/__tests__/stack_trace_without_message.test.js b/integration-tests/stack-trace/__tests__/stack_trace_without_message.test.js similarity index 100% rename from integration_tests/stack_trace/__tests__/stack_trace_without_message.test.js rename to integration-tests/stack-trace/__tests__/stack_trace_without_message.test.js diff --git a/integration_tests/stack_trace/__tests__/test_error.test.js b/integration-tests/stack-trace/__tests__/test_error.test.js similarity index 100% rename from integration_tests/stack_trace/__tests__/test_error.test.js rename to integration-tests/stack-trace/__tests__/test_error.test.js diff --git a/integration_tests/stack_trace_no_captureStackTrace/package.json b/integration-tests/stack-trace/package.json similarity index 100% rename from integration_tests/stack_trace_no_captureStackTrace/package.json rename to integration-tests/stack-trace/package.json diff --git a/integration_tests/test-environment-async/__tests__/custom.test.js b/integration-tests/test-environment-async/__tests__/custom.test.js similarity index 100% rename from integration_tests/test-environment-async/__tests__/custom.test.js rename to integration-tests/test-environment-async/__tests__/custom.test.js diff --git a/integration_tests/test-environment-async/package.json b/integration-tests/test-environment-async/package.json similarity index 100% rename from integration_tests/test-environment-async/package.json rename to integration-tests/test-environment-async/package.json diff --git a/integration_tests/test-environment-async/test-environment.js b/integration-tests/test-environment-async/test-environment.js similarity index 100% rename from integration_tests/test-environment-async/test-environment.js rename to integration-tests/test-environment-async/test-environment.js diff --git a/integration_tests/test-environment/__tests__/env.test.js b/integration-tests/test-environment/__tests__/env.test.js similarity index 100% rename from integration_tests/test-environment/__tests__/env.test.js rename to integration-tests/test-environment/__tests__/env.test.js diff --git a/integration_tests/test-environment/package.json b/integration-tests/test-environment/package.json similarity index 100% rename from integration_tests/test-environment/package.json rename to integration-tests/test-environment/package.json diff --git a/integration_tests/test-in-root/foo.js b/integration-tests/test-in-root/foo.js similarity index 100% rename from integration_tests/test-in-root/foo.js rename to integration-tests/test-in-root/foo.js diff --git a/integration_tests/test-in-root/footest.js b/integration-tests/test-in-root/footest.js similarity index 100% rename from integration_tests/test-in-root/footest.js rename to integration-tests/test-in-root/footest.js diff --git a/integration_tests/test-in-root/package.json b/integration-tests/test-in-root/package.json similarity index 100% rename from integration_tests/test-in-root/package.json rename to integration-tests/test-in-root/package.json diff --git a/integration_tests/test-in-root/spec.js b/integration-tests/test-in-root/spec.js similarity index 100% rename from integration_tests/test-in-root/spec.js rename to integration-tests/test-in-root/spec.js diff --git a/integration_tests/test-in-root/test.js b/integration-tests/test-in-root/test.js similarity index 100% rename from integration_tests/test-in-root/test.js rename to integration-tests/test-in-root/test.js diff --git a/integration_tests/testNamePattern/__tests__/test_name_pattern.test.js b/integration-tests/testNamePattern/__tests__/test_name_pattern.test.js similarity index 100% rename from integration_tests/testNamePattern/__tests__/test_name_pattern.test.js rename to integration-tests/testNamePattern/__tests__/test_name_pattern.test.js diff --git a/integration_tests/testNamePattern/package.json b/integration-tests/testNamePattern/package.json similarity index 100% rename from integration_tests/testNamePattern/package.json rename to integration-tests/testNamePattern/package.json diff --git a/integration_tests/testResultsProcessor/__tests__/processor.test.js b/integration-tests/testResultsProcessor/__tests__/processor.test.js similarity index 100% rename from integration_tests/testResultsProcessor/__tests__/processor.test.js rename to integration-tests/testResultsProcessor/__tests__/processor.test.js diff --git a/integration_tests/testResultsProcessor/package.json b/integration-tests/testResultsProcessor/package.json similarity index 100% rename from integration_tests/testResultsProcessor/package.json rename to integration-tests/testResultsProcessor/package.json diff --git a/integration_tests/testResultsProcessor/processor.js b/integration-tests/testResultsProcessor/processor.js similarity index 100% rename from integration_tests/testResultsProcessor/processor.js rename to integration-tests/testResultsProcessor/processor.js diff --git a/integration_tests/timer-resetMocks/after_resetAllMocks/index.js b/integration-tests/timer-reset-mocks/after-reset-all-mocks/index.js similarity index 100% rename from integration_tests/timer-resetMocks/after_resetAllMocks/index.js rename to integration-tests/timer-reset-mocks/after-reset-all-mocks/index.js diff --git a/integration_tests/timer-resetMocks/after_resetAllMocks/package.json b/integration-tests/timer-reset-mocks/after-reset-all-mocks/package.json similarity index 100% rename from integration_tests/timer-resetMocks/after_resetAllMocks/package.json rename to integration-tests/timer-reset-mocks/after-reset-all-mocks/package.json diff --git a/integration_tests/timer-resetMocks/after_resetAllMocks/timer_and_mock.test.js b/integration-tests/timer-reset-mocks/after-reset-all-mocks/timer_and_mock.test.js similarity index 100% rename from integration_tests/timer-resetMocks/after_resetAllMocks/timer_and_mock.test.js rename to integration-tests/timer-reset-mocks/after-reset-all-mocks/timer_and_mock.test.js diff --git a/integration_tests/timer-resetMocks/with_resetMocks/index.js b/integration-tests/timer-reset-mocks/with-reset-mocks/index.js similarity index 100% rename from integration_tests/timer-resetMocks/with_resetMocks/index.js rename to integration-tests/timer-reset-mocks/with-reset-mocks/index.js diff --git a/integration_tests/timer-resetMocks/with_resetMocks/package.json b/integration-tests/timer-reset-mocks/with-reset-mocks/package.json similarity index 100% rename from integration_tests/timer-resetMocks/with_resetMocks/package.json rename to integration-tests/timer-reset-mocks/with-reset-mocks/package.json diff --git a/integration_tests/timer-resetMocks/with_resetMocks/timer_with_mock.test.js b/integration-tests/timer-reset-mocks/with-reset-mocks/timer_with_mock.test.js similarity index 100% rename from integration_tests/timer-resetMocks/with_resetMocks/timer_with_mock.test.js rename to integration-tests/timer-reset-mocks/with-reset-mocks/timer_with_mock.test.js diff --git a/integration_tests/timer_use_real_timers/__tests__/use_real_timers.test.js b/integration-tests/timer-use-real-timers/__tests__/use_real_timers.test.js similarity index 100% rename from integration_tests/timer_use_real_timers/__tests__/use_real_timers.test.js rename to integration-tests/timer-use-real-timers/__tests__/use_real_timers.test.js diff --git a/integration_tests/timer_use_real_timers/package.json b/integration-tests/timer-use-real-timers/package.json similarity index 100% rename from integration_tests/timer_use_real_timers/package.json rename to integration-tests/timer-use-real-timers/package.json diff --git a/integration_tests/toMatchSnapshot/package.json b/integration-tests/toMatchSnapshot/package.json similarity index 100% rename from integration_tests/toMatchSnapshot/package.json rename to integration-tests/toMatchSnapshot/package.json diff --git a/integration_tests/toThrowErrorMatchingSnapshot/package.json b/integration-tests/toThrowErrorMatchingSnapshot/package.json similarity index 100% rename from integration_tests/toThrowErrorMatchingSnapshot/package.json rename to integration-tests/toThrowErrorMatchingSnapshot/package.json diff --git a/integration_tests/transform-linked-modules/__tests__/linked-modules.test.js b/integration-tests/transform-linked-modules/__tests__/linked-modules.test.js similarity index 100% rename from integration_tests/transform-linked-modules/__tests__/linked-modules.test.js rename to integration-tests/transform-linked-modules/__tests__/linked-modules.test.js diff --git a/integration_tests/transform-linked-modules/ignored/normal.js b/integration-tests/transform-linked-modules/ignored/normal.js similarity index 100% rename from integration_tests/transform-linked-modules/ignored/normal.js rename to integration-tests/transform-linked-modules/ignored/normal.js diff --git a/integration_tests/transform-linked-modules/ignored/symlink.js b/integration-tests/transform-linked-modules/ignored/symlink.js similarity index 100% rename from integration_tests/transform-linked-modules/ignored/symlink.js rename to integration-tests/transform-linked-modules/ignored/symlink.js diff --git a/integration_tests/transform-linked-modules/package.json b/integration-tests/transform-linked-modules/package.json similarity index 100% rename from integration_tests/transform-linked-modules/package.json rename to integration-tests/transform-linked-modules/package.json diff --git a/integration_tests/transform-linked-modules/package/index.js b/integration-tests/transform-linked-modules/package/index.js similarity index 100% rename from integration_tests/transform-linked-modules/package/index.js rename to integration-tests/transform-linked-modules/package/index.js diff --git a/integration_tests/transform-linked-modules/preprocessor.js b/integration-tests/transform-linked-modules/preprocessor.js similarity index 100% rename from integration_tests/transform-linked-modules/preprocessor.js rename to integration-tests/transform-linked-modules/preprocessor.js diff --git a/integration_tests/transform/babel-jest/.babelrc b/integration-tests/transform/babel-jest/.babelrc similarity index 100% rename from integration_tests/transform/babel-jest/.babelrc rename to integration-tests/transform/babel-jest/.babelrc diff --git a/integration_tests/transform/babel-jest/__tests__/babel_jest.test.js b/integration-tests/transform/babel-jest/__tests__/babel_jest.test.js similarity index 100% rename from integration_tests/transform/babel-jest/__tests__/babel_jest.test.js rename to integration-tests/transform/babel-jest/__tests__/babel_jest.test.js diff --git a/integration_tests/transform/babel-jest/not-covered.js b/integration-tests/transform/babel-jest/not-covered.js similarity index 100% rename from integration_tests/transform/babel-jest/not-covered.js rename to integration-tests/transform/babel-jest/not-covered.js diff --git a/integration_tests/transform/babel-jest/package.json b/integration-tests/transform/babel-jest/package.json similarity index 100% rename from integration_tests/transform/babel-jest/package.json rename to integration-tests/transform/babel-jest/package.json diff --git a/integration_tests/transform/babel-jest/this-directory-is-covered/covered.js b/integration-tests/transform/babel-jest/this-directory-is-covered/covered.js similarity index 100% rename from integration_tests/transform/babel-jest/this-directory-is-covered/covered.js rename to integration-tests/transform/babel-jest/this-directory-is-covered/covered.js diff --git a/integration_tests/transform/babel-jest/this-directory-is-covered/excluded-from-coverage.js b/integration-tests/transform/babel-jest/this-directory-is-covered/excluded-from-coverage.js similarity index 100% rename from integration_tests/transform/babel-jest/this-directory-is-covered/excluded-from-coverage.js rename to integration-tests/transform/babel-jest/this-directory-is-covered/excluded-from-coverage.js diff --git a/integration_tests/transform/babel-jest/yarn.lock b/integration-tests/transform/babel-jest/yarn.lock similarity index 100% rename from integration_tests/transform/babel-jest/yarn.lock rename to integration-tests/transform/babel-jest/yarn.lock diff --git a/integration_tests/transform/custom-instrumenting-preprocessor/__tests__/custom_preprocessor.test.js b/integration-tests/transform/custom-instrumenting-preprocessor/__tests__/custom_preprocessor.test.js similarity index 100% rename from integration_tests/transform/custom-instrumenting-preprocessor/__tests__/custom_preprocessor.test.js rename to integration-tests/transform/custom-instrumenting-preprocessor/__tests__/custom_preprocessor.test.js diff --git a/integration_tests/transform/custom-instrumenting-preprocessor/package.json b/integration-tests/transform/custom-instrumenting-preprocessor/package.json similarity index 100% rename from integration_tests/transform/custom-instrumenting-preprocessor/package.json rename to integration-tests/transform/custom-instrumenting-preprocessor/package.json diff --git a/integration_tests/transform/custom-instrumenting-preprocessor/preprocessor.js b/integration-tests/transform/custom-instrumenting-preprocessor/preprocessor.js similarity index 100% rename from integration_tests/transform/custom-instrumenting-preprocessor/preprocessor.js rename to integration-tests/transform/custom-instrumenting-preprocessor/preprocessor.js diff --git a/integration_tests/transform/custom-instrumenting-preprocessor/src/index.js b/integration-tests/transform/custom-instrumenting-preprocessor/src/index.js similarity index 100% rename from integration_tests/transform/custom-instrumenting-preprocessor/src/index.js rename to integration-tests/transform/custom-instrumenting-preprocessor/src/index.js diff --git a/integration_tests/transform/custom-instrumenting-preprocessor/src/some-other-file.js b/integration-tests/transform/custom-instrumenting-preprocessor/src/some-other-file.js similarity index 100% rename from integration_tests/transform/custom-instrumenting-preprocessor/src/some-other-file.js rename to integration-tests/transform/custom-instrumenting-preprocessor/src/some-other-file.js diff --git a/integration_tests/transform/ecmascript-modules-support/.babelrc b/integration-tests/transform/ecmascript-modules-support/.babelrc similarity index 100% rename from integration_tests/transform/ecmascript-modules-support/.babelrc rename to integration-tests/transform/ecmascript-modules-support/.babelrc diff --git a/integration_tests/transform/ecmascript-modules-support/__tests__/ecmascript-modules-support.mjs b/integration-tests/transform/ecmascript-modules-support/__tests__/ecmascript-modules-support.mjs similarity index 100% rename from integration_tests/transform/ecmascript-modules-support/__tests__/ecmascript-modules-support.mjs rename to integration-tests/transform/ecmascript-modules-support/__tests__/ecmascript-modules-support.mjs diff --git a/integration_tests/transform/ecmascript-modules-support/package.json b/integration-tests/transform/ecmascript-modules-support/package.json similarity index 100% rename from integration_tests/transform/ecmascript-modules-support/package.json rename to integration-tests/transform/ecmascript-modules-support/package.json diff --git a/integration_tests/transform/ecmascript-modules-support/src/index.mjs b/integration-tests/transform/ecmascript-modules-support/src/index.mjs similarity index 100% rename from integration_tests/transform/ecmascript-modules-support/src/index.mjs rename to integration-tests/transform/ecmascript-modules-support/src/index.mjs diff --git a/integration_tests/transform/ecmascript-modules-support/src/module.mjs b/integration-tests/transform/ecmascript-modules-support/src/module.mjs similarity index 100% rename from integration_tests/transform/ecmascript-modules-support/src/module.mjs rename to integration-tests/transform/ecmascript-modules-support/src/module.mjs diff --git a/integration_tests/transform/multiple-transformers/.babelrc b/integration-tests/transform/multiple-transformers/.babelrc similarity index 100% rename from integration_tests/transform/multiple-transformers/.babelrc rename to integration-tests/transform/multiple-transformers/.babelrc diff --git a/integration_tests/transform/multiple-transformers/__tests__/__snapshots__/multiple_transformers.test.js.snap b/integration-tests/transform/multiple-transformers/__tests__/__snapshots__/multiple_transformers.test.js.snap similarity index 100% rename from integration_tests/transform/multiple-transformers/__tests__/__snapshots__/multiple_transformers.test.js.snap rename to integration-tests/transform/multiple-transformers/__tests__/__snapshots__/multiple_transformers.test.js.snap diff --git a/integration_tests/transform/multiple-transformers/__tests__/multiple_transformers.test.js b/integration-tests/transform/multiple-transformers/__tests__/multiple_transformers.test.js similarity index 100% rename from integration_tests/transform/multiple-transformers/__tests__/multiple_transformers.test.js rename to integration-tests/transform/multiple-transformers/__tests__/multiple_transformers.test.js diff --git a/integration_tests/transform/multiple-transformers/cssPreprocessor.js b/integration-tests/transform/multiple-transformers/cssPreprocessor.js similarity index 100% rename from integration_tests/transform/multiple-transformers/cssPreprocessor.js rename to integration-tests/transform/multiple-transformers/cssPreprocessor.js diff --git a/integration_tests/transform/multiple-transformers/filePreprocessor.js b/integration-tests/transform/multiple-transformers/filePreprocessor.js similarity index 100% rename from integration_tests/transform/multiple-transformers/filePreprocessor.js rename to integration-tests/transform/multiple-transformers/filePreprocessor.js diff --git a/integration_tests/transform/multiple-transformers/jsPreprocessor.js b/integration-tests/transform/multiple-transformers/jsPreprocessor.js similarity index 100% rename from integration_tests/transform/multiple-transformers/jsPreprocessor.js rename to integration-tests/transform/multiple-transformers/jsPreprocessor.js diff --git a/integration_tests/transform/multiple-transformers/package.json b/integration-tests/transform/multiple-transformers/package.json similarity index 100% rename from integration_tests/transform/multiple-transformers/package.json rename to integration-tests/transform/multiple-transformers/package.json diff --git a/integration_tests/transform/multiple-transformers/src/App.css b/integration-tests/transform/multiple-transformers/src/App.css similarity index 100% rename from integration_tests/transform/multiple-transformers/src/App.css rename to integration-tests/transform/multiple-transformers/src/App.css diff --git a/integration_tests/transform/multiple-transformers/src/App.js b/integration-tests/transform/multiple-transformers/src/App.js similarity index 100% rename from integration_tests/transform/multiple-transformers/src/App.js rename to integration-tests/transform/multiple-transformers/src/App.js diff --git a/integration_tests/transform/multiple-transformers/src/logo.svg b/integration-tests/transform/multiple-transformers/src/logo.svg similarity index 100% rename from integration_tests/transform/multiple-transformers/src/logo.svg rename to integration-tests/transform/multiple-transformers/src/logo.svg diff --git a/integration_tests/transform/multiple-transformers/yarn.lock b/integration-tests/transform/multiple-transformers/yarn.lock similarity index 100% rename from integration_tests/transform/multiple-transformers/yarn.lock rename to integration-tests/transform/multiple-transformers/yarn.lock diff --git a/integration_tests/transform/no-babel-jest/__tests__/fails_with_syntax_error.test.js b/integration-tests/transform/no-babel-jest/__tests__/fails_with_syntax_error.test.js similarity index 100% rename from integration_tests/transform/no-babel-jest/__tests__/fails_with_syntax_error.test.js rename to integration-tests/transform/no-babel-jest/__tests__/fails_with_syntax_error.test.js diff --git a/integration_tests/transform/no-babel-jest/__tests__/passes-with-no-babel-jest.js b/integration-tests/transform/no-babel-jest/__tests__/passes-with-no-babel-jest.js similarity index 100% rename from integration_tests/transform/no-babel-jest/__tests__/passes-with-no-babel-jest.js rename to integration-tests/transform/no-babel-jest/__tests__/passes-with-no-babel-jest.js diff --git a/integration_tests/transform/no-babel-jest/package.json b/integration-tests/transform/no-babel-jest/package.json similarity index 100% rename from integration_tests/transform/no-babel-jest/package.json rename to integration-tests/transform/no-babel-jest/package.json diff --git a/integration_tests/transform/no-babel-jest/this-directory-is-covered/covered.js b/integration-tests/transform/no-babel-jest/this-directory-is-covered/covered.js similarity index 100% rename from integration_tests/transform/no-babel-jest/this-directory-is-covered/covered.js rename to integration-tests/transform/no-babel-jest/this-directory-is-covered/covered.js diff --git a/integration_tests/transform/no-babel-jest/this-directory-is-covered/excluded-from-coverage.js b/integration-tests/transform/no-babel-jest/this-directory-is-covered/excluded-from-coverage.js similarity index 100% rename from integration_tests/transform/no-babel-jest/this-directory-is-covered/excluded-from-coverage.js rename to integration-tests/transform/no-babel-jest/this-directory-is-covered/excluded-from-coverage.js diff --git a/integration_tests/typescript-coverage/__tests__/covered-test.ts b/integration-tests/typescript-coverage/__tests__/covered-test.ts similarity index 100% rename from integration_tests/typescript-coverage/__tests__/covered-test.ts rename to integration-tests/typescript-coverage/__tests__/covered-test.ts diff --git a/integration_tests/typescript-coverage/covered.ts b/integration-tests/typescript-coverage/covered.ts similarity index 100% rename from integration_tests/typescript-coverage/covered.ts rename to integration-tests/typescript-coverage/covered.ts diff --git a/integration_tests/typescript-coverage/package.json b/integration-tests/typescript-coverage/package.json similarity index 100% rename from integration_tests/typescript-coverage/package.json rename to integration-tests/typescript-coverage/package.json diff --git a/integration_tests/typescript-coverage/typescript-preprocessor.js b/integration-tests/typescript-coverage/typescript-preprocessor.js similarity index 100% rename from integration_tests/typescript-coverage/typescript-preprocessor.js rename to integration-tests/typescript-coverage/typescript-preprocessor.js diff --git a/integration_tests/typescript-coverage/yarn.lock b/integration-tests/typescript-coverage/yarn.lock similarity index 100% rename from integration_tests/typescript-coverage/yarn.lock rename to integration-tests/typescript-coverage/yarn.lock diff --git a/integration_tests/utils.js b/integration-tests/utils.js similarity index 100% rename from integration_tests/utils.js rename to integration-tests/utils.js diff --git a/integration_tests/verbose_reporter/__tests__/verbose.test.js b/integration-tests/verbose-reporter/__tests__/verbose.test.js similarity index 100% rename from integration_tests/verbose_reporter/__tests__/verbose.test.js rename to integration-tests/verbose-reporter/__tests__/verbose.test.js diff --git a/integration_tests/verbose_reporter/package.json b/integration-tests/verbose-reporter/package.json similarity index 100% rename from integration_tests/verbose_reporter/package.json rename to integration-tests/verbose-reporter/package.json diff --git a/karma.conf.js b/karma.conf.js index f007b484f07a..c73b879aca40 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -8,10 +8,10 @@ module.exports = config => { config.set({ browsers: ['ChromeHeadless'], - files: ['integration_tests/browser-support/browser-test.js'], + files: ['integration-tests/browser-support/browser-test.js'], frameworks: ['mocha', 'browserify'], preprocessors: { - 'integration_tests/browser-support/browser-test.js': ['browserify'], + 'integration-tests/browser-support/browser-test.js': ['browserify'], }, }); }; diff --git a/package.json b/package.json index d4884626ce2f..5ddc8228a5cd 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,7 @@ "scripts": { "build-clean": "rm -rf ./packages/*/build ./packages/*/build-es5", "build": "node ./scripts/build.js", - "clean-all": "rm -rf ./node_modules && rm -rf ./packages/*/node_modules && rm -rf ./integration_tests/*/*/node_modules && yarn build-clean", + "clean-all": "rm -rf ./node_modules && rm -rf ./packages/*/node_modules && rm -rf ./integration-tests/*/*/node_modules && yarn build-clean", "jest": "node ./packages/jest-cli/bin/jest.js", "jest-coverage": "yarn jest --coverage", "lint": "eslint . --cache --ext js,md", @@ -109,7 +109,7 @@ "packages/.*/build-es5", "packages/jest-runtime/src/__tests__/test_root.*", "website/.*", - "integration_tests/runtime-internal-module-registry/__mocks__" + "integration-tests/runtime-internal-module-registry/__mocks__" ], "collectCoverageFrom": [ "**/packages/jest-*/**/*.js", @@ -120,7 +120,7 @@ "!**/perf/**", "!**/__mocks__/**", "!**/__tests__/**", - "!integration_tests/**" + "!integration-tests/**" ], "coverageReporters": [ "json" @@ -140,7 +140,7 @@ "testPathIgnorePatterns": [ "/node_modules/", "/examples/", - "/integration_tests/.*/__tests__", + "/integration-tests/.*/__tests__", "\\.snap$", "/packages/.*/build", "/packages/.*/build-es5", @@ -156,7 +156,7 @@ "/packages/jest-validate/src/__tests__/fixtures/", "/packages/jest-worker/src/__performance_tests__", "/packages/pretty-format/perf/test.js", - "/integration_tests/__tests__/iterator-to-null-test.js" + "/integration-tests/__tests__/iterator-to-null-test.js" ] }, "prettier": { diff --git a/packages/jest-config/src/__tests__/resolve_config_path.test.js b/packages/jest-config/src/__tests__/resolve_config_path.test.js index e9a60a3a8c52..e7a820c39ce7 100644 --- a/packages/jest-config/src/__tests__/resolve_config_path.test.js +++ b/packages/jest-config/src/__tests__/resolve_config_path.test.js @@ -11,7 +11,7 @@ import os from 'os'; import path from 'path'; import resolveConfigPath from '../resolve_config_path'; -const {cleanup, writeFiles} = require('../../../../integration_tests/utils'); +const {cleanup, writeFiles} = require('../../../../integration-tests/utils'); const DIR = path.resolve(os.tmpdir(), 'resolve_config_path_test'); const ERROR_PATTERN = /Could not find a config file based on provided values/;