Comparing version 5.4.1 to 5.5.0
@@ -69,3 +69,4 @@ 'use strict'; | ||
var harness = createHarness({ | ||
autoclose: defined(config.autoclose, false) | ||
autoclose: defined(config.autoclose, false), | ||
noOnly: defined(conf.noOnly, defined(process.env.NODE_TAPE_NO_ONLY_TEST, false)) | ||
}); | ||
@@ -167,2 +168,3 @@ var running = false; | ||
if (only) { throw new Error('there can only be one only test'); } | ||
if (conf_.noOnly) { throw new Error('`only` tests are prohibited'); } | ||
only = true; | ||
@@ -169,0 +171,0 @@ var t = test.apply(null, arguments); |
{ | ||
"name": "tape", | ||
"version": "5.4.1", | ||
"version": "5.5.0", | ||
"description": "tap-producing test harness for node and browsers", | ||
@@ -58,3 +58,3 @@ "main": "index.js", | ||
"es-value-fixtures": "^1.2.1", | ||
"eslint": "^8.6.0", | ||
"eslint": "^8.7.0", | ||
"falafel": "^2.2.4", | ||
@@ -69,3 +69,3 @@ "js-yaml": "^3.14.0", | ||
"prepublish": "!(type not-in-publish) || not-in-publish || npm run prepublishOnly", | ||
"prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')", | ||
"prelint": "eclint check $(git ls-files 2>/dev/null | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' || echo '*.md *.js test/*.js')", | ||
"lint": "eslint --ext .js,.cjs,.mjs . bin/*", | ||
@@ -72,0 +72,0 @@ "pretest": "npm run lint", |
@@ -65,3 +65,3 @@ 'use strict'; | ||
' actual: |-', | ||
" { [RangeError: actual!] message: 'actual!' }", | ||
' { [RangeError: actual!] ' + ('cause' in Error.prototype ? '[cause]: undefined, ' : '') + "message: 'actual!' }", | ||
' at: Test.<anonymous> ($TEST/throws.js:$LINE:$COL)', | ||
@@ -107,3 +107,3 @@ ' stack: |-', | ||
' actual: |-', | ||
' { [Error: First] message: \'First\' }', | ||
' { [Error: First] ' + ('cause' in Error.prototype ? '[cause]: undefined, ' : '') + 'message: \'First\' }', | ||
' at: Test.<anonymous> ($TEST/throws.js:$LINE:$COL)', | ||
@@ -110,0 +110,0 @@ ' stack: |-', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances 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
260153
146
6716
587
8
25