@@ -198,29 +198,27 @@ describe('default reporter', async () => {
198
198
reporters : [ [ 'default' , { isTTY : true , summary : false } ] ] ,
199
199
config : false ,
200
200
} )
201
- expect (
202
- [ ...stdout . matchAll ( / ( ✓ .* ) $ / gm) ] . map ( v => v [ 0 ] ) . filter ( v => ! v . includes ( 'ms' ) ) ,
203
- ) . toMatchInlineSnapshot ( `
204
- [
205
- "✓ test.for object : 0 = 'a', 2 = { te: 'st' }",
206
- "✓ test.for object : 0 = 'b', 2 = [ 'test' ]",
207
- "✓ test.each object : 0 = 'a', 2 = { te: 'st' } ",
208
- "✓ test.each object : 0 = 'b', 2 = [ 'test' ] ",
209
- "✓ test.for array : 0 = 'a', 2 = { te: 'st' }",
210
- "✓ test.for array : 0 = 'b', 2 = [ 'test' ]",
211
- "✓ test.each array : 0 = 'a', 2 = { te: 'st' }",
212
- "✓ test.each array : 0 = 'b', 2 = [ 'test' ]",
213
- "✓ object : add(1, 1) -> 2",
214
- "✓ object : add(1, 2) -> 3",
215
- "✓ object : add(2, 1) -> 3",
216
- "✓ array : add(1, 1) -> 2",
217
- "✓ array : add(1, 2) -> 3",
218
- "✓ array : add(2, 1) -> 3",
219
- "✓ first array element is object: 0 = { k1: 'v1' }, 1 = { k2: 'v2' }, k1 = 'v1', k2 = undefined",
220
- "✓ first array element is not object: 0 = 'foo', 1 = 'bar', k = $k",
221
- "✓ not array: 0 = { k: 'v1' }, 1 = undefined, k = 'v1'",
222
- "✓ not array: 0 = { k: 'v2' }, 1 = undefined, k = 'v2'",
223
- ]
201
+
202
+ expect ( trimReporterOutput ( stdout ) ) . toMatchInlineSnapshot ( `
203
+ "✓ fixtures/test-for-title.test.ts (18 tests) [...]ms
204
+ ✓ test.for object : 0 = 'a', 2 = { te: 'st' } [...]ms
205
+ ✓ test.for object : 0 = 'b', 2 = [ 'test' ] [...]ms
206
+ ✓ test.each object : 0 = 'a', 2 = { te: 'st' } [...]ms
207
+ ✓ test.each object : 0 = 'b', 2 = [ 'test' ] [...]ms
208
+ ✓ test.for array : 0 = 'a', 2 = { te: 'st' } [...]ms
209
+ ✓ test.for array : 0 = 'b', 2 = [ 'test' ] [...]ms
210
+ ✓ test.each array : 0 = 'a', 2 = { te: 'st' } [...]ms
211
+ ✓ test.each array : 0 = 'b', 2 = [ 'test' ] [...]ms
212
+ ✓ object : add(1, 1) -> 2 [...]ms
213
+ ✓ object : add(1, 2) -> 3 [...]ms
214
+ ✓ object : add(2, 1) -> 3 [...]ms
215
+ ✓ array : add(1, 1) -> 2 [...]ms
216
+ ✓ array : add(1, 2) -> 3 [...]ms
217
+ ✓ array : add(2, 1) -> 3 [...]ms
218
+ ✓ first array element is object: 0 = { k1: 'v1' }, 1 = { k2: 'v2' }, k1 = 'v1', k2 = undefined [...]ms
219
+ ✓ first array element is not object: 0 = 'foo', 1 = 'bar', k = $k [...]ms
220
+ ✓ not array: 0 = { k: 'v1' }, 1 = undefined, k = 'v1' [...]ms
221
+ ✓ not array: 0 = { k: 'v2' }, 1 = undefined, k = 'v2' [...]ms"
224
222
` )
225
223
} )
226
224
} , 120000 )
0 commit comments