Skip to content

Commit

Permalink
capitalize skipOnWindows variable -> SkipOnWindows (#5515)
Browse files Browse the repository at this point in the history
  • Loading branch information
ranyitz authored and cpojer committed Feb 10, 2018
1 parent 95c7e5e commit 09adc31
Show file tree
Hide file tree
Showing 45 changed files with 90 additions and 90 deletions.
4 changes: 2 additions & 2 deletions integration-tests/__tests__/babel_plugin_jest_hoist.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/__tests__/compare_dom_nodes.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/__tests__/console.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/__tests__/coverage_remapping.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/__tests__/coverage_report.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/__tests__/coverage_threshold.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/__tests__/custom_reporters.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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 = {
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/__tests__/debug.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
4 changes: 2 additions & 2 deletions integration-tests/__tests__/execute-tests-once-in-mpr.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/__tests__/failures.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
*/

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, '../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;
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/__tests__/find_related_files.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/__tests__/force_exit.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/__tests__/globals.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@

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');

const DIR = path.resolve(os.tmpdir(), 'global-variables.test');
const TEST_DIR = path.resolve(DIR, '__tests__');

skipOnWindows.suite();
SkipOnWindows.suite();

beforeEach(() => {
cleanup(DIR);
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/__tests__/jest.config.js.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/__tests__/jest_changed_files.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
4 changes: 2 additions & 2 deletions integration-tests/__tests__/jest_require_actual.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/__tests__/jest_require_mock.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/__tests__/log_heap_usage.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/__tests__/module_name_mapper.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/__tests__/multi_project_runner.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/__tests__/native_async_mock.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/__tests__/regex_(char_in_path.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', []);
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/__tests__/run_tests_by_path.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
Loading

0 comments on commit 09adc31

Please sign in to comment.