mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 06:38:07 +02:00
Enable the "checks that the viewer re-exports the expected API functionality" unit-test in Node.js
By also running `gulp generic-legacy` before the Node.js unit-tests, we can enable one more test-case in Node.js environments.
This commit is contained in:
parent
850e605e36
commit
0790d94674
2 changed files with 32 additions and 21 deletions
33
gulpfile.mjs
33
gulpfile.mjs
|
@ -1950,20 +1950,25 @@ function createBaseline(done) {
|
|||
|
||||
gulp.task(
|
||||
"unittestcli",
|
||||
gulp.series(setTestEnv, "lib-legacy", function runUnitTestCli(done) {
|
||||
const options = [
|
||||
"node_modules/jasmine/bin/jasmine",
|
||||
"JASMINE_CONFIG_PATH=test/unit/clitests.json",
|
||||
];
|
||||
const jasmineProcess = startNode(options, { stdio: "inherit" });
|
||||
jasmineProcess.on("close", function (code) {
|
||||
if (code !== 0) {
|
||||
done(new Error("Unit tests failed."));
|
||||
return;
|
||||
}
|
||||
done();
|
||||
});
|
||||
})
|
||||
gulp.series(
|
||||
setTestEnv,
|
||||
"generic-legacy",
|
||||
"lib-legacy",
|
||||
function runUnitTestCli(done) {
|
||||
const options = [
|
||||
"node_modules/jasmine/bin/jasmine",
|
||||
"JASMINE_CONFIG_PATH=test/unit/clitests.json",
|
||||
];
|
||||
const jasmineProcess = startNode(options, { stdio: "inherit" });
|
||||
jasmineProcess.on("close", function (code) {
|
||||
if (code !== 0) {
|
||||
done(new Error("Unit tests failed."));
|
||||
return;
|
||||
}
|
||||
done();
|
||||
});
|
||||
}
|
||||
)
|
||||
);
|
||||
|
||||
gulp.task("lint", function (done) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue