Skip to content

Commit 8ba1be6

Browse files
committed
Update test commands in package.json
1 parent 2a8f687 commit 8ba1be6

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

package-lock.json

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@
3838
"reffy": "18.6.3",
3939
"rimraf": "6.0.1",
4040
"strudy": "^3.1.1",
41-
"webidl2": "^24.4.1"
41+
"webidl2": "24.4.1"
4242
},
4343
"scripts": {
4444
"create-patch": "node tools/create-patch.js",
4545
"curate": "node tools/prepare-curated.js ed curated && node tools/prepare-packages.js curated packages",
4646
"test": "node --test",
47-
"test-css": "mocha --recursive test/css",
48-
"test-elements": "mocha --recursive test/elements",
49-
"test-idl": "mocha --recursive test/idl"
47+
"test-css": "node --test \"test/css/*.js\"",
48+
"test-elements": "node --test \"test/elements/*.js\"",
49+
"test-idl": "node --test \"test/idl/*.js\""
5050
}
5151
}

test/cddl/all.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ function writeAnomalies(report) {
2020
report.map(anomaly => anomaly.content).join('\n');
2121
}
2222

23-
describe('The curated view of CDDL extracts', function () {
24-
// First run may download micropip and cddlparser packages from the net
25-
this.timeout(30000);
23+
describe('The curated view of CDDL extracts', {timeout: 30000}, function () {
24+
// Long timeout as first run may download micropip and cddlparser packages
2625

2726
it('passes Strudy\'s scrutiny', async function () {
2827
const crawlFile = path.join(curatedFolder, 'index.json');

test/idl/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,6 @@ describe(`The ${packageView.name} view of Web IDL extracts`, async () => {
7575
validate(Object.values(all).flat());
7676
});
7777
});
78-
78+
7979
});
8080

0 commit comments

Comments
 (0)