Skip to content

Commit

Permalink
regenerate snapshots for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EddieAbbondanzio committed Jan 1, 2025
1 parent 2140900 commit ba3e525
Show file tree
Hide file tree
Showing 29 changed files with 433 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/internal/test_runner/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,7 @@ class Test extends AsyncResource {
}

class TestHook extends Test {
reportedType = 'hook';
#args;
constructor(fn, options) {
const { hookType, loc, parent, timeout, signal } = options;
Expand Down
22 changes: 22 additions & 0 deletions test/fixtures/test-runner/output/abort.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,31 @@ TAP version 13
ok 1 - ok 1
---
duration_ms: *
type: 'test'
...
# Subtest: ok 2
ok 2 - ok 2
---
duration_ms: *
type: 'test'
...
# Subtest: ok 3
ok 3 - ok 3
---
duration_ms: *
type: 'test'
...
# Subtest: ok 4
ok 4 - ok 4
---
duration_ms: *
type: 'test'
...
# Subtest: not ok 1
not ok 5 - not ok 1
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/abort.js:(LINE):7'
failureType: 'cancelledByParent'
error: 'test did not finish before its parent and was cancelled'
Expand All @@ -33,6 +38,7 @@ TAP version 13
not ok 6 - not ok 2
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/abort.js:(LINE):7'
failureType: 'cancelledByParent'
error: 'test did not finish before its parent and was cancelled'
Expand All @@ -42,6 +48,7 @@ TAP version 13
not ok 7 - not ok 3
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/abort.js:(LINE):7'
failureType: 'testAborted'
error: 'This operation was aborted'
Expand All @@ -63,6 +70,7 @@ TAP version 13
not ok 8 - not ok 4
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/abort.js:(LINE):7'
failureType: 'testAborted'
error: 'This operation was aborted'
Expand All @@ -84,6 +92,7 @@ TAP version 13
not ok 9 - not ok 5
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/abort.js:(LINE):7'
failureType: 'testAborted'
error: 'This operation was aborted'
Expand All @@ -105,6 +114,7 @@ TAP version 13
not ok 1 - promise timeout signal
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/abort.js:(LINE):1'
failureType: 'testAborted'
error: 'The operation was aborted due to timeout'
Expand All @@ -120,6 +130,7 @@ not ok 1 - promise timeout signal
not ok 2 - promise abort signal
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/abort.js:(LINE):1'
failureType: 'testAborted'
error: 'This operation was aborted'
Expand All @@ -142,26 +153,31 @@ not ok 2 - promise abort signal
ok 1 - ok 1
---
duration_ms: *
type: 'test'
...
# Subtest: ok 2
ok 2 - ok 2
---
duration_ms: *
type: 'test'
...
# Subtest: ok 3
ok 3 - ok 3
---
duration_ms: *
type: 'test'
...
# Subtest: ok 4
ok 4 - ok 4
---
duration_ms: *
type: 'test'
...
# Subtest: not ok 1
not ok 5 - not ok 1
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/abort.js:(LINE):5'
failureType: 'cancelledByParent'
error: 'test did not finish before its parent and was cancelled'
Expand All @@ -171,6 +187,7 @@ not ok 2 - promise abort signal
not ok 6 - not ok 2
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/abort.js:(LINE):5'
failureType: 'cancelledByParent'
error: 'test did not finish before its parent and was cancelled'
Expand All @@ -180,6 +197,7 @@ not ok 2 - promise abort signal
not ok 7 - not ok 3
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/abort.js:(LINE):5'
failureType: 'testAborted'
error: 'This operation was aborted'
Expand All @@ -201,6 +219,7 @@ not ok 2 - promise abort signal
not ok 8 - not ok 4
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/abort.js:(LINE):5'
failureType: 'testAborted'
error: 'This operation was aborted'
Expand All @@ -222,6 +241,7 @@ not ok 2 - promise abort signal
not ok 9 - not ok 5
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/abort.js:(LINE):5'
failureType: 'testAborted'
error: 'This operation was aborted'
Expand All @@ -243,6 +263,7 @@ not ok 2 - promise abort signal
not ok 3 - callback timeout signal
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/abort.js:(LINE):1'
failureType: 'testAborted'
error: 'The operation was aborted due to timeout'
Expand All @@ -258,6 +279,7 @@ not ok 3 - callback timeout signal
not ok 4 - callback abort signal
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/abort.js:(LINE):1'
failureType: 'testAborted'
error: 'This operation was aborted'
Expand Down
8 changes: 8 additions & 0 deletions test/fixtures/test-runner/output/abort_hooks.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ TAP version 13
not ok 1 - test 1
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/abort_hooks.js:(LINE):3'
failureType: 'cancelledByParent'
error: 'test did not finish before its parent and was cancelled'
Expand All @@ -21,6 +22,7 @@ TAP version 13
not ok 2 - test 2
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/abort_hooks.js:(LINE):3'
failureType: 'cancelledByParent'
error: 'test did not finish before its parent and was cancelled'
Expand Down Expand Up @@ -53,11 +55,13 @@ not ok 1 - 1 before describe
ok 1 - test 1
---
duration_ms: *
type: 'test'
...
# Subtest: test 2
ok 2 - test 2
---
duration_ms: *
type: 'test'
...
1..2
not ok 2 - 2 after describe
Expand Down Expand Up @@ -86,6 +90,7 @@ not ok 2 - 2 after describe
not ok 1 - test 1
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/abort_hooks.js:(LINE):3'
failureType: 'hookFailed'
error: 'This operation was aborted'
Expand All @@ -107,6 +112,7 @@ not ok 2 - 2 after describe
not ok 2 - test 2
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/abort_hooks.js:(LINE):3'
failureType: 'hookFailed'
error: 'This operation was aborted'
Expand Down Expand Up @@ -139,6 +145,7 @@ not ok 3 - 3 beforeEach describe
not ok 1 - test 1
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/abort_hooks.js:(LINE):3'
failureType: 'hookFailed'
error: 'This operation was aborted'
Expand All @@ -160,6 +167,7 @@ not ok 3 - 3 beforeEach describe
not ok 2 - test 2
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/abort_hooks.js:(LINE):3'
failureType: 'hookFailed'
error: 'This operation was aborted'
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/test-runner/output/abort_suite.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,31 @@ TAP version 13
ok 1 - ok 1
---
duration_ms: *
type: 'test'
...
# Subtest: ok 2
ok 2 - ok 2
---
duration_ms: *
type: 'test'
...
# Subtest: ok 3
ok 3 - ok 3
---
duration_ms: *
type: 'test'
...
# Subtest: ok 4
ok 4 - ok 4
---
duration_ms: *
type: 'test'
...
# Subtest: not ok 1
not ok 5 - not ok 1
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/abort_suite.js:(LINE):3'
failureType: 'cancelledByParent'
error: 'test did not finish before its parent and was cancelled'
Expand All @@ -33,6 +38,7 @@ TAP version 13
not ok 6 - not ok 2
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/abort_suite.js:(LINE):3'
failureType: 'cancelledByParent'
error: 'test did not finish before its parent and was cancelled'
Expand All @@ -42,6 +48,7 @@ TAP version 13
not ok 7 - not ok 3
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/abort_suite.js:(LINE):3'
failureType: 'testAborted'
error: 'This operation was aborted'
Expand All @@ -63,6 +70,7 @@ TAP version 13
not ok 8 - not ok 4
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/abort_suite.js:(LINE):3'
failureType: 'testAborted'
error: 'This operation was aborted'
Expand All @@ -84,6 +92,7 @@ TAP version 13
not ok 9 - not ok 5
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/abort_suite.js:(LINE):3'
failureType: 'testAborted'
error: 'This operation was aborted'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ TAP version 13
ok 1 - passing test
---
duration_ms: *
type: 'test'
...
1..1
# tests 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,20 @@ TAP version 13
ok 1 - test
---
duration_ms: *
type: 'test'
...
# Subtest: suite
# Subtest: test
ok 1 - test
---
duration_ms: *
type: 'test'
...
# Subtest: scheduled async
ok 2 - scheduled async
---
duration_ms: *
type: 'test'
...
1..2
ok 2 - suite
Expand All @@ -25,6 +28,7 @@ ok 2 - suite
ok 3 - scheduled async
---
duration_ms: *
type: 'test'
...
1..3
# tests 4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,56 +3,67 @@ TAP version 13
ok 1 - 1
---
duration_ms: *
type: 'test'
...
# Subtest: 2
ok 2 - 2
---
duration_ms: *
type: 'test'
...
# Subtest: 3
ok 3 - 3
---
duration_ms: *
type: 'test'
...
# Subtest: 4
ok 4 - 4
---
duration_ms: *
type: 'test'
...
# Subtest: 5
ok 5 - 5
---
duration_ms: *
type: 'test'
...
# Subtest: 6
ok 6 - 6
---
duration_ms: *
type: 'test'
...
# Subtest: 7
ok 7 - 7
---
duration_ms: *
type: 'test'
...
# Subtest: 8
ok 8 - 8
---
duration_ms: *
type: 'test'
...
# Subtest: 9
ok 9 - 9
---
duration_ms: *
type: 'test'
...
# Subtest: 10
ok 10 - 10
---
duration_ms: *
type: 'test'
...
# Subtest: 11
ok 11 - 11
---
duration_ms: *
type: 'test'
...
1..11
# tests 11
Expand Down
Loading

0 comments on commit ba3e525

Please sign in to comment.