diff --git a/src/setupTests.ts b/src/setupTests.ts index 58f75362..9a9935e3 100644 --- a/src/setupTests.ts +++ b/src/setupTests.ts @@ -1,5 +1,6 @@ import { patchMongooseSchemaIndex } from './utils/patchMongoose'; +import { beforeAll } from '@jest/globals'; -global.beforeAll(() => { +beforeAll(() => { patchMongooseSchemaIndex(); });