Skip to content

Commit 6df9fe6

Browse files
committed
feat: remove tap functionality
1 parent a25789b commit 6df9fe6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+911
-1298
lines changed

internal/constants.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
const SEMVER_SPEC_VERSION = '2.0.0'
66

77
const MAX_LENGTH = 256
8-
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
9-
/* istanbul ignore next */ 9007199254740991
8+
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* c8 ignore next */ 9007199254740991
109

1110
// Max safe segment length for coercion.
1211
const MAX_SAFE_COMPONENT_LENGTH = 16

package.json

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "The semantic version parser used by npm.",
55
"main": "index.js",
66
"scripts": {
7-
"test": "tap",
8-
"snap": "tap",
7+
"test": "node --test",
8+
"snap": "node --test --test-update-snapshots",
99
"lint": "npm run eslint",
1010
"postlint": "template-oss-check",
1111
"lintfix": "npm run eslint -- --fix",
@@ -17,6 +17,7 @@
1717
"@npmcli/eslint-config": "^5.0.0",
1818
"@npmcli/template-oss": "4.25.1",
1919
"benchmark": "^2.1.4",
20+
"c8": "^10.1.3",
2021
"tap": "^16.0.0"
2122
},
2223
"license": "ISC",
@@ -35,16 +36,22 @@
3536
"internal/",
3637
"ranges/",
3738
"index.js",
39+
"map.js",
3840
"preload.js",
3941
"range.bnf"
4042
],
41-
"tap": {
42-
"timeout": 30,
43-
"coverage-map": "map.js",
44-
"nyc-arg": [
45-
"--exclude",
46-
"tap-snapshots/**"
47-
]
43+
"c8": {
44+
"check-coverage": true,
45+
"lines": 100,
46+
"functions": 100,
47+
"branches": 100,
48+
"statements": 100,
49+
"exclude": [
50+
"tap-snapshots/**",
51+
"test/**",
52+
"coverage/**"
53+
],
54+
"reporter": ["text", "html", "lcov"]
4855
},
4956
"engines": {
5057
"node": ">=10"

ranges/min-version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const minVersion = (range, loose) => {
4444
case '<=':
4545
/* Ignore maximum versions */
4646
break
47-
/* istanbul ignore next */
47+
/* c8 ignore next 2 */
4848
default:
4949
throw new Error(`Unexpected operation: ${comparator.operator}`)
5050
}

0 commit comments

Comments
 (0)