File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ debug(`isReplSet`, isReplSet);
1919const mongo = isReplSet ? new MongoMemoryReplSet ( options ) : new MongoMemoryServer ( options ) ;
2020
2121module . exports = class MongoEnvironment extends TestEnvironment {
22- globalConfigPath : string
22+ globalConfigPath : string ;
2323 constructor ( config : JestEnvironmentConfig , context : EnvironmentContext ) {
2424 super ( config , context ) ;
2525 this . globalConfigPath = pathJoin ( config . projectConfig . rootDir , 'globalConfig.json' ) ;
Original file line number Diff line number Diff line change 22import { writeFileSync } from 'fs' ;
33import { join } from 'path' ;
44import { MongoMemoryReplSet , MongoMemoryServer } from 'mongodb-memory-server' ;
5+ import type { JestEnvironmentConfig } from '@jest/environment' ;
56import {
67 getMongoURLEnvName ,
78 getMongodbMemoryOptions ,
89 shouldUseSharedDBForAllJestWorkers ,
910} from './helpers' ;
1011import type { Mongo } from './types' ;
11- import type { JestEnvironmentConfig } from '@jest/environment'
1212
1313const debug = require ( 'debug' ) ( 'jest-mongodb:setup' ) ;
1414const mongoMemoryServerOptions = getMongodbMemoryOptions ( ) ;
Original file line number Diff line number Diff line change 11import { join } from 'path' ;
22import { unlink } from 'fs' ;
3- import type { JestEnvironmentConfig } from '@jest/environment'
3+ import type { JestEnvironmentConfig } from '@jest/environment' ;
44
55const debug = require ( 'debug' ) ( 'jest-mongodb:teardown' ) ;
66
You can’t perform that action at this time.
0 commit comments