An ultra lightweight unit test director for Node.js.
MIT License
Bot releases are hidden (Show)
^16.9.0 || >= 18.0.0
.AggregateError
instance property errors
.Error
instance property cause
.test-director
as a dev dependency for tests.node-fetch
from code examples. Modern Node.js supports the fetch
global.Published by jaydenseric about 2 years ago
main
field.node:
URL scheme for Node.js builtin module imports.Published by jaydenseric about 2 years ago
^14.17.0 || ^16.0.0 || >= 18.0.0
.@types/stack-utils
and stack-utils
dependencies; error details are now output in a much simpler and more reliable way.replace-stack-traces
dev dependency for replacing error stack traces in test snapshots, and removed the test helper function simulatePublishedTraces
.jsconfig.json
:
compilerOptions.maxNodeModuleJsDepth
to 10
.compilerOptions.module
to nodenext
.actions/checkout
to v3.actions/setup-node
to v3.@ignore
tags.Published by jaydenseric over 2 years ago
jsdoc-md
dev dependency and the related package scripts, replacing the readme “API” section with manually written “Examples” and “Exports” sections.jsconfig.json
to disable TypeScript automatic type acquisition for the project.license.md
MIT License file.Published by jaydenseric almost 3 years ago
@types/node
from package devDependencies
to dependencies
, using *
for the version.@types/stack-utils
from package devDependencies
to dependencies
.Published by jaydenseric almost 3 years ago
^12.22.0 || ^14.17.0 || >= 16.0.0
../package
from the package exports
field; the full package.json
filename must be used in a require
path.index.mjs
to TestDirector.mjs
and added it to the package exports
field.types
script.kleur
chaining API.singleQuote
to the default, false
.Published by jaydenseric almost 3 years ago
^12.20.0 || ^14.13.1 || >= 16.0.0
.prepare
script with a jsdoc
script.test:jsdoc
script that checks the readme API docs are up to date with the source JSDoc.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).Published by jaydenseric over 3 years ago
^12.20 || >= 14.13
..mjs
files instead of CJS in .js
files, accessible via import
but not require
.TestDirector
class is now only accessible via a default import
from the main index.TesDirector
instance method add
now throws a TypeError
if argument 1 name
is not a string.hard-rejection
to detect unhandled Promise
rejections in tests, as Node.js v15+ does this natively.actions/checkout
to v2.actions/setup-node
to v2.CI
environment variable as it’s set by default.u
.TesDirector
instance method add
now throws a more specific TypeError
if argument 2 test
is not a function.snapshot-assertion
link in the readme from GitHub to npm.coverage-node
in the readme.Published by jaydenseric almost 4 years ago
^10.17.0 || ^12.0.0 || >= 13.7.0
.kleur
dependency causes subtle differences in which environments get colored console output.module
field.stderr
via console.error
instead of using stdout
via console.info
.npm install-test
command.require
of the Node.js path
API in tests.FORCE_COLOR
environment variable in tests to ensure output is colorized..ans
file extension for snapshot text files containing ANSI colorization.npm-debug.log
from the .gitignore
file as npm v4.2.0+ doesn’t create it in the current working directory.throwOnFailure
option is used, don’t set the process exit code to 1
.Published by jaydenseric over 4 years ago
10 - 12 || >= 13.7
to reflect the package exports
related breaking changes.exports
field to allow requiring package.json
and specific deep imports.snapshot-assertion
for snapshot tests.snapshot-assertion
in the readme.prepare:prettier
and test:prettier
scripts.semi
to the default, true
.Published by jaydenseric over 4 years ago
exports
field to support native ESM in Node.js.sideEffects
and module
fields for bundlers such as webpack.prettier
v2.esm
and mjs
to the package tags
field.simulatePublishedTraces
test helper into its own file.assert
imports in tests.Published by jaydenseric over 4 years ago
hard-rejection
dev dependency to ensure unhandled rejections in tests exit the process with an error.Published by jaydenseric almost 5 years ago
stack-utils
dependency to v2.coverage-node
for test code coverage.test-director
is now excluded from error traces.Published by jaydenseric almost 5 years ago
chalk
dependency with kleur
, which has a much smaller install size and outputs cleaner code. Its environment color support detection may behave differently..github/funding.yml
to display a sponsor button in GitHub.package.json
funding
field to enable npm CLI funding features.eslint-plugin-import-order-alphabetical
dev dependency.husky
and lint-staged
.Published by jaydenseric about 5 years ago
Initial release.