@newrelic/test-utilities
Advanced tools
Changelog
v6.5.3 (2022-04-20)
Bumped async to ^3.2.3.
Updated usage of queue.drain
which was a 3.x breaking change.
Resolved dev-only audit warnings.
Bumped moment from 2.29.1 to 2.29.2.
Bumped tap
to ^16.0.1.
Changelog
v6.5.2 (2022-03-24)
util.maxVersionPerMode
sorting by handling numbers as semver versions and not floats.Changelog
v6.5.1 (2022-03-24)
util.maxVersionPerMode
by sorting versions to ensure the last package is the latest.Changelog
v6.5.0 (2022-03-21)
Fixed how version resolution occurs when semver ranges are not the latest major version.
Fixed how latest
gets resolved by actually using the latest version.
Added printing list of packages and their versions at the end of a run.
Changelog
v6.4.1 (2022-02-23)
Fixed link to discuss.newrelic.com in README.
Resolved several dev-dependency audit warnings.
Bumped glob
to ^7.2.0.
Changelog
v6.4.0 (2022-01-31)
Added a warning and/or error when tests present in testing directory are not included in test specification.
Updated add-to-board
to use org level NODE_AGENT_GH_TOKEN
Changelog
v6.3.0 (2022-01-10)
Added workflow to automate preparing release notes by reusing the newrelic/node-newrelic/.github/workflows/prep-release.yml@main workflow from agent repository.
Added job to automatically add issues/pr to Node.js Engineering board
Fixed overeager pattern-filter interpretation.
Added getShim
method for retrieving a test Shim instance.
This enables test setup involving instrumentation like scenarios (adding segments, etc.) without reaching into the internal tracer.
Changelog
v6.2.0 (2021-11-19)
Added clearing of registered instrumentation to unload
.
Added getContextManager
to retrieve the active context manager in agent versions 8.6.0+.
Bumped newrelic
dev dependency to ^8.6.0
.
Changelog
v6.1.1 (2021-10-20)
Fix pattern matching regression when parsing names of test files.
Refactored test pattern filtering by extracting to its own function. Also added a few missing test pattern test cases.
Changelog
v6.1.0 (2021-10-19)
Added the -P, --pattern
flag to allow filtering tests by keyword(s).
Added support for running specific test files by name or globbing pattern.
Added a --samples
value to CLI to allow an override of sampling for a given test run.
Global sample value will be used when it is less than the samples value set on a given package in the tests stanza.
Added ability to run versioned tests against version tags. For example: newrelic@latest
.
When a version such as package@latest
is specified in the versioned test package.json
declarations, it won't directly satisfy semver matches against the package versions manually pulled down and cached. The runner now attempts to directly install the configured version, which also results in a test failure if the package fails to install. Previously, failure to be able to install a dependency would log a warning and then just not run any tests and let CI pass.
Upgraded setup-node CI job to v2 and changed the linting node version to lts/* for future proofing.
Added @newrelic/eslint-config to rely on a centralized eslint ruleset.
Added a pre-commit hook to check if package.json changes and run oss third-party manifest and oss third-party notices.
This will ensure the third_party_manifest.json and THIRD_PARTY_NOTICES.md are up to date.
Changed runner output to only list package versions when a test fails.