From d6d3bd0ac13b9d3137218e6a8f1e242ce8b79b03 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 10 Nov 2023 15:41:35 -0300 Subject: tests/js/: Run the files directly Instead of dynamically `import()`ing them in `tests/runner.js`, make each test file instead load `tests/runner.js` and run its own tests. --- tests/js/utils.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tests/js/utils.js') diff --git a/tests/js/utils.js b/tests/js/utils.js index 523352a..b86d8c2 100644 --- a/tests/js/utils.js +++ b/tests/js/utils.js @@ -1,4 +1,5 @@ -import { eq, keys } from "../../src/utils.js"; +const { runTests } = require("../runner.js"); +const { eq, keys } = require("../../src/utils.js"); const test_eq = t => { t.start("eq()"); @@ -121,7 +122,9 @@ const test_keys = t => { }); }; -export const tests = [ +const tests = [ test_eq, test_keys, ]; + +runTests(tests); -- cgit v1.2.3