Skip to content

Commit 00af3b5

Browse files
test(server): deferred-import project fixtures own a database
A registered server always has statev2.sqlite, and the project CLI now refuses to run without it, so these fixtures create one. AI-assisted; verified with the tests and tools listed above.
1 parent e7d211e commit 00af3b5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎apps/server/src/cli/deferredImports.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ it.layer(Layer.mergeAll(NodeServices.layer, NodeCrypto.layer))("CLI deferred imp
8585
port: 3_773,
8686
}),
8787
});
88+
yield* fs.writeFileString(NodePath.join(baseDir, "userdata", "statev2.sqlite"), "");
8889
const unreachable: typeof globalThis.fetch = () =>
8990
Promise.reject(new Error("connection refused"));
9091

@@ -113,6 +114,7 @@ it.layer(Layer.mergeAll(NodeServices.layer, NodeCrypto.layer))("CLI deferred imp
113114
port: 3_773,
114115
}),
115116
});
117+
yield* fs.writeFileString(NodePath.join(baseDir, "userdata", "statev2.sqlite"), "");
116118

117119
hooks.importsAttempted.length = 0;
118120
let mutations = 0;

0 commit comments

Comments
 (0)