Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce prismock and use it in transaction agent spec #786

Merged
merged 13 commits into from
Feb 28, 2024
10 changes: 5 additions & 5 deletions .github/workflows/bri-3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node: [16.17.0]
node: [17.0.0]

services:
postgres:
Expand Down Expand Up @@ -89,14 +89,14 @@ jobs:
working-directory: examples/bri-3
run: npm run lint:check

- name: Run tests
working-directory: examples/bri-3
run: npm run test

- name: Run prisma generate
working-directory: examples/bri-3
run: npm run prisma:generate

- name: Run tests
working-directory: examples/bri-3
run: npm run test

- name: Run prisma migrate
working-directory: examples/bri-3
run: npm run prisma:migrate:dev
Expand Down
4 changes: 4 additions & 0 deletions examples/bri-3/__mocks__/@prisma/client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { PrismockClient } from 'prismock';

export * from '@prisma/client';
export { PrismockClient as PrismaClient };
Loading
Loading