|
@@ -1,11 +1,16 @@
|
|
|
-import { describe, expect, test } from "bun:test"
|
|
|
|
|
|
|
+import { afterEach, describe, expect, test } from "bun:test"
|
|
|
import path from "path"
|
|
import path from "path"
|
|
|
|
|
+import { Instance } from "../../src/project/instance"
|
|
|
import { Server } from "../../src/server/server"
|
|
import { Server } from "../../src/server/server"
|
|
|
import { Log } from "../../src/util/log"
|
|
import { Log } from "../../src/util/log"
|
|
|
import { tmpdir } from "../fixture/fixture"
|
|
import { tmpdir } from "../fixture/fixture"
|
|
|
|
|
|
|
|
Log.init({ print: false })
|
|
Log.init({ print: false })
|
|
|
|
|
|
|
|
|
|
+afterEach(async () => {
|
|
|
|
|
+ await Instance.disposeAll()
|
|
|
|
|
+})
|
|
|
|
|
+
|
|
|
describe("experimental file httpapi", () => {
|
|
describe("experimental file httpapi", () => {
|
|
|
test("lists files, reads content, reports status, and serves docs", async () => {
|
|
test("lists files, reads content, reports status, and serves docs", async () => {
|
|
|
await using tmp = await tmpdir({
|
|
await using tmp = await tmpdir({
|