diff --git a/integration-tests/__tests__/babel_plugin_jest_hoist.test.js b/integration-tests/__tests__/babel_plugin_jest_hoist.test.js index ab56719e0971..2a1ce9379aa6 100644 --- a/integration-tests/__tests__/babel_plugin_jest_hoist.test.js +++ b/integration-tests/__tests__/babel_plugin_jest_hoist.test.js @@ -9,13 +9,13 @@ 'use strict'; const path = require('path'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const {run} = require('../utils'); const runJest = require('../runJest'); const DIR = path.resolve(__dirname, '..', 'babel-plugin-jest-hoist'); -skipOnWindows.suite(); +SkipOnWindows.suite(); if (process.platform !== 'win32') { beforeEach(() => { diff --git a/integration-tests/__tests__/cli-accepts-exact-filenames.test.js b/integration-tests/__tests__/cli-accepts-exact-filenames.test.js index fa8d19bc8dc5..41bc746e7c32 100644 --- a/integration-tests/__tests__/cli-accepts-exact-filenames.test.js +++ b/integration-tests/__tests__/cli-accepts-exact-filenames.test.js @@ -10,13 +10,13 @@ 'use strict'; const path = require('path'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const {extractSummary, cleanup, writeFiles} = require('../utils'); const runJest = require('../runJest'); const DIR = path.resolve(__dirname, '../cli_accepts_exact_filenames'); -skipOnWindows.suite(); +SkipOnWindows.suite(); beforeEach(() => cleanup(DIR)); afterAll(() => cleanup(DIR)); diff --git a/integration-tests/__tests__/compare_dom_nodes.test.js b/integration-tests/__tests__/compare_dom_nodes.test.js index 70498242a2de..c954b66d1b21 100644 --- a/integration-tests/__tests__/compare_dom_nodes.test.js +++ b/integration-tests/__tests__/compare_dom_nodes.test.js @@ -8,10 +8,10 @@ */ 'use strict'; -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const runJest = require('../runJest'); -skipOnWindows.suite(); +SkipOnWindows.suite(); test('does not crash when expect involving a DOM node fails', () => { const result = runJest('compare-dom-nodes'); diff --git a/integration-tests/__tests__/console.test.js b/integration-tests/__tests__/console.test.js index 231d7014db1c..d90eec70ffd1 100644 --- a/integration-tests/__tests__/console.test.js +++ b/integration-tests/__tests__/console.test.js @@ -9,11 +9,11 @@ 'use strict'; -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const {extractSummary} = require('../utils'); const runJest = require('../runJest'); -skipOnWindows.suite(); +SkipOnWindows.suite(); test('console printing', () => { const {stderr, status} = runJest('console'); 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 index ab5b86505d19..e9c95ba4152c 100644 --- 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 @@ -10,13 +10,13 @@ 'use strict'; const path = require('path'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const {extractSummary, cleanup, writeFiles} = require('../utils'); const runJest = require('../runJest'); const DIR = path.resolve(__dirname, '../console_log_output_when_run_in_band'); -skipOnWindows.suite(); +SkipOnWindows.suite(); beforeEach(() => cleanup(DIR)); afterAll(() => cleanup(DIR)); diff --git a/integration-tests/__tests__/coverage_remapping.test.js b/integration-tests/__tests__/coverage_remapping.test.js index a97d7c6d8c6c..390a14a9a135 100644 --- a/integration-tests/__tests__/coverage_remapping.test.js +++ b/integration-tests/__tests__/coverage_remapping.test.js @@ -11,14 +11,14 @@ const {readFileSync} = require('fs'); const path = require('path'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const {cleanup, run} = require('../utils'); const runJest = require('../runJest'); const dir = path.resolve(__dirname, '../coverage-remapping'); const coverageDir = path.join(dir, 'coverage'); -skipOnWindows.suite(); +SkipOnWindows.suite(); beforeAll(() => { cleanup(coverageDir); diff --git a/integration-tests/__tests__/coverage_report.test.js b/integration-tests/__tests__/coverage_report.test.js index c4a57e03a673..25a132470cf9 100644 --- a/integration-tests/__tests__/coverage_report.test.js +++ b/integration-tests/__tests__/coverage_report.test.js @@ -10,13 +10,13 @@ const fs = require('fs'); const path = require('path'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const {extractSummary} = require('../utils'); const runJest = require('../runJest'); const DIR = path.resolve(__dirname, '../coverage-report'); -skipOnWindows.suite(); +SkipOnWindows.suite(); test('outputs coverage report', () => { const {stdout, status} = runJest(DIR, ['--no-cache', '--coverage']); diff --git a/integration-tests/__tests__/coverage_threshold.test.js b/integration-tests/__tests__/coverage_threshold.test.js index 2b9d93f9fb96..5f871ae332f3 100644 --- a/integration-tests/__tests__/coverage_threshold.test.js +++ b/integration-tests/__tests__/coverage_threshold.test.js @@ -10,13 +10,13 @@ 'use strict'; const path = require('path'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const {cleanup, writeFiles} = require('../utils'); const runJest = require('../runJest'); const DIR = path.resolve(__dirname, '../coverage-threshold'); -skipOnWindows.suite(); +SkipOnWindows.suite(); beforeEach(() => cleanup(DIR)); afterAll(() => cleanup(DIR)); diff --git a/integration-tests/__tests__/custom_matcher_stack_trace.test.js b/integration-tests/__tests__/custom_matcher_stack_trace.test.js index 5be8d6b6edab..40d4405c5b19 100644 --- a/integration-tests/__tests__/custom_matcher_stack_trace.test.js +++ b/integration-tests/__tests__/custom_matcher_stack_trace.test.js @@ -10,9 +10,9 @@ const runJest = require('../runJest'); const {extractSummary} = require('../utils'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); -skipOnWindows.suite(); +SkipOnWindows.suite(); test('works with custom matchers', () => { const {stderr} = runJest('custom-matcher-stack-trace'); diff --git a/integration-tests/__tests__/custom_reporters.test.js b/integration-tests/__tests__/custom_reporters.test.js index 44f822cee29e..4d35834aecf5 100644 --- a/integration-tests/__tests__/custom_reporters.test.js +++ b/integration-tests/__tests__/custom_reporters.test.js @@ -8,7 +8,7 @@ */ 'use strict'; -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const {cleanup, extractSummary, writeFiles} = require('../utils'); const runJest = require('../runJest'); const os = require('os'); @@ -20,7 +20,7 @@ beforeEach(() => cleanup(DIR)); afterEach(() => cleanup(DIR)); describe('Custom Reporters Integration', () => { - skipOnWindows.suite(); + SkipOnWindows.suite(); test('valid string format for adding reporters', () => { const reporterConfig = { diff --git a/integration-tests/__tests__/debug.test.js b/integration-tests/__tests__/debug.test.js index d2cdbd105a7e..6062b6e9a7ba 100644 --- a/integration-tests/__tests__/debug.test.js +++ b/integration-tests/__tests__/debug.test.js @@ -7,11 +7,11 @@ */ const path = require('path'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const runJest = require('../runJest'); describe('jest --debug', () => { - skipOnWindows.suite(); + SkipOnWindows.suite(); const dir = path.resolve(__dirname, '..', 'verbose-reporter'); diff --git a/integration-tests/__tests__/execute-tests-once-in-mpr.js b/integration-tests/__tests__/execute-tests-once-in-mpr.js index 3f4767033654..85c5f8c1e664 100644 --- a/integration-tests/__tests__/execute-tests-once-in-mpr.js +++ b/integration-tests/__tests__/execute-tests-once-in-mpr.js @@ -10,13 +10,13 @@ 'use strict'; const path = require('path'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const {extractSummary, cleanup, writeFiles} = require('../utils'); const runJest = require('../runJest'); const DIR = path.resolve(__dirname, '../execute-tests-once-in-mpr'); -skipOnWindows.suite(); +SkipOnWindows.suite(); beforeEach(() => cleanup(DIR)); afterAll(() => cleanup(DIR)); diff --git a/integration-tests/__tests__/failures.test.js b/integration-tests/__tests__/failures.test.js index 0e8a85c3f9e9..5e91558b48f9 100644 --- a/integration-tests/__tests__/failures.test.js +++ b/integration-tests/__tests__/failures.test.js @@ -8,7 +8,7 @@ */ const path = require('path'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const {extractSummary} = require('../utils'); const runJest = require('../runJest'); @@ -16,7 +16,7 @@ const dir = path.resolve(__dirname, '../failures'); const normalizeDots = text => text.replace(/\.{1,}$/gm, '.'); -skipOnWindows.suite(); +SkipOnWindows.suite(); const cleanupStackTrace = stderr => { const STACK_REGEXP = /^.*at.*(setup-jest-globals|extractExpectedAssertionsErrors).*\n/gm; diff --git a/integration-tests/__tests__/find_related_files.test.js b/integration-tests/__tests__/find_related_files.test.js index ff333b6e9e1f..71dbb1b30f5f 100644 --- a/integration-tests/__tests__/find_related_files.test.js +++ b/integration-tests/__tests__/find_related_files.test.js @@ -15,10 +15,10 @@ import path from 'path'; const {cleanup, writeFiles} = require('../utils'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const DIR = path.resolve(os.tmpdir(), 'find_related_tests_test'); -skipOnWindows.suite(); +SkipOnWindows.suite(); beforeEach(() => cleanup(DIR)); afterEach(() => cleanup(DIR)); diff --git a/integration-tests/__tests__/force_exit.test.js b/integration-tests/__tests__/force_exit.test.js index 202e0542cd89..7f18ec2377e0 100644 --- a/integration-tests/__tests__/force_exit.test.js +++ b/integration-tests/__tests__/force_exit.test.js @@ -14,10 +14,10 @@ import os from 'os'; import path from 'path'; const {cleanup, writeFiles} = require('../utils'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const DIR = path.resolve(os.tmpdir(), 'force_exit_test'); -skipOnWindows.suite(); +SkipOnWindows.suite(); beforeEach(() => cleanup(DIR)); afterEach(() => cleanup(DIR)); diff --git a/integration-tests/__tests__/globals.test.js b/integration-tests/__tests__/globals.test.js index 711d9ff8d50c..7c41819f0b6b 100644 --- a/integration-tests/__tests__/globals.test.js +++ b/integration-tests/__tests__/globals.test.js @@ -11,7 +11,7 @@ const path = require('path'); const os = require('os'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const runJest = require('../runJest'); const {extractSummary} = require('../utils'); const {createEmptyPackage, writeFiles, cleanup} = require('../utils'); @@ -19,7 +19,7 @@ const {createEmptyPackage, writeFiles, cleanup} = require('../utils'); const DIR = path.resolve(os.tmpdir(), 'global-variables.test'); const TEST_DIR = path.resolve(DIR, '__tests__'); -skipOnWindows.suite(); +SkipOnWindows.suite(); beforeEach(() => { cleanup(DIR); diff --git a/integration-tests/__tests__/jest.config.js.test.js b/integration-tests/__tests__/jest.config.js.test.js index 4fea4b38ea92..be40d38bd710 100644 --- a/integration-tests/__tests__/jest.config.js.test.js +++ b/integration-tests/__tests__/jest.config.js.test.js @@ -10,13 +10,13 @@ 'use strict'; const path = require('path'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const {extractSummary, cleanup, writeFiles} = require('../utils'); const runJest = require('../runJest'); const DIR = path.resolve(__dirname, '../jest.config.js'); -skipOnWindows.suite(); +SkipOnWindows.suite(); beforeEach(() => cleanup(DIR)); afterAll(() => cleanup(DIR)); diff --git a/integration-tests/__tests__/jest_changed_files.test.js b/integration-tests/__tests__/jest_changed_files.test.js index 7ec3bb830f64..1c3fc30008da 100644 --- a/integration-tests/__tests__/jest_changed_files.test.js +++ b/integration-tests/__tests__/jest_changed_files.test.js @@ -15,10 +15,10 @@ import { findRepos, getChangedFilesForRoots, } from '../../packages/jest-changed-files/src'; -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const {cleanup, run, writeFiles} = require('../utils'); -skipOnWindows.suite(); +SkipOnWindows.suite(); const DIR = path.resolve(os.tmpdir(), 'jest_changed_files_test_dir'); diff --git a/integration-tests/__tests__/jest_require_actual.test.js b/integration-tests/__tests__/jest_require_actual.test.js index 3f5b4f4c80da..ba066d3cfa36 100644 --- a/integration-tests/__tests__/jest_require_actual.test.js +++ b/integration-tests/__tests__/jest_require_actual.test.js @@ -11,13 +11,13 @@ const path = require('path'); const os = require('os'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const {cleanup, writeFiles} = require('../utils'); const runJest = require('../runJest'); const DIR = path.resolve(os.tmpdir(), 'jest_require_actual_test'); -skipOnWindows.suite(); +SkipOnWindows.suite(); beforeEach(() => cleanup(DIR)); afterAll(() => cleanup(DIR)); diff --git a/integration-tests/__tests__/jest_require_mock.test.js b/integration-tests/__tests__/jest_require_mock.test.js index 720ad66c8ce9..82925d6075b7 100644 --- a/integration-tests/__tests__/jest_require_mock.test.js +++ b/integration-tests/__tests__/jest_require_mock.test.js @@ -11,13 +11,13 @@ const path = require('path'); const os = require('os'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const {cleanup, writeFiles} = require('../utils'); const runJest = require('../runJest'); const DIR = path.resolve(os.tmpdir(), 'jest_require_mock_test'); -skipOnWindows.suite(); +SkipOnWindows.suite(); beforeEach(() => cleanup(DIR)); afterAll(() => cleanup(DIR)); diff --git a/integration-tests/__tests__/log_heap_usage.test.js b/integration-tests/__tests__/log_heap_usage.test.js index 9e411da52240..2773cee06015 100644 --- a/integration-tests/__tests__/log_heap_usage.test.js +++ b/integration-tests/__tests__/log_heap_usage.test.js @@ -11,13 +11,13 @@ const path = require('path'); const os = require('os'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const {cleanup, writeFiles} = require('../utils'); const runJest = require('../runJest'); const DIR = path.resolve(os.tmpdir(), 'log_heap_usage_test'); -skipOnWindows.suite(); +SkipOnWindows.suite(); beforeEach(() => cleanup(DIR)); afterAll(() => cleanup(DIR)); diff --git a/integration-tests/__tests__/module_name_mapper.test.js b/integration-tests/__tests__/module_name_mapper.test.js index f133cf75fbca..94cb193ff28f 100644 --- a/integration-tests/__tests__/module_name_mapper.test.js +++ b/integration-tests/__tests__/module_name_mapper.test.js @@ -10,10 +10,10 @@ const runJest = require('../runJest'); const {extractSummary} = require('../utils'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); // Works on windows, we just need to adjust snapshot test output -skipOnWindows.suite(); +SkipOnWindows.suite(); test('moduleNameMapper wrong configuration', () => { const {stderr, status} = runJest('module-name-mapper-wrong-config'); diff --git a/integration-tests/__tests__/multi_project_runner.test.js b/integration-tests/__tests__/multi_project_runner.test.js index d25d274747ed..9c752045b714 100644 --- a/integration-tests/__tests__/multi_project_runner.test.js +++ b/integration-tests/__tests__/multi_project_runner.test.js @@ -14,10 +14,10 @@ import os from 'os'; import path from 'path'; const {cleanup, extractSummary, writeFiles} = require('../utils'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const DIR = path.resolve(os.tmpdir(), 'multi_project_runner_test'); -skipOnWindows.suite(); +SkipOnWindows.suite(); const fileContentWithProvidesModule = name => `/* * @providesModule ${name} diff --git a/integration-tests/__tests__/native_async_mock.test.js b/integration-tests/__tests__/native_async_mock.test.js index 6707567a2d14..b9d29a6d2cdf 100644 --- a/integration-tests/__tests__/native_async_mock.test.js +++ b/integration-tests/__tests__/native_async_mock.test.js @@ -10,11 +10,11 @@ 'use strict'; const path = require('path'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const {run, extractSummary} = require('../utils'); const runJest = require('../runJest'); -skipOnWindows.suite(); +SkipOnWindows.suite(); const dir = path.resolve(__dirname, '..', 'native-async-mock'); test('mocks async functions', () => { diff --git a/integration-tests/__tests__/regex_(char_in_path.test.js b/integration-tests/__tests__/regex_(char_in_path.test.js index d3a5e5404308..cd4c22d78f20 100644 --- a/integration-tests/__tests__/regex_(char_in_path.test.js +++ b/integration-tests/__tests__/regex_(char_in_path.test.js @@ -8,11 +8,11 @@ */ 'use strict'; -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const runJest = require('../runJest'); describe('Regex Char In Path', () => { - skipOnWindows.suite(); + SkipOnWindows.suite(); it('parses paths containing regex chars correctly', () => { const {json} = runJest.json('regex-(char-in-path', []); diff --git a/integration-tests/__tests__/run_tests_by_path.test.js b/integration-tests/__tests__/run_tests_by_path.test.js index b12bf9bf7579..a4076ac6db63 100644 --- a/integration-tests/__tests__/run_tests_by_path.test.js +++ b/integration-tests/__tests__/run_tests_by_path.test.js @@ -14,10 +14,10 @@ import os from 'os'; import path from 'path'; const {cleanup, writeFiles} = require('../utils'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const DIR = path.resolve(os.tmpdir(), 'run_tests_by_path_test'); -skipOnWindows.suite(); +SkipOnWindows.suite(); beforeEach(() => cleanup(DIR)); afterEach(() => cleanup(DIR)); diff --git a/integration-tests/__tests__/show_config.test.js b/integration-tests/__tests__/show_config.test.js index 7f93839def87..d45a2f48926f 100644 --- a/integration-tests/__tests__/show_config.test.js +++ b/integration-tests/__tests__/show_config.test.js @@ -10,12 +10,12 @@ 'use strict'; const path = require('path'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const runJest = require('../runJest'); const os = require('os'); const {cleanup, writeFiles} = require('../utils'); -skipOnWindows.suite(); +SkipOnWindows.suite(); const DIR = path.resolve(os.tmpdir(), 'show_config_test'); beforeEach(() => cleanup(DIR)); diff --git a/integration-tests/__tests__/snapshot.test.js b/integration-tests/__tests__/snapshot.test.js index 988831f85664..422d4f77f52c 100644 --- a/integration-tests/__tests__/snapshot.test.js +++ b/integration-tests/__tests__/snapshot.test.js @@ -13,8 +13,8 @@ const path = require('path'); const {extractSummary} = require('../utils'); const runJest = require('../runJest'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); -skipOnWindows.suite(); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); +SkipOnWindows.suite(); const emptyTest = 'describe("", () => {it("", () => {})})'; const snapshotDir = path.resolve( diff --git a/integration-tests/__tests__/test_failure_exit_code.test.js b/integration-tests/__tests__/test_failure_exit_code.test.js index 3bb7628fdc54..3cec351ad83d 100644 --- a/integration-tests/__tests__/test_failure_exit_code.test.js +++ b/integration-tests/__tests__/test_failure_exit_code.test.js @@ -11,13 +11,13 @@ const path = require('path'); const os = require('os'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const {cleanup, writeFiles} = require('../utils'); const runJest = require('../runJest'); const DIR = path.resolve(os.tmpdir(), 'test_failure_exit_code_test'); -skipOnWindows.suite(); +SkipOnWindows.suite(); beforeEach(() => cleanup(DIR)); afterAll(() => cleanup(DIR)); diff --git a/integration-tests/__tests__/test_path_pattern_reporter_message.test.js b/integration-tests/__tests__/test_path_pattern_reporter_message.test.js index f2ef4dbc4dfc..313e5964df72 100644 --- a/integration-tests/__tests__/test_path_pattern_reporter_message.test.js +++ b/integration-tests/__tests__/test_path_pattern_reporter_message.test.js @@ -13,10 +13,10 @@ import os from 'os'; import path from 'path'; const {cleanup, writeFiles} = require('../utils'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const DIR = path.resolve(os.tmpdir(), 'jest_path_pattern_reporter_message'); -skipOnWindows.suite(); +SkipOnWindows.suite(); beforeEach(() => cleanup(DIR)); afterEach(() => cleanup(DIR)); diff --git a/integration-tests/__tests__/timeouts.test.js b/integration-tests/__tests__/timeouts.test.js index 386a8038538e..4a62575c3024 100644 --- a/integration-tests/__tests__/timeouts.test.js +++ b/integration-tests/__tests__/timeouts.test.js @@ -9,13 +9,13 @@ 'use strict'; const path = require('path'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const {extractSummary, cleanup, writeFiles} = require('../utils'); const runJest = require('../runJest'); const DIR = path.resolve(__dirname, '../timeouts'); -skipOnWindows.suite(); +SkipOnWindows.suite(); beforeEach(() => cleanup(DIR)); afterAll(() => cleanup(DIR)); diff --git a/integration-tests/__tests__/transform-linked-modules.test.js b/integration-tests/__tests__/transform-linked-modules.test.js index db70c35b0d26..195aba9cd8b6 100644 --- a/integration-tests/__tests__/transform-linked-modules.test.js +++ b/integration-tests/__tests__/transform-linked-modules.test.js @@ -2,10 +2,10 @@ 'use strict'; -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const runJest = require('../runJest'); -skipOnWindows.suite(); +SkipOnWindows.suite(); it('should transform linked modules', () => { const result = runJest.json('transform-linked-modules', ['--no-cache']).json; diff --git a/integration-tests/__tests__/transform.test.js b/integration-tests/__tests__/transform.test.js index eed9b96c1006..402b71fec6a2 100644 --- a/integration-tests/__tests__/transform.test.js +++ b/integration-tests/__tests__/transform.test.js @@ -8,7 +8,7 @@ */ const path = require('path'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const { run, cleanup, @@ -20,7 +20,7 @@ const runJest = require('../runJest'); const os = require('os'); describe('babel-jest', () => { - skipOnWindows.suite(); + SkipOnWindows.suite(); const dir = path.resolve(__dirname, '..', 'transform/babel-jest'); beforeEach(() => { diff --git a/integration-tests/__tests__/typescript_coverage.test.js b/integration-tests/__tests__/typescript_coverage.test.js index 975df8d48365..0cb6dc7eab8e 100644 --- a/integration-tests/__tests__/typescript_coverage.test.js +++ b/integration-tests/__tests__/typescript_coverage.test.js @@ -8,11 +8,11 @@ */ const path = require('path'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const {run} = require('../utils'); const runJest = require('../runJest'); -skipOnWindows.suite(); +SkipOnWindows.suite(); it('instruments and collects coverage for typescript files', () => { const dir = path.resolve(__dirname, '../typescript-coverage'); diff --git a/integration-tests/__tests__/use_stderr.test.js b/integration-tests/__tests__/use_stderr.test.js index d0d3a73fd1ef..105503808e3d 100644 --- a/integration-tests/__tests__/use_stderr.test.js +++ b/integration-tests/__tests__/use_stderr.test.js @@ -14,10 +14,10 @@ import os from 'os'; import path from 'path'; const {cleanup, writeFiles} = require('../utils'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const DIR = path.resolve(os.tmpdir(), 'use_stderr_test'); -skipOnWindows.suite(); +SkipOnWindows.suite(); beforeEach(() => cleanup(DIR)); afterEach(() => cleanup(DIR)); diff --git a/integration-tests/__tests__/version.test.js b/integration-tests/__tests__/version.test.js index 4dc36de80495..a330ebe68862 100644 --- a/integration-tests/__tests__/version.test.js +++ b/integration-tests/__tests__/version.test.js @@ -11,13 +11,13 @@ const path = require('path'); const os = require('os'); -const skipOnWindows = require('../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../scripts/SkipOnWindows'); const {cleanup, writeFiles} = require('../utils'); const runJest = require('../runJest'); const DIR = path.resolve(os.tmpdir(), 'version_test'); -skipOnWindows.suite(); +SkipOnWindows.suite(); beforeEach(() => cleanup(DIR)); afterAll(() => cleanup(DIR)); diff --git a/packages/expect/src/__tests__/assertion_counts.test.js b/packages/expect/src/__tests__/assertion_counts.test.js index 3fdc554b7017..a79a55dfc4af 100644 --- a/packages/expect/src/__tests__/assertion_counts.test.js +++ b/packages/expect/src/__tests__/assertion_counts.test.js @@ -10,7 +10,7 @@ const jestExpect = require('../'); -const skipOnWindows = require('../../../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../../../scripts/SkipOnWindows'); describe('.assertions()', () => { it('does not throw', () => { @@ -31,7 +31,7 @@ describe('.assertions()', () => { }); describe('.hasAssertions()', () => { - skipOnWindows.suite(); + SkipOnWindows.suite(); it('does not throw if there is an assertion', () => { jestExpect.hasAssertions(); jestExpect('a').toBe('a'); diff --git a/packages/jest-cli/src/__tests__/search_source.test.js b/packages/jest-cli/src/__tests__/search_source.test.js index 5da953a561f6..cbb79b89cc79 100644 --- a/packages/jest-cli/src/__tests__/search_source.test.js +++ b/packages/jest-cli/src/__tests__/search_source.test.js @@ -12,7 +12,7 @@ import path from 'path'; jest.setTimeout(15000); -const skipOnWindows = require('../../../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../../../scripts/SkipOnWindows'); const rootDir = path.resolve(__dirname, 'test_root'); const testRegex = path.sep + '__testtests__' + path.sep; @@ -25,7 +25,7 @@ let findMatchingTests; let normalize; describe('SearchSource', () => { - skipOnWindows.suite(); + SkipOnWindows.suite(); const name = 'SearchSource'; let Runtime; diff --git a/packages/jest-haste-map/src/__tests__/index.test.js b/packages/jest-haste-map/src/__tests__/index.test.js index af2afc6318ff..0d81e5fec357 100644 --- a/packages/jest-haste-map/src/__tests__/index.test.js +++ b/packages/jest-haste-map/src/__tests__/index.test.js @@ -93,7 +93,7 @@ jest.mock('graceful-fs', () => ({ })); jest.mock('fs', () => require('graceful-fs')); -const skipOnWindows = require('../../../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../../../scripts/SkipOnWindows'); const cacheFilePath = '/cache-file'; let consoleWarn; @@ -109,7 +109,7 @@ let mockWorker; let getCacheFilePath; describe('HasteMap', () => { - skipOnWindows.suite(); + SkipOnWindows.suite(); beforeEach(() => { jest.resetModules(); diff --git a/packages/jest-haste-map/src/__tests__/worker.test.js b/packages/jest-haste-map/src/__tests__/worker.test.js index ffe039cfa650..3d7a26557c53 100644 --- a/packages/jest-haste-map/src/__tests__/worker.test.js +++ b/packages/jest-haste-map/src/__tests__/worker.test.js @@ -10,7 +10,7 @@ import path from 'path'; import fs from 'graceful-fs'; -import skipOnWindows from '../../../../scripts/SkipOnWindows'; +import SkipOnWindows from '../../../../scripts/SkipOnWindows'; import H from '../constants'; @@ -20,7 +20,7 @@ let mockFs; let readFileSync; describe('worker', () => { - skipOnWindows.suite(); + SkipOnWindows.suite(); beforeEach(() => { mockFs = { diff --git a/packages/jest-haste-map/src/crawlers/__tests__/node.test.js b/packages/jest-haste-map/src/crawlers/__tests__/node.test.js index 49573ef813f7..e61ad415bf51 100644 --- a/packages/jest-haste-map/src/crawlers/__tests__/node.test.js +++ b/packages/jest-haste-map/src/crawlers/__tests__/node.test.js @@ -8,7 +8,7 @@ 'use strict'; -const skipOnWindows = require('../../../../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../../../../scripts/SkipOnWindows'); jest.mock('child_process', () => ({ spawn: jest.fn((cmd, args) => { @@ -72,7 +72,7 @@ let nodeCrawl; let childProcess; describe('node crawler', () => { - skipOnWindows.suite(); + SkipOnWindows.suite(); beforeEach(() => { jest.resetModules(); diff --git a/packages/jest-haste-map/src/crawlers/__tests__/watchman.test.js b/packages/jest-haste-map/src/crawlers/__tests__/watchman.test.js index c78b668ed3e2..9033be6e819e 100644 --- a/packages/jest-haste-map/src/crawlers/__tests__/watchman.test.js +++ b/packages/jest-haste-map/src/crawlers/__tests__/watchman.test.js @@ -8,7 +8,7 @@ 'use strict'; -const skipOnWindows = require('../../../../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../../../../scripts/SkipOnWindows'); jest.mock('fb-watchman', () => { const Client = jest.fn(); @@ -31,7 +31,7 @@ let mockResponse; let mockFiles; describe('watchman watch', () => { - skipOnWindows.suite(); + SkipOnWindows.suite(); beforeEach(() => { watchmanCrawl = require('../watchman'); diff --git a/packages/jest-repl/src/__tests__/jest_repl.test.js b/packages/jest-repl/src/__tests__/jest_repl.test.js index d3144b3cc76b..68fa083db6ef 100644 --- a/packages/jest-repl/src/__tests__/jest_repl.test.js +++ b/packages/jest-repl/src/__tests__/jest_repl.test.js @@ -9,12 +9,12 @@ const {spawnSync} = require('child_process'); const path = require('path'); -const skipOnWindows = require('../../../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../../../scripts/SkipOnWindows'); const JEST_RUNTIME = path.resolve(__dirname, '../../bin/jest-repl.js'); describe('Repl', () => { - skipOnWindows.suite(); + SkipOnWindows.suite(); describe('cli', () => { it('runs without errors', () => { diff --git a/packages/jest-runtime/src/__tests__/runtime_cli.test.js b/packages/jest-runtime/src/__tests__/runtime_cli.test.js index f1b76cbfd1fb..9eab7d8b58b9 100644 --- a/packages/jest-runtime/src/__tests__/runtime_cli.test.js +++ b/packages/jest-runtime/src/__tests__/runtime_cli.test.js @@ -10,9 +10,9 @@ const path = require('path'); const {sync: spawnSync} = require('cross-spawn'); -const skipOnWindows = require('../../../../scripts/SkipOnWindows'); +const SkipOnWindows = require('../../../../scripts/SkipOnWindows'); -skipOnWindows.suite(); +SkipOnWindows.suite(); const JEST_RUNTIME = path.resolve(__dirname, '../../bin/jest-runtime.js'); diff --git a/scripts/SkipOnWindows.js b/scripts/SkipOnWindows.js index 7e1e2310d95c..abe9ce526c08 100644 --- a/scripts/SkipOnWindows.js +++ b/scripts/SkipOnWindows.js @@ -9,7 +9,7 @@ /* eslint-disable jest/no-focused-tests */ -const skipOnWindows = { +const SkipOnWindows = { suite() { if (process.platform === 'win32') { fit('does not work on Windows', () => { @@ -27,4 +27,4 @@ const skipOnWindows = { }, }; -module.exports = skipOnWindows; +module.exports = SkipOnWindows;