summaryrefslogtreecommitdiff
path: root/js/unit_tests.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2019-05-09 01:15:24 +0200
committerRyan Dahl <ry@tinyclouds.org>2019-05-08 19:15:24 -0400
commitac8c6fec5bb2be97c8dbdb2286d2688575a593f2 (patch)
tree835335d3d48d77c6d5299af723b91adc2bc857b3 /js/unit_tests.ts
parentec9080f34c936d9af56cca68de664954053bf423 (diff)
Refactor unit test runner (#2294)
Properly discovers the permissions needed for each test.
Diffstat (limited to 'js/unit_tests.ts')
-rw-r--r--js/unit_tests.ts9
1 files changed, 8 insertions, 1 deletions
diff --git a/js/unit_tests.ts b/js/unit_tests.ts
index 2dd2988f6..b0c6a12f9 100644
--- a/js/unit_tests.ts
+++ b/js/unit_tests.ts
@@ -51,4 +51,11 @@ import "./version_test.ts";
import "../website/app_test.js";
-import "./deps/https/deno.land/std/testing/main.ts";
+import { runIfMain } from "./deps/https/deno.land/std/testing/mod.ts";
+
+async function main(): Promise<void> {
+ // Testing entire test suite serially
+ runIfMain(import.meta);
+}
+
+main();