diff --git a/CHANGELOG.md b/CHANGELOG.md index 1953f9889dd0..954c926b427e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -113,8 +113,9 @@ - `[docs]` Remove duplicate code in `MockFunctions` ([#7297](https://github.com/facebook/jest/pull/7297)) - `[*]` Add check for Facebook copyright headers on CI ([#7370](https://github.com/facebook/jest/pull/7370)) - `[jest-haste-map]` Refactor `dependencyExtractor` and tests ([#7385](https://github.com/facebook/jest/pull/7385)) +- `[docs]` Clearify conditional setting of `NODE_ENV` ([#7369](https://github.com/facebook/jest/pull/7369)) - `[docs]` Clarify conditional setting of `NODE_ENV` ([#7369](https://github.com/facebook/jest/pull/7369)) -- `[*]` Standardize file names ([#7316](https://github.com/facebook/jest/pull/7316), [#7266](https://github.com/facebook/jest/pull/7266), [#7238](https://github.com/facebook/jest/pull/7238), [#7314](https://github.com/facebook/jest/pull/7314), [#7467](https://github.com/facebook/jest/pull/7467)) +- `[*]` Standardize file names ([#7316](https://github.com/facebook/jest/pull/7316), [#7266](https://github.com/facebook/jest/pull/7266), [#7238](https://github.com/facebook/jest/pull/7238), [#7314](https://github.com/facebook/jest/pull/7314), [#7467](https://github.com/facebook/jest/pull/7467), [#7464](https://github.com/facebook/jest/pull/7464)) - `[docs]` Add `testPathIgnorePatterns` in CLI documentation ([#7440](https://github.com/facebook/jest/pull/7440)) ### Performance diff --git a/packages/jest-runner/src/__tests__/test_runner.test.js b/packages/jest-runner/src/__tests__/testRunner.test.js similarity index 98% rename from packages/jest-runner/src/__tests__/test_runner.test.js rename to packages/jest-runner/src/__tests__/testRunner.test.js index 94ae275e4aa3..c144f4cad0aa 100644 --- a/packages/jest-runner/src/__tests__/test_runner.test.js +++ b/packages/jest-runner/src/__tests__/testRunner.test.js @@ -25,7 +25,7 @@ jest.mock('jest-worker', () => ), ); -jest.mock('../test_worker', () => {}); +jest.mock('../testWorker', () => {}); test('injects the serializable module map into each worker in watch mode', () => { const globalConfig = {maxWorkers: 2, watch: true}; diff --git a/packages/jest-runner/src/index.js b/packages/jest-runner/src/index.js index aa4c55e40b96..be967a47fa2a 100644 --- a/packages/jest-runner/src/index.js +++ b/packages/jest-runner/src/index.js @@ -17,14 +17,14 @@ import type { TestWatcher, } from 'types/TestRunner'; -import typeof {worker} from './test_worker'; +import typeof {worker} from './testWorker'; import exit from 'exit'; -import runTest from './run_test'; +import runTest from './runTest'; import throat from 'throat'; import Worker from 'jest-worker'; -const TEST_WORKER_PATH = require.resolve('./test_worker'); +const TEST_WORKER_PATH = require.resolve('./testWorker'); type WorkerInterface = Worker & {worker: worker}; diff --git a/packages/jest-runner/src/run_test.js b/packages/jest-runner/src/runTest.js similarity index 100% rename from packages/jest-runner/src/run_test.js rename to packages/jest-runner/src/runTest.js diff --git a/packages/jest-runner/src/test_worker.js b/packages/jest-runner/src/testWorker.js similarity index 98% rename from packages/jest-runner/src/test_worker.js rename to packages/jest-runner/src/testWorker.js index 5cca559c8fe9..462fd827ac80 100644 --- a/packages/jest-runner/src/test_worker.js +++ b/packages/jest-runner/src/testWorker.js @@ -16,7 +16,7 @@ import exit from 'exit'; import HasteMap from 'jest-haste-map'; import {separateMessageFromStack} from 'jest-message-util'; import Runtime from 'jest-runtime'; -import runTest from './run_test'; +import runTest from './runTest'; export type WorkerData = {| config: ProjectConfig,