Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Naming convention/jest watcher #7314

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@

### Chore & Maintenance

- `[jest-watcher]` Standardize filenames ([#7314](https://github.com/facebook/jest/pull/7314))
- `[docs]` Add synchronous test.each setup ([#7150](https://github.com/facebook/jest/pull/7150))
- `[docs]` Add `this.extend` to the Custom Matchers API reference ([#7130](https://github.com/facebook/jest/pull/7130))
- `[docs]` Fix default value for `coverageReporters` value in configuration docs ([#7126](https://github.com/facebook/jest/pull/7126))
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-circus/src/format_node_assert_errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @flow strict-local
*/

import type {DiffOptions} from 'jest-diff/src/diff_strings';
import type {DiffOptions} from 'jest-diff/src/diffStrings';
import type {Event, State} from 'types/Circus';

import {printExpected, printReceived} from 'jest-matcher-utils';
Expand Down
4 changes: 2 additions & 2 deletions packages/jest-diff/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
* @flow
*/

import type {DiffOptions} from './diff_strings';
import type {DiffOptions} from './diffStrings';

import prettyFormat from 'pretty-format';
import chalk from 'chalk';
import getType from 'jest-get-type';
import diffStrings from './diff_strings';
import diffStrings from './diffStrings';
import {NO_DIFF_MESSAGE, SIMILAR_MESSAGE} from './constants';

const {
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-jasmine2/src/assert_support.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @flow
*/

import type {DiffOptions} from 'jest-diff/src/diff_strings';
import type {DiffOptions} from 'jest-diff/src/diffStrings';

import {printReceived, printExpected} from 'jest-matcher-utils';
import chalk from 'chalk';
Expand Down
8 changes: 4 additions & 4 deletions packages/jest-watcher/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
* @flow
*/

export {default as BaseWatchPlugin} from './base_watch_plugin';
export {default as JestHook} from './jest_hooks';
export {default as PatternPrompt} from './pattern_prompt';
export {default as BaseWatchPlugin} from './BaseWatchPlugin';
export {default as JestHook} from './JestHooks';
export {default as PatternPrompt} from './PatternPrompt';
export * from './constants';
export {default as Prompt} from './lib/Prompt';
export * from './lib/pattern_mode_helpers';
export * from './lib/patternModeHelpers';
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

'use strict';

import formatTestNameByPattern from '../format_test_name_by_pattern';
import formatTestNameByPattern from '../formatTestNameByPattern';

describe('for multiline test name returns', () => {
const testNames = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import scroll from '../scroll_list';
import scroll from '../scrollList';

it('When offset is -1', () => {
expect(scroll(25, {max: 10, offset: -1})).toEqual({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import type {ScrollOptions} from 'types/Watch';

export default function scroll(size: number, {offset, max}: ScrollOptions) {
export default function scrollList(size: number, {offset, max}: ScrollOptions) {
let start = 0;
let index = Math.min(offset, size);

Expand Down