tapjs

Test Anything Protocol tools for node

OTHER License

Downloads
21.9M
Stars
2.3K
Committers
118

Bot releases are visible (Hide)

tapjs - https://github.com/tapjs/tapjs/releases/tag/[email protected]

Published by isaacs 12 months ago

tapjs - https://github.com/tapjs/tapjs/releases/tag/[email protected]

Published by isaacs 12 months ago

tapjs - https://github.com/tapjs/tapjs/releases/tag/[email protected]

Published by isaacs about 1 year ago

tapjs - https://github.com/tapjs/tapjs/releases/tag/[email protected]

Published by isaacs about 1 year ago

tapjs - https://github.com/tapjs/tapjs/releases/tag/[email protected]

Published by isaacs about 1 year ago

tapjs - https://github.com/tapjs/tapjs/releases/tag/[email protected]

Published by isaacs about 1 year ago

tapjs - https://github.com/tapjs/tapjs/releases/tag/[email protected]

Published by isaacs about 1 year ago

tapjs - https://github.com/tapjs/tapjs/releases/tag/[email protected]

Published by isaacs about 1 year ago

tapjs - https://github.com/tapjs/tapjs/releases/tag/[email protected]

Published by isaacs about 1 year ago

tapjs - [email protected]

Published by isaacs about 1 year ago

What's Changed

Note: The formatting of Symbol objects and enumerable Symbol properties has changed in snapshots and object diffs.

You may need to run tap --snapshot after updating to this release, and/or update some tests that were relying on symbol property keys being ignored.

  • Include Symbol keys in formatting/comparison.
  • Print symbols in formatted objects as Symbol.for(...) if appropriate.
  • Print known symbols from the Symbol constructor as Symbol.<key>, eg Symbol.iterator instead of
    Symbol(Symbol.iterator).
  • Add reporter-file config option https://github.com/tapjs/tapjs/pull/931

Full Changelog: https://github.com/tapjs/tapjs/compare/[email protected]@18.4.0

tapjs -

Published by isaacs about 1 year ago

Bug-fix, actually turning off type checking by default, as intended.

tapjs - [email protected]

Published by isaacs about 1 year ago

Full Changelog: https://github.com/tapjs/tapjs/commits/[email protected]

tapjs - [email protected]

Published by isaacs about 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/tapjs/tapjs/commits/[email protected]

tapjs - [email protected]

Published by isaacs about 1 year ago

Note: this is the first auto-generated release notes release for tap 18, and GitHub picked up every change in all the repos pulled into the monorepo since forever. It's not technically "incorrect" per se, but it is unhelpful. Moving forward, these will be hopefully much less absurd. My apologies for the spam if you were tagged in this.


What's Changed

New Contributors

Full Changelog: https://github.com/tapjs/tapjs/commits/[email protected]

tapjs -

Published by isaacs over 2 years ago

tapjs -

Published by isaacs over 3 years ago

15.0 - 2021-03-30

This is a major refactor of much of tap's internals, and a lot of new features.

BREAKING CHANGES

  • Drop the use of the @std/esm module, in favor of native ES Modules.
  • Drop the inclusion of typescript by default. (Typescript still supported, but requires that you install it yourself.)
  • .jsx files only run automatically when --jsx config is explicitly enabled.
  • --check-coverage on by default.
  • Drop support for node <10.
  • Separate t.has from t.match, so these are distinct.
  • Deprecate aliases.
  • Do not report on test points filtered with only or grep options.
  • Resolve t.test() promise to the child test results, rather than the parent test.
  • Remove callback argument from t.beforeEach and t.afterEach. Return a promise if you wish these methods to be async.

NEW FEATURES and BUG FIXES

  • Restructure snapshot output folder, and change file extensions to .cjs.
  • Add t.compareOptions object to pass options to all the methods that use tcompare (ie, t.has, t.match, t.same, etc.)
  • Improved diffing and comparison output for long strings and buffers.
  • Add t.before method.
  • Add t.mock() API for mocking calls to require() in modules being tested.
  • Inherit the t.saveFixture boolean option.
  • Create fixtures symbolic links as junctions if pointing at directories.
  • Set both FORCE_COLOR and NO_COLOR environment variables appropriately.
  • Pull initial TS_NODE_COMPILER_OPTIONS from test environment.
  • Run fixture cleanup aysnchronously on t.teardown() to minimize Windows folder locking issues.
  • Load .taprc.yml and .taprc.yaml config files if present, and no .taprc is present.

DEPENDENCIES and REFACTORING

  • Extract most of the internal functionality to libtap.
  • Update nyc to version 15.
  • Conditional exports to limit diving into tap's internals except via supported APIs.