Skip to content

Commit 5f32a7b

Browse files
fix: allow AI agents to reset the database during tests (#1086)
1 parent d1c3dde commit 5f32a7b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/setup/global-setup.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ export async function setup() {
3131
env: {
3232
...process.env,
3333
DATABASE_URL: `file:${BASE_DATABASE_PATH}`,
34+
// allow AI agents to reset the database while running tests
35+
PRISMA_USER_CONSENT_FOR_DANGEROUS_AI_ACTION: 'true',
3436
},
3537
},
3638
)

0 commit comments

Comments
 (0)