We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f84bddd commit 892f290Copy full SHA for 892f290
2 files changed
.github/workflows/build.yml
@@ -52,7 +52,7 @@ jobs:
52
53
npx prisma generate
54
npx prisma migrate deploy
55
- npm test -- --forceExit
+ npm test -- --runInBand
56
57
- name: Create short SHA for tagging
58
uses: benjlevesque/short-sha@v3.0
tests/user.test.js
@@ -1,6 +1,5 @@
1
const request = require("supertest");
2
const app = require("../server");
3
-const { PrismaClient } = require("../generated/prisma/index");
4
const prisma = require("../src/libs/prisma");
5
6
const RESTART_IDENTITY = `TRUNCATE TABLE "User" RESTART IDENTITY CASCADE;`;
@@ -74,7 +73,6 @@ describe('User API Endpoints', () => {
74
73
});
75
76
afterAll(async () => {
77
- await prisma.user.deleteMany();
78
- await prisma.$executeRawUnsafe(RESTART_IDENTITY);
79
await prisma.$disconnect();
+ if (app) app.close();
80
0 commit comments