Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt committed Mar 29, 2024
1 parent 38a7422 commit e91acba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions e2e/db-utils.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import sql from "../packages/backend/src/utils/db"

export async function setOrgPro() {
await sql`update org set plan = 'pro' where name = 'TESTORG'`
return sql`update org set plan = 'pro' where name = 'TESTORG'`
}

export async function setOrgFree() {
await sql`update org set plan = 'free' where name = 'TESTORG'`
return sql`update org set plan = 'free' where name = 'TESTORG'`
}

export async function deleteOrg() {
await sql`delete from org where name = 'TESTORG'`
return sql`delete from org where name = 'TESTORG'`
}
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
"dev:frontend": "npm -w packages/frontend run dev",
"dev:backend": "npm -w packages/backend run dev",
"dev:radar": "npm -w packages/backend run dev:radar",
"dev:test": "concurrently \"npm run dev:frontend\" \"npm run dev:backend:test\"",
"todo": "TODO: clean scripts below and verify they all work",
"dev:withradar": "concurrently \"npm run dev:frontend\" \"npm run dev:backend\" \"npm run start:ml\" \"npm run dev:radar\"",
"dev:backend:test": "npm -w packages/backend run test",
"test": "npx playwright test",
"test:ui": "npx playwright test --ui"
},
Expand Down
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { defineConfig, devices } from "@playwright/test"
import dotenv from "dotenv"

// Read from default ".env" file.
dotenv.config()
dotenv.config({ path: "./packages/backend/.env" })

/**
* See https://playwright.dev/docs/test-configuration.
Expand Down

0 comments on commit e91acba

Please sign in to comment.