MCPcopy Create free account
hub / github.com/dev-mastery/comments-api / setup

Method setup

jest-mongo.js:14–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12 }
13
14 async setup () {
15 const globalConfig = JSON.parse(fs.readFileSync(globalConfigPath, 'utf-8'))
16
17 this.global.__MONGO_URI__ = globalConfig.mongoUri
18 this.global.__MONGO_DB_NAME__ = globalConfig.mongoDBName
19
20 await super.setup()
21 }
22
23 async teardown () {
24 await super.teardown()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected