@newrelic/test-utilities
Advanced tools
Comparing version 7.3.2 to 8.0.0
@@ -103,3 +103,3 @@ #! /user/bin/env node | ||
let args = [testFile] | ||
if (process.env.PKG_TYPE === 'module') { | ||
if (process.env.PKG_TYPE === 'module' && process.env.NR_LOADER) { | ||
const loaderPath = path.resolve(process.env.NR_LOADER) | ||
@@ -106,0 +106,0 @@ const loaderArg = semver.lt(process.version, '18.0.0') ? '--experimental-loader' : '--loader' |
@@ -133,11 +133,6 @@ /* | ||
if (this.type === 'module') { | ||
if (this.type === 'module' && process.env.NR_LOADER) { | ||
// The test loader is defined in the agent, so this uses process.cwd() instead of __directory. | ||
const cwd = process.cwd() | ||
let loaderPath = path.resolve(`${cwd}/test/lib/`, 'test-loader.mjs') | ||
if (process.env.NR_LOADER) { | ||
// Allow for override from environment | ||
// This assumes that the loader path is defined in relation to the agent root. | ||
loaderPath = path.resolve(cwd, process.env.NR_LOADER) | ||
} | ||
const loaderPath = path.resolve(cwd, process.env.NR_LOADER) | ||
// changing env var for loader so subsequent commonjs | ||
@@ -144,0 +139,0 @@ // runs that have NR_LOADER do not try to load it |
{ | ||
"name": "@newrelic/test-utilities", | ||
"version": "7.3.2", | ||
"version": "8.0.0", | ||
"description": "Test library for New Relic instrumentation modules.", | ||
@@ -27,3 +27,3 @@ "main": "index.js", | ||
"engines": { | ||
"node": ">=14.0" | ||
"node": ">=16.0" | ||
}, | ||
@@ -52,3 +52,3 @@ "files": [ | ||
"sinon": "^11.1.1", | ||
"tap": "^16.3.3" | ||
"tap": "^16.3.8" | ||
}, | ||
@@ -55,0 +55,0 @@ "dependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
93311
2124
22