Skip to content

Commit

Permalink
Remove jest-util from jest-snapshot. (jestjs#4341)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpojer authored Aug 24, 2017
1 parent 9c55f2b commit 9ea074c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/jest-snapshot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"chalk": "^2.0.1",
"jest-diff": "^20.0.3",
"jest-matcher-utils": "^20.0.3",
"jest-util": "^20.0.3",
"mkdirp": "^0.5.1",
"natural-compare": "^1.4.0",
"pretty-format": "^20.0.3"
}
Expand Down
10 changes: 5 additions & 5 deletions packages/jest-snapshot/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

import type {Path, SnapshotUpdateState} from 'types/Config';

import {getSerializers} from './plugins';
import chalk from 'chalk';
import fs from 'fs';
import mkdirp from 'mkdirp';
import naturalCompare from 'natural-compare';
import path from 'path';
import chalk from 'chalk';
import {createDirectory} from 'jest-util';
import prettyFormat from 'pretty-format';
import naturalCompare from 'natural-compare';
import {getSerializers} from './plugins';

const SNAPSHOT_EXTENSION = 'snap';
const SNAPSHOT_VERSION = '1';
Expand Down Expand Up @@ -150,7 +150,7 @@ const printBacktickString = (str: string) => {

const ensureDirectoryExists = (filePath: Path) => {
try {
createDirectory(path.join(path.dirname(filePath)));
mkdirp.sync(path.join(path.dirname(filePath)), '777');
} catch (e) {}
};

Expand Down

0 comments on commit 9ea074c

Please sign in to comment.