diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2019-05-09 01:15:24 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-05-08 19:15:24 -0400 |
commit | ac8c6fec5bb2be97c8dbdb2286d2688575a593f2 (patch) | |
tree | 835335d3d48d77c6d5299af723b91adc2bc857b3 /js/unit_tests.ts | |
parent | ec9080f34c936d9af56cca68de664954053bf423 (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.ts | 9 |
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(); |