Skip to content

Commit

Permalink
Fixed the failing test on Windows for the jestjs#3516 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Ranger committed May 9, 2017
1 parent 1100811 commit 3ef22a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/jest-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"micromatch": "^2.3.11",
"node-notifier": "^5.0.2",
"pify": "^2.3.0",
"regex-slash": "^1.0.0",
"slash": "^1.0.0",
"string-length": "^1.0.1",
"throat": "^3.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
'use strict';

const chalk = require('chalk');
const rslash = require('regex-slash');
const {KEYS} = require('../constants');

const runJestMock = jest.fn();
Expand Down Expand Up @@ -163,8 +164,8 @@ describe('Watch mode flows', () => {
.forEach(key => stdin.emit(key));

stdin.emit(KEYS.ENTER);

expect(argv.testPathPattern).toMatchSnapshot();
expect(rslash(argv.testPathPattern)).toMatchSnapshot();
});

it('Results in pattern mode get truncated appropriately', () => {
Expand Down

0 comments on commit 3ef22a0

Please sign in to comment.