From ac8c6fec5bb2be97c8dbdb2286d2688575a593f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 9 May 2019 01:15:24 +0200 Subject: Refactor unit test runner (#2294) Properly discovers the permissions needed for each test. --- js/unit_tests.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'js/unit_tests.ts') 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 { + // Testing entire test suite serially + runIfMain(import.meta); +} + +main(); -- cgit v1.2.3