chore: generate
This commit is contained in:
parent
147c6c4d51
commit
0294342f77
7 changed files with 91 additions and 146 deletions
|
|
@ -232,7 +232,9 @@ export const layer = Layer.effect(
|
|||
const hasMain = yield* d
|
||||
.select({ directory: ProjectDirectoryTable.directory })
|
||||
.from(ProjectDirectoryTable)
|
||||
.where(and(eq(ProjectDirectoryTable.project_id, input.projectID), eq(ProjectDirectoryTable.type, "main")))
|
||||
.where(
|
||||
and(eq(ProjectDirectoryTable.project_id, input.projectID), eq(ProjectDirectoryTable.type, "main")),
|
||||
)
|
||||
.get()
|
||||
yield* d
|
||||
.insert(ProjectDirectoryTable)
|
||||
|
|
|
|||
|
|
@ -22,13 +22,7 @@ afterEach(async () => {
|
|||
const noopBootstrap = Layer.succeed(InstanceBootstrap.Service, InstanceBootstrap.Service.of({ run: Effect.void }))
|
||||
const testInstanceStore = InstanceStore.defaultLayer.pipe(Layer.provide(noopBootstrap))
|
||||
const it = testEffect(
|
||||
Layer.mergeAll(
|
||||
FSUtil.defaultLayer,
|
||||
Database.defaultLayer,
|
||||
Snapshot.defaultLayer,
|
||||
testInstanceStore,
|
||||
httpApiLayer,
|
||||
),
|
||||
Layer.mergeAll(FSUtil.defaultLayer, Database.defaultLayer, Snapshot.defaultLayer, testInstanceStore, httpApiLayer),
|
||||
)
|
||||
|
||||
function request(directory: string, url: string, init: RequestInit = {}) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue