Skip to content

Commit e8b683a

Browse files
authored
fix: bump deps (#25)
1 parent f3f6eb1 commit e8b683a

File tree

5 files changed

+1301
-1478
lines changed

5 files changed

+1301
-1478
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"dependencies": {
2727
"ansi-escapes": "^3.0.0",
2828
"chalk": "^2.4.1",
29-
"jest-watcher": "^23.1.0",
29+
"jest-watcher": "^24.3.0",
3030
"slash": "^2.0.0",
3131
"string-length": "^2.0.0",
3232
"strip-ansi": "^5.0.0"
@@ -38,16 +38,16 @@
3838
"@babel/preset-flow": "^7.0.0",
3939
"babel-core": "^7.0.0-bridge.0",
4040
"babel-eslint": "^10.0.1",
41-
"babel-jest": "^23.4.2",
41+
"babel-jest": "^24.3.0",
4242
"eslint": "^5.12.1",
4343
"eslint-config-airbnb-base": "^13.1.0",
44-
"eslint-config-prettier": "^3.6.0",
44+
"eslint-config-prettier": "^4.1.0",
4545
"eslint-plugin-flowtype": "^3.2.1",
4646
"eslint-plugin-import": "^2.9.0",
4747
"eslint-plugin-jest": "^22.1.3",
4848
"eslint-plugin-prettier": "^3.0.1",
49-
"flow-bin": "^0.91.0",
50-
"jest": "^23.2.0",
49+
"flow-bin": "^0.94.0",
50+
"jest": "^24.3.0",
5151
"prettier": "^1.13.7"
5252
},
5353
"jest": {
@@ -56,7 +56,7 @@
5656
"<rootDir>/testname"
5757
],
5858
"snapshotSerializers": [
59-
"<rootDir>/node_modules/pretty-format/build/plugins/convert_ansi"
59+
"<rootDir>/node_modules/pretty-format/build/plugins/ConvertAnsi"
6060
],
6161
"testPathIgnorePatterns": [
6262
"<rootDir>/build/.*",

src/file_name_plugin/__tests__/__snapshots__/plugin.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ exports[`file matching is case insensitive 1`] = `
105105

106106
exports[`shows the correct initial state 1`] = `
107107
[MOCK - cursorHide]
108-
[MOCK - clearScreen]
108+
[MOCK - clear]
109109
110110
Pattern Mode Usage
111111
› Press Esc to exit pattern mode.

src/test_name_plugin/__tests__/__snapshots__/plugin.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ exports[`can use arrows to select a specific test 1`] = `
8383

8484
exports[`shows the correct initial state 1`] = `
8585
[MOCK - cursorHide]
86-
[MOCK - clearScreen]
86+
[MOCK - clear]
8787
8888
Pattern Mode Usage
8989
› Press Esc to exit pattern mode.
@@ -106,7 +106,7 @@ Pattern Mode Usage
106106

107107
exports[`shows the correct message when there are no cached tests 1`] = `
108108
[MOCK - cursorHide]
109-
[MOCK - clearScreen]
109+
[MOCK - clear]
110110
111111
Pattern Mode Usage
112112
› Press Esc to exit pattern mode.

src/test_utils/pluginTester.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,24 @@ expect.addSnapshotSerializer({
66
print: val => stripAnsi(val),
77
});
88

9+
/**
10+
* See https://github.com/facebook/jest/pull/7523 for more details
11+
*/
12+
const CLEAR = '\x1B[2J\x1B[3J\x1B[H';
13+
expect.addSnapshotSerializer({
14+
test: val => val.includes(CLEAR),
15+
print: val => stripAnsi(val.replace(CLEAR, '[MOCK - clear]')),
16+
});
17+
18+
/**
19+
* See https://github.com/facebook/jest/pull/7523 for more details
20+
*/
21+
const WINDOWS_CLEAR = '\x1B[2J\x1B[0f';
22+
expect.addSnapshotSerializer({
23+
test: val => val.includes(WINDOWS_CLEAR),
24+
print: val => stripAnsi(val.replace(WINDOWS_CLEAR, '[MOCK - clear]')),
25+
});
26+
927
jest.mock('ansi-escapes', () => ({
1028
clearScreen: '[MOCK - clearScreen]',
1129
cursorDown: (count = 1) => `[MOCK - cursorDown(${count})]`,

0 commit comments

Comments
 (0)