MongoHelper.ts 279 B

123456789
  1. import { beforeAll } from 'vitest'
  2. import { exec } from 'node:child_process'
  3. import { promisify } from 'node:util'
  4. beforeAll(async function () {
  5. await promisify(exec)(
  6. `cd ../../tools/migrations && yarn run migrations migrate -t 'server-ce & !nonblocking'`
  7. )
  8. }, 60_000)