Skip to content

Commit bca00b9

Browse files
committed
fix: small fixes and improvements to testing features
small changes to make the code cleaner and more readable Refs: #42
1 parent 03d4932 commit bca00b9

3 files changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/main.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
name: Tests
22
on:
33
push:
4-
branches: [ main, master ]
4+
branches: [ main, develop ]
55
pull_request:
6-
branches: [ main, master ]
6+
branches: [ main, develop ]
77

88
defaults:
99
run:
1010
working-directory: ./labman
1111

1212
jobs:
13-
# Label of the container job
14-
container-job:
15-
# Containers must run in Linux based operating systems
13+
14+
playwright:
15+
1616
runs-on: ubuntu-latest
17-
# Docker Hub image that `container-job` executes in
17+
# Docker Hub image
1818
container: node:20-bookworm-slim
1919

20-
# Service containers to run with `container-job`
20+
# Service containers
2121
services:
2222
# Label used to access the service container
2323
postgres:
@@ -45,7 +45,7 @@ jobs:
4545
run: npm run migrate:test
4646

4747
- name: Create test user
48-
run: npx tsx testDb.ts
48+
run: npx tsx src/lib/db/testDb.ts
4949
env:
5050
NODE_ENV: test
5151

labman/src/lib/prisma.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ dotenv.config({
44
path: process.env.NODE_ENV === 'test' ? '.env.test' : '.env'
55
})
66

7-
console.log(process.env.DATABASE_URL)
87

98
import { PrismaClient } from '@/generated/prisma'
109

0 commit comments

Comments
 (0)