Merge pull request #387 from bknd-io/cp/fix-auth-bug

fix(tests): resolve prepublishOnly failures in AppAuth and postgres tests
This commit is contained in:
Cameron Pak
2026-04-03 08:34:33 -05:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -41,12 +41,12 @@ describe("postgres", () => {
beforeAll(async () => {
if (!(await isPostgresRunning())) {
await $`docker run --rm --name bknd-test-postgres -d -e POSTGRES_PASSWORD=${credentials.password} -e POSTGRES_USER=${credentials.user} -e POSTGRES_DB=${credentials.database} -p ${credentials.port}:5432 postgres:17`;
await $waitUntil("Postgres is running", isPostgresRunning);
await $waitUntil("Postgres is running", isPostgresRunning, 500, 20);
await new Promise((resolve) => setTimeout(resolve, 500));
}
disableConsoleLog();
});
}, 30000);
afterAll(async () => {
if (await isPostgresRunning()) {
try {
+1 -1
View File
@@ -149,7 +149,7 @@ describe("AppAuth", () => {
});
await app.build();
app.registerAdminController();
app.registerAdminController({ forceDev: true });
const spy = spyOn(app.module.auth.authenticator, "requestCookieRefresh");
// register custom route