File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ debug(`isReplSet`, isReplSet);
19
19
const mongo = isReplSet ? new MongoMemoryReplSet ( options ) : new MongoMemoryServer ( options ) ;
20
20
21
21
module . exports = class MongoEnvironment extends TestEnvironment {
22
- globalConfigPath : string
22
+ globalConfigPath : string ;
23
23
constructor ( config : JestEnvironmentConfig , context : EnvironmentContext ) {
24
24
super ( config , context ) ;
25
25
this . globalConfigPath = pathJoin ( config . projectConfig . rootDir , 'globalConfig.json' ) ;
Original file line number Diff line number Diff line change 2
2
import { writeFileSync } from 'fs' ;
3
3
import { join } from 'path' ;
4
4
import { MongoMemoryReplSet , MongoMemoryServer } from 'mongodb-memory-server' ;
5
+ import type { JestEnvironmentConfig } from '@jest/environment' ;
5
6
import {
6
7
getMongoURLEnvName ,
7
8
getMongodbMemoryOptions ,
8
9
shouldUseSharedDBForAllJestWorkers ,
9
10
} from './helpers' ;
10
11
import type { Mongo } from './types' ;
11
- import type { JestEnvironmentConfig } from '@jest/environment'
12
12
13
13
const debug = require ( 'debug' ) ( 'jest-mongodb:setup' ) ;
14
14
const mongoMemoryServerOptions = getMongodbMemoryOptions ( ) ;
Original file line number Diff line number Diff line change 1
1
import { join } from 'path' ;
2
2
import { unlink } from 'fs' ;
3
- import type { JestEnvironmentConfig } from '@jest/environment'
3
+ import type { JestEnvironmentConfig } from '@jest/environment' ;
4
4
5
5
const debug = require ( 'debug' ) ( 'jest-mongodb:teardown' ) ;
6
6
You can’t perform that action at this time.
0 commit comments