MCPcopy
hub / github.com/mongodb/node-mongodb-native / configureMockEnvHooks

Function configureMockEnvHooks

test/unit/cmap/connect.test.ts:40–50  ·  view source on GitHub ↗
(env: NodeJS.ProcessEnv)

Source from the content-addressed store, hash-verified

38};
39
40function configureMockEnvHooks(env: NodeJS.ProcessEnv) {
41 const cachedEnv = process.env;
42
43 beforeEach(function () {
44 process.env = env;
45 });
46
47 afterEach(function () {
48 process.env = cachedEnv;
49 });
50}
51
52describe('Connect Tests', function () {
53 context('when PLAIN auth enabled', () => {

Callers 1

connect.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected