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 @@ -21,7 +21,7 @@ module.exports = class MongoEnvironment extends TestEnvironment {
2121 globalConfigPath : string ;
2222 constructor ( config : JestEnvironmentConfig , context : EnvironmentContext ) {
2323 super ( config , context ) ;
24- this . globalConfigPath = pathJoin ( config . projectConfig . rootDir , 'globalConfig.json' ) ;
24+ this . globalConfigPath = pathJoin ( config . globalConfig . rootDir , 'globalConfig.json' ) ;
2525 }
2626
2727 async setup ( ) {
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ const mongo: Mongo = isReplSet
2121 ? new MongoMemoryReplSet ( mongoMemoryServerOptions )
2222 : new MongoMemoryServer ( mongoMemoryServerOptions ) ;
2323
24- module . exports = async ( config : JestEnvironmentConfig [ 'projectConfig ' ] ) => {
24+ module . exports = async ( config : JestEnvironmentConfig [ 'globalConfig ' ] ) => {
2525 const globalConfigPath = join ( config . rootDir , 'globalConfig.json' ) ;
2626
2727 const options = getMongodbMemoryOptions ( ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import type {JestEnvironmentConfig} from '@jest/environment';
44
55const debug = require ( 'debug' ) ( 'jest-mongodb:teardown' ) ;
66
7- module . exports = async function ( config : JestEnvironmentConfig [ 'projectConfig ' ] ) {
7+ module . exports = async function ( config : JestEnvironmentConfig [ 'globalConfig ' ] ) {
88 const globalConfigPath = join ( config . rootDir , 'globalConfig.json' ) ;
99
1010 debug ( 'Teardown mongod' ) ;
You can’t perform that action at this time.
0 commit comments