Skip to content

Commit

Permalink
chore: Standardize filenames: jest-runner pkg (#7464)
Browse files Browse the repository at this point in the history
* renamed 'run_test.js' to 'runTest.js' and updated imports

* renamed 'test_worker.js' to 'testWorker.js' and updated imports

* added PR to CHANGELOG

* renamed test_runner.test.js to testRunner.test.js

* Consolidated this PR to generic point with other file renames
  • Loading branch information
betalantz authored and thymikee committed Dec 7, 2018
1 parent 3e805bc commit 509272d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
6 changes: 3 additions & 3 deletions packages/jest-runner/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 509272d

Please sign in to comment.