mirror of
https://github.com/kbwo/testing-language-server.git
synced 2025-08-03 23:28:14 +00:00
feat: implement adapter for node --test
This commit is contained in:
parent
d275c28e88
commit
8bfe0e9435
9 changed files with 1005 additions and 208 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue