@npmcli/template-oss 4.27.0 → 4.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,8 +6,11 @@
|
|
|
6
6
|
- name: Test (with coverage on Node >= 24)
|
|
7
7
|
if: $\{{ startsWith(matrix.node-version, '24') }}
|
|
8
8
|
run: {{ rootNpmPath }} run test:cover --ignore-scripts {{~#if jobRunFlags}} {{ jobRunFlags }}{{/if}}
|
|
9
|
-
- name: Test (
|
|
10
|
-
if: $\{{
|
|
9
|
+
- name: Test (on Node 20 with globbing workaround)
|
|
10
|
+
if: $\{{ startsWith(matrix.node-version, '20') }}
|
|
11
|
+
run: {{ rootNpmPath }} run test:node20 --ignore-scripts {{~#if jobRunFlags}} {{ jobRunFlags }}{{/if}}
|
|
12
|
+
- name: Test
|
|
13
|
+
if: $\{{ !startsWith(matrix.node-version, '24') && !startsWith(matrix.node-version, '20') }}
|
|
11
14
|
run: {{ rootNpmPath }} test --ignore-scripts {{~#if jobRunFlags}} {{ jobRunFlags }}{{/if}}
|
|
12
15
|
{{else}}
|
|
13
16
|
- name: Test
|
|
@@ -18,9 +18,10 @@
|
|
|
18
18
|
"postlint": "template-oss-check",
|
|
19
19
|
"template-oss-apply": "template-oss-apply --force",
|
|
20
20
|
{{#if isNodeTest}}
|
|
21
|
-
"snap": "node --test --test-update-snapshots ./test/**/*.js",
|
|
22
|
-
"test": "node --test ./test/**/*.js",
|
|
23
|
-
"test:
|
|
21
|
+
"snap": "node --test --test-update-snapshots './test/**/*.js'",
|
|
22
|
+
"test": "node --test './test/**/*.js'",
|
|
23
|
+
"test:node20": "node --test test",
|
|
24
|
+
"test:cover": "node --test --experimental-test-coverage --test-timeout=3000{{#if coverageThreshold}} --test-coverage-lines={{coverageThreshold}} --test-coverage-functions={{coverageThreshold}} --test-coverage-branches={{coverageThreshold}}{{/if}} './test/**/*.js'",
|
|
24
25
|
{{else}}
|
|
25
26
|
"snap": "{{#if typescript}}{{#if tap16}}c8 {{/if}}{{/if}}tap",
|
|
26
27
|
"test": "{{#if typescript}}{{#if tap16}}c8 {{/if}}{{/if}}tap",
|