Skip to content

Commit e350743

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

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

+898
-1299
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: 3 additions & 10 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 --experimental-test-coverage --test-coverage-lines=100 --test-coverage-functions=100 --test-coverage-branches=100",
8+
"snap": "node --test --test-update-snapshots",
99
"lint": "npm run eslint",
1010
"postlint": "template-oss-check",
1111
"lintfix": "npm run eslint -- --fix",
@@ -35,17 +35,10 @@
3535
"internal/",
3636
"ranges/",
3737
"index.js",
38+
"map.js",
3839
"preload.js",
3940
"range.bnf"
4041
],
41-
"tap": {
42-
"timeout": 30,
43-
"coverage-map": "map.js",
44-
"nyc-arg": [
45-
"--exclude",
46-
"tap-snapshots/**"
47-
]
48-
},
4942
"engines": {
5043
"node": ">=10"
5144
},

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)