We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e11c92 commit 91aec3fCopy full SHA for 91aec3f
.github/workflows/deploy.yml
@@ -59,6 +59,11 @@ jobs:
59
vitest:
60
name: ⚡ Test
61
runs-on: ubuntu-latest
62
+ permissions:
63
+ # Required to checkout the code
64
+ contents: read
65
+ # Required to put a comment into the pull-request
66
+ pull-requests: write
67
steps:
68
- name: ⬇️ Checkout repo
69
uses: actions/checkout@v6
vitest.setup.ts
@@ -1,9 +1,16 @@
1
import '@testing-library/jest-dom'
2
import { cleanup } from '@testing-library/react'
3
import { afterEach } from 'vitest'
4
+import { pg } from '~/db.server'
5
6
export const BASE_URL = 'http://localhost:4200'
7
8
afterEach(() => {
9
cleanup()
10
})
11
+
12
+afterAll(async () => {
13
+ // prevent lingering connections from
14
+ // blocking other test suites
15
+ await pg.end()
16
+})
0 commit comments