Skip to content

Commit 3c22ef3

Browse files
Make toPretty() render prettier output
1 parent 70a3999 commit 3c22ef3

17 files changed

+53
-57
lines changed

e2e/__tests__/__snapshots__/cliHandlesExactFilenames.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ exports[`CLI accepts exact file names if matchers matched 2`] = `
1313
Tests: 1 passed, 1 total
1414
Snapshots: 0 total
1515
Time: <<REPLACED>>
16-
Ran all test suites matching /.\\/foo\\/bar.spec.js/i."
16+
Ran all test suites matching ./foo/bar.spec.js."
1717
`;

e2e/__tests__/__snapshots__/customReporters.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ exports[`Custom Reporters Integration default reporters enabled 2`] = `
8282
Tests: 1 passed, 1 total
8383
Snapshots: 0 total
8484
Time: <<REPLACED>>
85-
Ran all test suites matching /add.test.js/i."
85+
Ran all test suites matching add.test.js."
8686
`;
8787
8888
exports[`Custom Reporters Integration default reporters enabled 3`] = `

e2e/__tests__/__snapshots__/emptyDescribeWithHooks.test.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Object {
77
Tests: 1 skipped, 1 total
88
Snapshots: 0 total
99
Time: <<REPLACED>>
10-
Ran all test suites matching /hookInDescribeWithSkippedTest.test.js/i.",
10+
Ran all test suites matching hookInDescribeWithSkippedTest.test.js.",
1111
}
1212
`;
1313

@@ -34,7 +34,7 @@ Object {
3434
Tests: 1 passed, 1 total
3535
Snapshots: 0 total
3636
Time: <<REPLACED>>
37-
Ran all test suites matching /hookInEmptyDescribe.test.js/i.",
37+
Ran all test suites matching hookInEmptyDescribe.test.js.",
3838
}
3939
`;
4040
@@ -61,7 +61,7 @@ Object {
6161
Tests: 1 passed, 1 total
6262
Snapshots: 0 total
6363
Time: <<REPLACED>>
64-
Ran all test suites matching /hookInEmptyNestedDescribe.test.js/i.",
64+
Ran all test suites matching hookInEmptyNestedDescribe.test.js.",
6565
}
6666
`;
6767
@@ -133,6 +133,6 @@ Object {
133133
Tests: 1 passed, 1 total
134134
Snapshots: 0 total
135135
Time: <<REPLACED>>
136-
Ran all test suites matching /multipleHooksInEmptyDescribe.test.js/i.",
136+
Ran all test suites matching multipleHooksInEmptyDescribe.test.js.",
137137
}
138138
`;

e2e/__tests__/__snapshots__/findRelatedFiles.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ exports[`--findRelatedTests flag coverage configuration is applied correctly 1`]
55
Tests: 1 passed, 1 total
66
Snapshots: 0 total
77
Time: <<REPLACED>>
8-
Ran all test suites related to files matching /a.js|b.js/i."
8+
Ran all test suites related to files matching a.js|b.js."
99
`;
1010
1111
exports[`--findRelatedTests flag coverage configuration is applied correctly 2`] = `
@@ -50,7 +50,7 @@ exports[`--findRelatedTests flag generates coverage report for filename 4`] = `
5050
Tests: 1 passed, 1 total
5151
Snapshots: 0 total
5252
Time: <<REPLACED>>
53-
Ran all test suites related to files matching /a.js/i."
53+
Ran all test suites related to files matching a.js."
5454
`;
5555
5656
exports[`--findRelatedTests flag generates coverage report for filename 5`] = `

e2e/__tests__/__snapshots__/nativeEsm.test.ts.snap

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,53 +5,53 @@ exports[`does not enforce import assertions 1`] = `
55
Tests: 2 passed, 2 total
66
Snapshots: 0 total
77
Time: <<REPLACED>>
8-
Ran all test suites matching /native-esm-missing-import-assertions.test/i."
8+
Ran all test suites matching native-esm-missing-import-assertions.test."
99
`;
1010
1111
exports[`on node >=16.9.0 support re-exports from CJS of dual packages 1`] = `
1212
"Test Suites: 1 passed, 1 total
1313
Tests: 1 passed, 1 total
1414
Snapshots: 0 total
1515
Time: <<REPLACED>>
16-
Ran all test suites matching /native-esm-deep-cjs-reexport.test.js/i."
16+
Ran all test suites matching native-esm-deep-cjs-reexport.test.js."
1717
`;
1818
1919
exports[`on node >=16.12.0 supports import assertions 1`] = `
2020
"Test Suites: 1 passed, 1 total
2121
Tests: 2 passed, 2 total
2222
Snapshots: 0 total
2323
Time: <<REPLACED>>
24-
Ran all test suites matching /native-esm-import-assertions.test/i."
24+
Ran all test suites matching native-esm-import-assertions.test."
2525
`;
2626
2727
exports[`runs WebAssembly (Wasm) test with native ESM 1`] = `
2828
"Test Suites: 1 passed, 1 total
2929
Tests: 6 passed, 6 total
3030
Snapshots: 0 total
3131
Time: <<REPLACED>>
32-
Ran all test suites matching /native-esm-wasm.test.js/i."
32+
Ran all test suites matching native-esm-wasm.test.js."
3333
`;
3434
3535
exports[`runs test with native ESM 1`] = `
3636
"Test Suites: 1 passed, 1 total
3737
Tests: 33 passed, 33 total
3838
Snapshots: 0 total
3939
Time: <<REPLACED>>
40-
Ran all test suites matching /native-esm.test.js/i."
40+
Ran all test suites matching native-esm.test.js."
4141
`;
4242
4343
exports[`support re-exports from CJS of core module 1`] = `
4444
"Test Suites: 1 passed, 1 total
4545
Tests: 1 passed, 1 total
4646
Snapshots: 0 total
4747
Time: <<REPLACED>>
48-
Ran all test suites matching /native-esm-core-cjs-reexport.test.js/i."
48+
Ran all test suites matching native-esm-core-cjs-reexport.test.js."
4949
`;
5050
5151
exports[`supports top-level await 1`] = `
5252
"Test Suites: 1 passed, 1 total
5353
Tests: 1 passed, 1 total
5454
Snapshots: 0 total
5555
Time: <<REPLACED>>
56-
Ran all test suites matching /native-esm.tla.test.js/i."
56+
Ran all test suites matching native-esm.tla.test.js."
5757
`;

e2e/__tests__/__snapshots__/promiseAsyncHandling.test.ts.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Object {
2222
Tests: 1 passed, 1 total
2323
Snapshots: 0 total
2424
Time: <<REPLACED>>
25-
Ran all test suites matching /unhandledRejectionAfterAll.test.js/i.",
25+
Ran all test suites matching unhandledRejectionAfterAll.test.js.",
2626
}
2727
`;
2828
@@ -63,7 +63,7 @@ Object {
6363
Tests: 2 failed, 2 total
6464
Snapshots: 0 total
6565
Time: <<REPLACED>>
66-
Ran all test suites matching /unhandledRejectionAfterEach.test.js/i.",
66+
Ran all test suites matching unhandledRejectionAfterEach.test.js.",
6767
}
6868
`;
6969
@@ -89,7 +89,7 @@ Object {
8989
Tests: 1 failed, 1 total
9090
Snapshots: 0 total
9191
Time: <<REPLACED>>
92-
Ran all test suites matching /unhandledRejectionBeforeAll.test.js/i.",
92+
Ran all test suites matching unhandledRejectionBeforeAll.test.js.",
9393
}
9494
`;
9595
@@ -130,7 +130,7 @@ Object {
130130
Tests: 2 failed, 2 total
131131
Snapshots: 0 total
132132
Time: <<REPLACED>>
133-
Ran all test suites matching /unhandledRejectionBeforeEach.test.js/i.",
133+
Ran all test suites matching unhandledRejectionBeforeEach.test.js.",
134134
}
135135
`;
136136
@@ -217,7 +217,7 @@ Object {
217217
Tests: 4 failed, 4 total
218218
Snapshots: 0 total
219219
Time: <<REPLACED>>
220-
Ran all test suites matching /unhandledRejectionTest.test.js/i.",
220+
Ran all test suites matching unhandledRejectionTest.test.js.",
221221
}
222222
`;
223223
@@ -231,6 +231,6 @@ Object {
231231
Tests: 3 passed, 3 total
232232
Snapshots: 0 total
233233
Time: <<REPLACED>>
234-
Ran all test suites matching /rejectionHandled.test.js/i.",
234+
Ran all test suites matching rejectionHandled.test.js.",
235235
}
236236
`;

e2e/__tests__/__snapshots__/snapshot.test.ts.snap

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,53 +85,53 @@ exports[`Snapshot works with escaped characters 1`] = `
8585
Tests: 1 passed, 1 total
8686
Snapshots: 1 written, 1 total
8787
Time: <<REPLACED>>
88-
Ran all test suites matching /snapshot.test.js/i."
88+
Ran all test suites matching snapshot.test.js."
8989
`;
9090
9191
exports[`Snapshot works with escaped characters 2`] = `
9292
"Test Suites: 1 passed, 1 total
9393
Tests: 2 passed, 2 total
9494
Snapshots: 1 written, 1 passed, 2 total
9595
Time: <<REPLACED>>
96-
Ran all test suites matching /snapshot.test.js/i."
96+
Ran all test suites matching snapshot.test.js."
9797
`;
9898
9999
exports[`Snapshot works with escaped characters 3`] = `
100100
"Test Suites: 1 passed, 1 total
101101
Tests: 2 passed, 2 total
102102
Snapshots: 2 passed, 2 total
103103
Time: <<REPLACED>>
104-
Ran all test suites matching /snapshot.test.js/i."
104+
Ran all test suites matching snapshot.test.js."
105105
`;
106106
107107
exports[`Snapshot works with escaped regex 1`] = `
108108
"Test Suites: 1 passed, 1 total
109109
Tests: 2 passed, 2 total
110110
Snapshots: 2 written, 2 total
111111
Time: <<REPLACED>>
112-
Ran all test suites matching /snapshotEscapeRegex.js/i."
112+
Ran all test suites matching snapshotEscapeRegex.js."
113113
`;
114114
115115
exports[`Snapshot works with escaped regex 2`] = `
116116
"Test Suites: 1 passed, 1 total
117117
Tests: 2 passed, 2 total
118118
Snapshots: 2 passed, 2 total
119119
Time: <<REPLACED>>
120-
Ran all test suites matching /snapshotEscapeRegex.js/i."
120+
Ran all test suites matching snapshotEscapeRegex.js."
121121
`;
122122
123123
exports[`Snapshot works with template literal substitutions 1`] = `
124124
"Test Suites: 1 passed, 1 total
125125
Tests: 1 passed, 1 total
126126
Snapshots: 1 written, 1 total
127127
Time: <<REPLACED>>
128-
Ran all test suites matching /snapshotEscapeSubstitution.test.js/i."
128+
Ran all test suites matching snapshotEscapeSubstitution.test.js."
129129
`;
130130
131131
exports[`Snapshot works with template literal substitutions 2`] = `
132132
"Test Suites: 1 passed, 1 total
133133
Tests: 1 passed, 1 total
134134
Snapshots: 1 passed, 1 total
135135
Time: <<REPLACED>>
136-
Ran all test suites matching /snapshotEscapeSubstitution.test.js/i."
136+
Ran all test suites matching snapshotEscapeSubstitution.test.js."
137137
`;

e2e/__tests__/__snapshots__/stackTrace.test.ts.snap

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,53 +5,53 @@ exports[`Stack Trace does not print a stack trace for errors when --noStackTrace
55
Tests: 3 failed, 3 total
66
Snapshots: 0 total
77
Time: <<REPLACED>>
8-
Ran all test suites matching /testError.test.js/i."
8+
Ran all test suites matching testError.test.js."
99
`;
1010
1111
exports[`Stack Trace does not print a stack trace for matching errors when --noStackTrace is given 1`] = `
1212
"Test Suites: 1 failed, 1 total
1313
Tests: 1 failed, 1 total
1414
Snapshots: 0 total
1515
Time: <<REPLACED>>
16-
Ran all test suites matching /stackTrace.test.js/i."
16+
Ran all test suites matching stackTrace.test.js."
1717
`;
1818
1919
exports[`Stack Trace does not print a stack trace for runtime errors when --noStackTrace is given 1`] = `
2020
"Test Suites: 1 failed, 1 total
2121
Tests: 0 total
2222
Snapshots: 0 total
2323
Time: <<REPLACED>>
24-
Ran all test suites matching /runtimeError.test.js/i."
24+
Ran all test suites matching runtimeError.test.js."
2525
`;
2626
2727
exports[`Stack Trace prints a stack trace for errors 1`] = `
2828
"Test Suites: 1 failed, 1 total
2929
Tests: 3 failed, 3 total
3030
Snapshots: 0 total
3131
Time: <<REPLACED>>
32-
Ran all test suites matching /testError.test.js/i."
32+
Ran all test suites matching testError.test.js."
3333
`;
3434
3535
exports[`Stack Trace prints a stack trace for errors without message in stack trace 1`] = `
3636
"Test Suites: 1 failed, 1 total
3737
Tests: 1 failed, 1 total
3838
Snapshots: 0 total
3939
Time: <<REPLACED>>
40-
Ran all test suites matching /stackTraceWithoutMessage.test.js/i."
40+
Ran all test suites matching stackTraceWithoutMessage.test.js."
4141
`;
4242
4343
exports[`Stack Trace prints a stack trace for matching errors 1`] = `
4444
"Test Suites: 1 failed, 1 total
4545
Tests: 1 failed, 1 total
4646
Snapshots: 0 total
4747
Time: <<REPLACED>>
48-
Ran all test suites matching /stackTrace.test.js/i."
48+
Ran all test suites matching stackTrace.test.js."
4949
`;
5050
5151
exports[`Stack Trace prints a stack trace for runtime errors 1`] = `
5252
"Test Suites: 1 failed, 1 total
5353
Tests: 0 total
5454
Snapshots: 0 total
5555
Time: <<REPLACED>>
56-
Ran all test suites matching /runtimeError.test.js/i."
56+
Ran all test suites matching runtimeError.test.js."
5757
`;

e2e/__tests__/__snapshots__/testTodo.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Test Suites: 1 passed, 1 total
1111
Tests: 2 todo, 1 passed, 3 total
1212
Snapshots: 0 total
1313
Time: <<REPLACED>>
14-
Ran all test suites matching /only-todo.test.js/i."
14+
Ran all test suites matching only-todo.test.js."
1515
`;
1616
1717
exports[`shows error messages when called with invalid argument 1`] = `

e2e/__tests__/__snapshots__/watchModePatterns.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ exports[`can press "p" to filter by file name: test summary 2`] = `
6666
Tests: 2 passed, 2 total
6767
Snapshots: 0 total
6868
Time: <<REPLACED>>
69-
Ran all test suites matching /bar/i."
69+
Ran all test suites matching bar."
7070
`;
7171
7272
exports[`can press "t" to filter by test name 1`] = `

0 commit comments

Comments
 (0)