🏑 index : quine-global/ava.git

TAP version 13
---tty-stream-chunk-separator
not ok 1 - TypeError: test.serial.test is not a function
  ---
    name: TypeError
    message: test.serial.test is not a function
    at: 'Object.<anonymous> (~/test-tap/fixture/report/regular/bad-test-chain.cjs:3:13)'
  ...
---tty-stream-chunk-separator
not ok 2 - bad-test-chain.cjs exited with a non-zero exit code: 1
---tty-stream-chunk-separator
not ok 3 - nested-objects β€Ί format with max depth 4
  ---
    name: AssertionError
    assertion: t.deepEqual()
    details:
      'Difference (- actual, + expected):': |2-
          {
            a: {
              b: {
                foo: 'bar',
              },
            },
        +   c: {
        +     d: {
        +       e: {
        +         foo: 'bar',
        +       },
        +     },
        +   },
          }
    message: ''
    at: 'ExecutionContext.deepEqual (/lib/assert.js:339:15)'
  ...
---tty-stream-chunk-separator
not ok 4 - nested-objects β€Ί format like with max depth 4
  ---
    name: AssertionError
    assertion: t.like()
    details:
      'Difference (- actual, + expected):': |2-
          {
            a: {
              b: {
        -       foo: 'bar',
        +       foo: 'qux',
              },
            },
          }
    message: ''
    at: 'ExecutionContext.like (/lib/assert.js:391:15)'
  ...
---tty-stream-chunk-separator
# output-in-hook β€Ί before hook
---tty-stream-chunk-separator
# output-in-hook β€Ί before hook
---tty-stream-chunk-separator
#   before
---tty-stream-chunk-separator
# output-in-hook β€Ί beforeEach hook for passing test
---tty-stream-chunk-separator
#   beforeEach
---tty-stream-chunk-separator
# output-in-hook β€Ί beforeEach hook for failing test
---tty-stream-chunk-separator
#   beforeEach
---tty-stream-chunk-separator
ok 5 - output-in-hook β€Ί passing test
---tty-stream-chunk-separator
not ok 6 - output-in-hook β€Ί failing test
  ---
    name: AssertionError
    assertion: t.fail()
    message: Test failed via `t.fail()`
    at: 'ExecutionContext.fail (/lib/assert.js:287:15)'
  ...
---tty-stream-chunk-separator
# output-in-hook β€Ί afterEach hook for passing test
---tty-stream-chunk-separator
#   afterEach
---tty-stream-chunk-separator
# output-in-hook β€Ί afterEach.always hook for failing test
---tty-stream-chunk-separator
#   afterEachAlways
---tty-stream-chunk-separator
# output-in-hook β€Ί afterEach.always hook for passing test
---tty-stream-chunk-separator
#   afterEachAlways
---tty-stream-chunk-separator
# output-in-hook β€Ί cleanup
---tty-stream-chunk-separator
#   afterAlways
---tty-stream-chunk-separator
ok 7 - test β€Ί skip # SKIP
---tty-stream-chunk-separator
not ok 8 - test β€Ί todo # TODO
---tty-stream-chunk-separator
ok 9 - test β€Ί passes
---tty-stream-chunk-separator
not ok 10 - test β€Ί fails
  ---
    name: AssertionError
    assertion: t.fail()
    message: Test failed via `t.fail()`
    at: 'ExecutionContext.fail (/lib/assert.js:287:15)'
  ...
---tty-stream-chunk-separator
ok 11 - test β€Ί known failure
---tty-stream-chunk-separator
not ok 12 - test β€Ί no longer failing
  ---
    name: AssertionError
    message: >-
      Test was expected to fail, but succeeded, you should stop marking the test as
      failing
    at: 'Test.finish (/lib/test.js:633:28)'
  ...
---tty-stream-chunk-separator
not ok 13 - test β€Ί logs
#   hello
#   world
  ---
    name: AssertionError
    assertion: t.fail()
    message: Test failed via `t.fail()`
    at: 'ExecutionContext.fail (/lib/assert.js:287:15)'
  ...
---tty-stream-chunk-separator
not ok 14 - test β€Ί formatted
  ---
    name: AssertionError
    assertion: t.deepEqual()
    details:
      'Difference (- actual, + expected):': |-
        - 'foo'
        + 'bar'
    message: ''
    at: 'ExecutionContext.deepEqual (/lib/assert.js:339:15)'
  ...
---tty-stream-chunk-separator
not ok 15 - test β€Ί implementation throws non-error
  ---
    name: AssertionError
    details:
      'Error thrown in test:': 'null'
    message: Error thrown in test
    at: 'Test.run (/lib/test.js:546:25)'
  ...
---tty-stream-chunk-separator
not ok 16 - traces-in-t-throws β€Ί throws
  ---
    name: AssertionError
    assertion: t.throws()
    details:
      'Function threw unexpected exception:': |-
        Error {
          message: 'uh-oh',
        }
      'Expected instance of:': 'Function TypeError {}'
    message: ''
    at: 'throwError (~/test-tap/fixture/report/regular/traces-in-t-throws.cjs:4:8)'
  ...
---tty-stream-chunk-separator
not ok 17 - traces-in-t-throws β€Ί notThrows
  ---
    name: AssertionError
    assertion: t.notThrows()
    details:
      'Function threw:': |-
        Error {
          message: 'uh-oh',
        }
    message: ''
    at: 'throwError (~/test-tap/fixture/report/regular/traces-in-t-throws.cjs:4:8)'
  ...
---tty-stream-chunk-separator
not ok 18 - traces-in-t-throws β€Ί notThrowsAsync
  ---
    name: AssertionError
    assertion: t.notThrowsAsync()
    details:
      'Function threw:': |-
        Error {
          message: 'uh-oh',
        }
    message: ''
    at: 'throwError (~/test-tap/fixture/report/regular/traces-in-t-throws.cjs:4:8)'
  ...
---tty-stream-chunk-separator
not ok 19 - traces-in-t-throws β€Ί throwsAsync
  ---
    name: AssertionError
    assertion: t.throwsAsync()
    details:
      'Function threw synchronously. Use `t.throws()` instead:': |-
        Error {
          message: 'uh-oh',
        }
    message: ''
    at: 'throwError (~/test-tap/fixture/report/regular/traces-in-t-throws.cjs:4:8)'
  ...
---tty-stream-chunk-separator
not ok 20 - traces-in-t-throws β€Ί throwsAsync different error
  ---
    name: AssertionError
    assertion: t.throwsAsync()
    details:
      'Returned promise rejected with unexpected exception:': |-
        Error {
          message: 'uh-oh',
        }
      'Expected instance of:': 'Function TypeError {}'
    message: ''
    at: >-
      returnRejectedPromise
      (~/test-tap/fixture/report/regular/traces-in-t-throws.cjs:8:24)
  ...
---tty-stream-chunk-separator
ok 21 - uncaught-exception β€Ί passes
---tty-stream-chunk-separator
not ok 22 - Error: Can’t catch me
  ---
    name: Error
    message: Can’t catch me
    at: >-
      Immediate.<anonymous>
      (~/test-tap/fixture/report/regular/uncaught-exception.cjs:5:9)
  ...
---tty-stream-chunk-separator
not ok 23 - uncaught-exception.cjs exited with a non-zero exit code: 1
---tty-stream-chunk-separator
ok 24 - unhandled-rejection β€Ί passes
---tty-stream-chunk-separator
ok 25 - unhandled-rejection β€Ί unhandled non-error rejection
---tty-stream-chunk-separator
not ok 26 - Error: Can’t catch me
  ---
    name: Error
    message: Can’t catch me
    at: 'passes (~/test-tap/fixture/report/regular/unhandled-rejection.cjs:4:17)'
  ...
---tty-stream-chunk-separator
not ok 27 - unhandled-rejection
  ---
    message: Non-native error
    formatted: 'null'
  ...
---tty-stream-chunk-separator
not ok 28 - unhandled-rejection.cjs exited with a non-zero exit code: 1
---tty-stream-chunk-separator

1..21
# tests 20
# pass 6
# skip 1
# fail 21

---tty-stream-chunk-separator