mirror of
https://github.com/Kornstalx/5etools-mirror-2.github.io.git
synced 2025-10-28 20:45:35 -05:00
v1.198.1
This commit is contained in:
28
test/test-all.js
Normal file
28
test/test-all.js
Normal file
@@ -0,0 +1,28 @@
|
||||
"use strict";
|
||||
|
||||
function handleFail () {
|
||||
console.error("Tests failed!");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
async function main () {
|
||||
if (!(await (await import("./test-tags.js")).default)) handleFail();
|
||||
if (!(await (await import("./test-images.js")).default)) handleFail();
|
||||
if (!(await (await import("./test-image-paths.js")).default)) handleFail();
|
||||
await (await import("./test-pagenumbers.js")).default; // don't fail on missing page numbers
|
||||
if (!(await (await import("./test-json.js")).default)) handleFail();
|
||||
if (!(await (await import("./test-misc.js")).default)) handleFail();
|
||||
if (!(await (await import("./test-multisource.js")).default)) handleFail();
|
||||
if (!(await (await import("./test-language-fonts.js")).default)) handleFail();
|
||||
if (!(await (await import("./test-adventure-book-contents.js")).default)) handleFail();
|
||||
await (await import("./test-adventure-book-map-grids.js")).default; // don't fail on missing map grids
|
||||
if (!(await (await import("./test-foundry.js")).default)) handleFail();
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
main()
|
||||
.then(() => console.log("Tests complete."))
|
||||
.catch(e => {
|
||||
console.error(e);
|
||||
throw e;
|
||||
});
|
||||
Reference in New Issue
Block a user