Skip to content

Commit

Permalink
chore(jest-snapshot): standardize files name (#10736)
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Oct 30, 2020
1 parent ca26d1d commit 4eb4f6a
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/jest-snapshot/src/State.ts
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
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
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
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
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
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
Expand Up @@ -7,7 +7,7 @@

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

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

const {
DOMCollection,
Expand Down

0 comments on commit 4eb4f6a

Please sign in to comment.