feat: implement adapter for node --test

This commit is contained in:
kbwo 2024-10-18 00:05:59 +09:00
parent d275c28e88
commit 8bfe0e9435
9 changed files with 1005 additions and 208 deletions

View file

@ -1,5 +1,7 @@
const test = require("node:test");
const { describe, it } = require("node:test");
const assert = require("node:assert");
const { throwError } = require("./util.js");
// # Basic example
test("synchronous passing test", (t) => {
// This test passes because it does not throw an exception.
@ -165,3 +167,7 @@ describe.only("a suite", () => {
// This code is run.
});
});
test("import from external file. this must be fail", () => {
throwError();
});