Skip to content

Commit 750b015

Browse files
committed
fixup! wip! Refactor glob handling
1 parent 3876838 commit 750b015

File tree

6 files changed

+40
-16
lines changed

6 files changed

+40
-16
lines changed

test/reporters/mini.edgecases.log

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,22 @@
1717

1818
Uncaught exception in test/fixture/report/edge-cases/throws.js
1919

20-
~/test/fixture/report/edge-cases/throws.js:3
20+
~/test/fixture/report/edge-cases/throws.js:1
21+
22+
 1: throw new Error('throws');
23+
2:
2124

2225
Error: throws
2326

2427

2528

2629
Uncaught exception in test/fixture/report/edge-cases/import-and-use-test-member.js
2730

28-
~/test/fixture/report/edge-cases/import-and-use-test-member.js:5
31+
~/test/fixture/report/edge-cases/import-and-use-test-member.js:3
32+
33+
2:
34+
 3: test('pass', t => t.pass());
35+
4:
2936

3037
TypeError: (0 , _.test) is not a function
3138

test/reporters/mini.regular.log

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,18 +419,23 @@ stderr
419419

420420
Uncaught exception in test/fixture/report/regular/bad-test-chain.js
421421

422-
~/test/fixture/report/regular/bad-test-chain.js:7
422+
~/test/fixture/report/regular/bad-test-chain.js:3
423+
424+
2:
425+
 3: test.serial.test('passes', t => t.pass());
426+
4:
423427

424428
TypeError: _.default.serial.test is not a function
425429

426430

427431

428432
Uncaught exception in test/fixture/report/regular/uncaught-exception.js
429433

430-
~/test/fixture/report/regular/uncaught-exception.js:9
434+
~/test/fixture/report/regular/uncaught-exception.js:5
431435

432-
8: });
433-
 9: 
436+
4: setTimeout(() => {
437+
 5: throw new Error('Can/'t catch me');
438+
6: });
434439

435440
Error: Can't catch me
436441

test/reporters/tap.edgecases.log

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ not ok 2 - Error: throws
88
---
99
name: Error
1010
message: throws
11-
at: 'Object.<anonymous> (throws.js:3:7)'
11+
at: 'Object.<anonymous> (throws.js:1:7)'
1212
...
1313
---tty-stream-chunk-separator
1414
# test/fixture/report/edge-cases/throws.js exited with a non-zero exit code: 1
@@ -22,7 +22,7 @@ not ok 5 - TypeError: (0 , _.test) is not a function
2222
---
2323
name: TypeError
2424
message: '(0 , _.test) is not a function'
25-
at: 'Object.<anonymous> (import-and-use-test-member.js:5:12)'
25+
at: 'Object.<anonymous> (import-and-use-test-member.js:3:1)'
2626
...
2727
---tty-stream-chunk-separator
2828
# test/fixture/report/edge-cases/import-and-use-test-member.js exited with a non-zero exit code: 1

test/reporters/tap.regular.log

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ not ok 1 - TypeError: _.default.serial.test is not a function
55
---
66
name: TypeError
77
message: _.default.serial.test is not a function
8-
at: 'Object.<anonymous> (bad-test-chain.js:7:18)'
8+
at: 'Object.test (bad-test-chain.js:3:13)'
99
...
1010
---tty-stream-chunk-separator
1111
# test/fixture/report/regular/bad-test-chain.js exited with a non-zero exit code: 1
@@ -40,7 +40,7 @@ not ok 8 - Error: Can't catch me
4040
---
4141
name: Error
4242
message: Can't catch me
43-
at: 'Timeout.setTimeout [as _onTimeout] (uncaught-exception.js:9:11)'
43+
at: 'Timeout.setTimeout (uncaught-exception.js:5:9)'
4444
...
4545
---tty-stream-chunk-separator
4646
# test/fixture/report/regular/uncaught-exception.js exited with a non-zero exit code: 1

test/reporters/verbose.edgecases.log

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55

66
Uncaught exception in test/fixture/report/edge-cases/throws.js
77

8-
~/test/fixture/report/edge-cases/throws.js:3
8+
~/test/fixture/report/edge-cases/throws.js:1
9+
10+
 1: throw new Error('throws');
11+
2:
912

1013
Error: throws
1114

@@ -17,7 +20,11 @@
1720

1821
Uncaught exception in test/fixture/report/edge-cases/import-and-use-test-member.js
1922

20-
~/test/fixture/report/edge-cases/import-and-use-test-member.js:5
23+
~/test/fixture/report/edge-cases/import-and-use-test-member.js:3
24+
25+
2:
26+
 3: test('pass', t => t.pass());
27+
4:
2128

2229
TypeError: (0 , _.test) is not a function
2330

test/reporters/verbose.regular.log

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
---tty-stream-chunk-separator
33
Uncaught exception in test/fixture/report/regular/bad-test-chain.js
44

5-
~/test/fixture/report/regular/bad-test-chain.js:7
5+
~/test/fixture/report/regular/bad-test-chain.js:3
6+
7+
2:
8+
 3: test.serial.test('passes', t => t.pass());
9+
4:
610

711
TypeError: _.default.serial.test is not a function
812

@@ -35,10 +39,11 @@
3539

3640
Uncaught exception in test/fixture/report/regular/uncaught-exception.js
3741

38-
~/test/fixture/report/regular/uncaught-exception.js:9
42+
~/test/fixture/report/regular/uncaught-exception.js:5
3943

40-
8: });
41-
 9: 
44+
4: setTimeout(() => {
45+
 5: throw new Error('Can/'t catch me');
46+
6: });
4247

4348
Error: Can't catch me
4449

0 commit comments

Comments
 (0)