# Changelog

## [Unreleased]

## [3.9.12] 2026-06-25

### Fixes

- Fix `EAGAIN: resource temporarily unavailable, write` errors when running tests in parallel under multi-tape; the TAP summary is now written in a `beforeExit` handler using `console.log` instead of `fs.writeSync` in the `exit` handler, so Node's stream layer handles back-pressure and drain automatically

## [3.9.11] 2026-06-24

### Changes

- `t.comment()` now outputs `💬 message` instead of `# message`, so inline comments
  are not misinterpreted as test-case boundaries by TAP consumers that use `#` comments
  to group assertions (such as multi-tape's JUnit XML generator).

## [3.9.10] 2026-06-17

### Fixes

- Fix TAP assertion lines for uncaught exceptions, unhandled rejections, and premature `process.exit()` being missing from output; these are written inside the `exit` event handler and now use `fs.writeSync` instead of `console.log` for the same reason as the plan/count lines

## [3.9.9] 2026-06-09

### Fixes

- Fix TAP summary lines missing from output when stdout is piped and the test produces large amounts of output; the plan line and test counts are now written with `fs.writeSync` (a synchronous syscall) instead of `console.log`, so they cannot be lost when the process exits from an `exit` event handler where async I/O does not complete

## [3.9.8] 2026-04-18

### Fixes

- Fix "Tag not resolved for Function value" error when serializing objects containing function values in YAML output; functions are now rendered as `[Function]`
- Fix missing summary output when test produces large amounts of output; stdout is now drained before the process exits

## [3.9.7] 2025-11-22

### Fixes

- Refactor inlineYamlBlock to use yaml npm package instead of custom implementation
- Handle Error objects properly in inlineYamlBlock by extracting message, stack, and name properties

## [3.9.6] 2025-11-16

- Add visual indicators (✅/❌) to assertion output
- Support PT_NO_EMOJI environment variable to disable emojis

## [3.9.5] 2025-11-08

- No code changes

## [3.9.4] (not released to npm)

- No code changes

## [3.9.3] (not released to npm)

- Upgrade dependencies
- Add documentation that can be passed to a coding agent.

## [3.9.2] 2021-01-06

- Define error-handling for tryUntil / passWhile

## [3.9.1] 2020-12-02

- Write fallback xml as soon as possible

## [3.9.0] 2020-11-18

- New method passWhile

## [3.8.0] 2020-11-12

- Add errorComment() method
- Escape newline in equal() message
- Escape test name in prematureXunit

## [3.7.0] 2020-08-29

- Fail test if process.exit(1) is called after test
- Generate valid xml on premature exit
- Fail test on unhandled exceptions and rejections

## [3.6.4] 2020-08-19

- Include documentation in typescript definitions

## [3.6.3] 2020-06-28

- Rename waitUntil as tryUntil and add more documentation.

## [3.6.2] 2020-06-27

- Use reasonable default for waitUntil interval.

## [3.6.1] 2020-06-27

- Abort test if waitUntil fails

## [3.6.0] 2020-06-18

- Add waitUntil method

## [3.5.10] 2020-06-18

- Generate preliminary xml as fallback if test exits improperly

## [3.5.9] 2020-05-24

- Convert undefined and null to yaml correctly

## [3.5.8] 2020-05-23

- Report an error if tests call process.exit()

## [3.5.7] 2020-05-13

- Build release with github action. No code changes.

## [3.5.6] 2020-05-13

- Fix regression where time was reported wrong in junit xml

## [3.5.5] 2020-04-23

- Report skipped tests correctly in junit xml
- Regard other tests as skipped when using only

## [3.5.4] 2020-04-22

- Report error if test continues after returning
- Report skipped tests correctly

## [3.5.3] 2020-04-21

- Escape attribute values

## [3.5.2] 2020-04-20

- Summarize time-field correctly
- Report errors and failures separately

## [3.5.1] 2020-04-16

- Save Date object in case sinon overrides it later

## [3.5.0] 2020-04-15

- Generate junit xml output

## [3.4.2] 2020-03-09

- Make title field public

## [3.4.1] 2020-01-24

- Don't run beforeEach/afterEach for skipped tests

## [3.4.0] 2020-01-18

- Add a bail() method
- bail() if beforeAll fails
- bail() if test calls t after returning

## [3.3.0] 2020-01-15

- Test verification functions
- New verfication functions lt, lte, gt, and gte

## [3.2.1] 2020-01-11

- Print summary even if beforeAll fails
- Documentation

## [3.2.0] 2020-01-11

- t.skip()
- t.error()
- Add skip-option to test()

## [3.1.0] 2020-01-11

- t.true, t.false
- t.deepLooseEqual, t.notDeepLooseEqual
- Message for pass and fail shall be optional
- Allow synchronous test-functions

## [3.0.2] 2020-01-10

- Fix output format
- test.skip()
- notOk, notEqual, notDeepEqual
- throws, doesNotThrow

## [3.0.1] 2020-01-10

- Change module import pattern
- Allow argument to ok() to be any
- Exit with 1 on error

## [3.0.0] 2020-01-10

- Rewritten from scratch without dependency on tape
- Limited set of t.\* functions.

## [2.0.1] 2017-12-09

- Improved typings. @markanderstam

## [2.0.0] 2017-11-22

- Added an afterAll method. @markanderstam
- Removed the onFinish method. @markanderstam
