Refactor health tests to remove explicit type annotations in Promises. Update web package version and scripts for Next.js. Enhance TypeScript configuration with new options and paths. Add Prisma commands to database package scripts. Include additional devDependencies across packages.
This commit is contained in:
@@ -14,7 +14,7 @@ describe("api health", () => {
|
||||
res.end();
|
||||
});
|
||||
|
||||
await new Promise<void>((resolve) => server.listen(0, resolve));
|
||||
await new Promise((resolve) => server.listen(0, resolve));
|
||||
const addr = server.address();
|
||||
assert.ok(addr && typeof addr === "object");
|
||||
const port = addr.port;
|
||||
@@ -24,7 +24,7 @@ describe("api health", () => {
|
||||
const body = (await response.json()) as { status: string };
|
||||
assert.equal(body.status, "ok");
|
||||
|
||||
await new Promise<void>((resolve, reject) =>
|
||||
await new Promise((resolve, reject) =>
|
||||
server.close((err) => (err ? reject(err) : resolve())),
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user