test: move resetDb to own testing lib function
This commit is contained in:
@@ -3,8 +3,8 @@ import { beforeEach, describe, expect, it } from "bun:test";
|
||||
import app from "~/index";
|
||||
import { getTestDb } from "~/libs/test/getTestDb";
|
||||
import { getTestEnv } from "~/libs/test/getTestEnv";
|
||||
import { resetTestDb } from "~/libs/test/resetTestDb";
|
||||
import { server } from "~/mocks";
|
||||
import { resetDb } from "~/models/db";
|
||||
import { deviceTokensTable } from "~/models/schema";
|
||||
|
||||
server.listen();
|
||||
@@ -13,7 +13,7 @@ describe("requests the /watch-status route", () => {
|
||||
const db = getTestDb();
|
||||
|
||||
beforeEach(async () => {
|
||||
await resetDb();
|
||||
await resetTestDb();
|
||||
});
|
||||
|
||||
it("saving title, deviceId in db, should succeed", async () => {
|
||||
|
||||
Reference in New Issue
Block a user