Files
supabase/packages/ai-commands/vitest.setup.ts
Ivan Vasilov 8693222124 chore: AI-commands tests with pnpm (#31250)
* Remove jest and add vitest in its place. Refactor the jest setup into vitest.

* Modify the expect extensions to work with vitest.

* FIx the tests.
2024-12-20 17:32:19 +01:00

12 lines
266 B
TypeScript

import { config } from 'dotenv'
import { statSync } from 'fs'
import './test/extensions'
if (!process.env.CI) {
// Use keys from studio .env.local for local tests
const envPath = '../../apps/studio/.env.local'
statSync(envPath)
config({ path: envPath })
}