test-director

An ultra lightweight unit test director for Node.js.

MIT License

Downloads
269
Stars
25
Committers
1

Bot releases are visible (Hide)

test-director - Version 11.0.0 Latest Release

Published by jaydenseric over 1 year ago

Major

  • Updated Node.js support to ^16.9.0 || >= 18.0.0.
  • Tests now report a thrown AggregateError instance property errors.
  • Tests now report a thrown Error instance property cause.

Patch

  • Updated dev dependencies.
  • Use test-director as a dev dependency for tests.
  • Updated GitHub Actions CI config:
    • Run tests with Node.js v16, v18, v19.
  • Improved the installation instructions in the readme.
  • Remove node-fetch from code examples. Modern Node.js supports the fetch global.
test-director - Version 10.0.0

Published by jaydenseric about 2 years ago

Major

  • Removed the package main field.
  • Use the node: URL scheme for Node.js builtin module imports.

Patch

  • Updated dev dependencies.
test-director - Version 9.0.0

Published by jaydenseric about 2 years ago

Major

  • Updated Node.js support to ^14.17.0 || ^16.0.0 || >= 18.0.0.

Patch

  • Updated dependencies.
  • Removed the @types/stack-utils and stack-utils dependencies; error details are now output in a much simpler and more reliable way.
  • Added a new replace-stack-traces dev dependency for replacing error stack traces in test snapshots, and removed the test helper function simulatePublishedTraces.
  • Updated jsconfig.json:
    • Set compilerOptions.maxNodeModuleJsDepth to 10.
    • Set compilerOptions.module to nodenext.
  • Updated ESLint config.
  • Updated GitHub Actions CI config:
    • Run tests with Node.js v14, v16, v18.
    • Updated actions/checkout to v3.
    • Updated actions/setup-node to v3.
  • Removed redundant JSDoc @ignore tags.
  • Revamped the readme:
test-director - Version 8.0.2

Published by jaydenseric over 2 years ago

Patch

  • Updated dev dependencies.
  • Simplified dev dependencies and config for ESLint.
  • Removed the jsdoc-md dev dependency and the related package scripts, replacing the readme “API” section with manually written “Examples” and “Exports” sections.
  • Updated jsconfig.json to disable TypeScript automatic type acquisition for the project.
  • Moved the test index module.
  • Added a license.md MIT License file.
test-director - Version 8.0.1

Published by jaydenseric almost 3 years ago

Patch

  • Moved @types/node from package devDependencies to dependencies, using * for the version.
  • Moved @types/stack-utils from package devDependencies to dependencies.
test-director - Version 8.0.0

Published by jaydenseric almost 3 years ago

Major

  • Updated Node.js support to ^12.22.0 || ^14.17.0 || >= 16.0.0.
  • Updated dev dependencies, some of which require newer Node.js versions than previously supported.
  • Removed ./package from the package exports field; the full package.json filename must be used in a require path.
  • Renamed index.mjs to TestDirector.mjs and added it to the package exports field.
  • Implemented TypeScript types via JSDoc comments.

Patch

  • Simplified package scripts.
  • Check TypeScript types via a new package types script.
  • Stopped using the kleur chaining API.
  • Configured Prettier option singleQuote to the default, false.
  • Fixed a JSDoc example code bug.
  • Documentation tweaks.
test-director - Version 7.0.0

Published by jaydenseric almost 3 years ago

Major

  • Updated Node.js support to ^12.20.0 || ^14.13.1 || >= 16.0.0.
  • Updated dev dependencies, some of which require newer Node.js versions than previously supported.

Patch

  • Updated dependencies.
  • Replaced the package prepare script with a jsdoc script.
  • Added a package test:jsdoc script that checks the readme API docs are up to date with the source JSDoc.
  • Also run GitHub Actions CI with Node.js v17, and drop v15.
  • Prevent outputting the Node.js internal async Promise.all (index 0) error stack frame generated by recent Node.js versions that stack-utils fails to clean, (see tapjs/stack-utils#63).
  • Readme tweaks.
test-director - Version 6.0.0

Published by jaydenseric over 3 years ago

Major

  • Updated Node.js support to ^12.20 || >= 14.13.
  • The API is now ESM in .mjs files instead of CJS in .js files, accessible via import but not require.
  • The TestDirector class is now only accessible via a default import from the main index.
  • The TesDirector instance method add now throws a TypeError if argument 1 name is not a string.

Patch

  • Updated dependencies.
  • Stop using hard-rejection to detect unhandled Promise rejections in tests, as Node.js v15+ does this natively.
  • Updated GitHub Actions CI config:
    • Also run tests with Node.js v16.
    • Updated actions/checkout to v2.
    • Updated actions/setup-node to v2.
    • Don’t specify the CI environment variable as it’s set by default.
  • Use the regex flag u.
  • The TesDirector instance method add now throws a more specific TypeError if argument 2 test is not a function.
  • Stop snapshot testing major Node.js versions separately, as they all produce the same results now.
  • Changed the snapshot-assertion link in the readme from GitHub to npm.
  • Recommend coverage-node in the readme.
  • Prettier formatting fix for a code example.
  • Whitespace formatting tweaks.
  • Linked Node.js in the readme.
test-director - Version 5.0.0

Published by jaydenseric almost 4 years ago

Major

  • Updated supported Node.js versions to ^10.17.0 || ^12.0.0 || >= 13.7.0.
  • Updated dependencies, some of which require newer Node.js versions than were previously supported.
  • The updated kleur dependency causes subtle differences in which environments get colored console output.
  • Published files have been reorganized, so previously supported deep imports will need to be rewritten according to the newly documented paths.
  • Removed the package module field.
  • The summary message when tests fail now outputs using stderr via console.error instead of using stdout via console.info.

Patch

  • Removed Node.js v13 and added v15 to the versions tested in GitHub Actions CI.
  • Simplified the GitHub Actions CI config with the npm install-test command.
  • Updated the EditorConfig.
  • Use destructuring for require of the Node.js path API in tests.
  • Use the FORCE_COLOR environment variable in tests to ensure output is colorized.
  • Use the .ans file extension for snapshot text files containing ANSI colorization.
  • Removed npm-debug.log from the .gitignore file as npm v4.2.0+ doesn’t create it in the current working directory.
  • When tests fail and the throwOnFailure option is used, don’t set the process exit code to 1.
  • Tweaked the order of ANSI escape codes in messages so modifiers come before colors.
test-director - Version 4.0.1

Published by jaydenseric over 4 years ago

Patch

  • Updated dependencies.
  • Updated Node.js support to 10 - 12 || >= 13.7 to reflect the package exports related breaking changes.
  • Updated the package exports field to allow requiring package.json and specific deep imports.
  • Also run GitHub Actions with Node.js v14.
  • Use snapshot-assertion for snapshot tests.
  • Mention snapshot-assertion in the readme.
  • Improved the package prepare:prettier and test:prettier scripts.
  • Configured Prettier option semi to the default, true.
test-director - Version 4.0.0

Published by jaydenseric over 4 years ago

Major

  • Added a package exports field to support native ESM in Node.js.
  • Added package sideEffects and module fields for bundlers such as webpack.
  • Published files have been reorganized, so undocumented deep imports may no longer work.

Patch

  • Updated dependencies.
  • Lint fixes for prettier v2.
  • Added esm and mjs to the package tags field.
  • Ensure GitHub Actions run on pull request.
  • Moved the simulatePublishedTraces test helper into its own file.
  • Destructure assert imports in tests.
  • Use file extensions in require paths.
  • Tidied the position of a JSDoc comment.
test-director - Version 3.0.1

Published by jaydenseric over 4 years ago

Patch

  • Updated dev dependencies.
  • Added a new hard-rejection dev dependency to ensure unhandled rejections in tests exit the process with an error.
  • Don’t attempt to display an error stack if it’s missing, empty, or the same as the error message.
  • Improved code examples.
test-director - Version 3.0.0

Published by jaydenseric almost 5 years ago

Major

  • Updated Node.js support from v8.10+ to v10+.
  • Updated the stack-utils dependency to v2.
  • Use coverage-node for test code coverage.

Minor

  • Support tests throwing unusual error types, such as primitives.
  • test-director is now excluded from error traces.

Patch

  • Updated dev dependencies.
  • Changed the order of console color codes to color, then modifier.
  • Removed the extra newline that trails error stacks.
  • Implemented better tests using JS, replacing the shell scripts.
  • Updated code examples.
  • Added a readme “Support” section.
test-director - Version 2.0.0

Published by jaydenseric almost 5 years ago

Major

  • Updated Node.js support from v8.5+ to v8.10+.
  • Replaced the chalk dependency with kleur, which has a much smaller install size and outputs cleaner code. Its environment color support detection may behave differently.

Minor

  • Setup GitHub Sponsors funding:
    • Added .github/funding.yml to display a sponsor button in GitHub.
    • Added a package.json funding field to enable npm CLI funding features.

Patch

test-director - Version 1.0.0

Published by jaydenseric about 5 years ago

Initial release.