refactor(instance): move scoped services to LayerMap (#17544)
This commit is contained in:
parent
4cb29967f6
commit
469c3a4204
15 changed files with 154 additions and 497 deletions
|
|
@ -1,10 +1,14 @@
|
|||
import { test, expect } from "bun:test"
|
||||
import { afterEach, test, expect } from "bun:test"
|
||||
import { Question } from "../../src/question"
|
||||
import { Instance } from "../../src/project/instance"
|
||||
import { QuestionID } from "../../src/question/schema"
|
||||
import { tmpdir } from "../fixture/fixture"
|
||||
import { SessionID } from "../../src/session/schema"
|
||||
|
||||
afterEach(async () => {
|
||||
await Instance.disposeAll()
|
||||
})
|
||||
|
||||
/** Reject all pending questions so dangling Deferred fibers don't hang the test. */
|
||||
async function rejectAll() {
|
||||
const pending = await Question.list()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue