Skip to content
Source
Sign inSign up
TanStack/schemas
Open History to see the last commit

apply-migrations.ts

5 lines218 Bytes

1import { applyD1Migrations, env } from 'cloudflare:test'
2​
3// Runs once per workers-pool test isolate so every *.worker.test.ts sees a
4// fully migrated D1 database.
5await applyD1Migrations(env.DB, env.TEST_MIGRATIONS)