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

chore(jest-snapshot): standardize files name #10736

Merged
merged 1 commit into from
Oct 30, 2020
Merged
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
2 changes: 1 addition & 1 deletion packages/jest-snapshot/src/State.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
serialize,
testNameToKey,
} from './utils';
import {InlineSnapshot, saveInlineSnapshots} from './inline_snapshots';
import {InlineSnapshot, saveInlineSnapshots} from './InlineSnapshots';
import type {BabelTraverse, Prettier, SnapshotData} from './types';

export type SnapshotStateOptions = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import prettier from 'prettier';
import babelTraverse from '@babel/traverse';
import {Frame} from 'jest-message-util';

import {saveInlineSnapshots} from '../inline_snapshots';
import {saveInlineSnapshots} from '../InlineSnapshots';
beforeEach(() => {
(prettier.resolveConfig.sync as jest.Mock).mockReset();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import * as path from 'path';
import {makeProjectConfig} from '../../../../TestUtils';

import {SnapshotResolver, buildSnapshotResolver} from '../snapshot_resolver';
import {SnapshotResolver, buildSnapshotResolver} from '../SnapshotResolver';

describe('defaults', () => {
let snapshotResolver: SnapshotResolver;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import prettyFormat = require('pretty-format');

import plugin from '../mock_serializer';
import plugin from '../mockSerializer';

test('mock with 0 calls and default name', () => {
const fn = jest.fn();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import jestSnapshot from '../';
import jestSnapshot from '..';

const {toThrowErrorMatchingSnapshot} = jestSnapshot;

Expand Down
2 changes: 1 addition & 1 deletion packages/jest-snapshot/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
SnapshotResolver as JestSnapshotResolver,
buildSnapshotResolver,
isSnapshotPath,
} from './snapshot_resolver';
} from './SnapshotResolver';
import SnapshotState from './State';
import {addSerializer, getSerializers} from './plugins';
import {
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-snapshot/src/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import prettyFormat = require('pretty-format');

import jestMockSerializer from './mock_serializer';
import jestMockSerializer from './mockSerializer';

const {
DOMCollection,
Expand Down