Skip to content

Commit cc6112e

Browse files
CMR-9548: Fixing upstream serverless axios issue, axios directly, ran npm audit fix
1 parent 71f5be0 commit cc6112e

File tree

5 files changed

+2607
-2933
lines changed

5 files changed

+2607
-2933
lines changed

graph-db/jest.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,10 @@ module.exports = {
1010
setupFilesAfterEnv: ['<rootDir>/test-env.js'],
1111
globals: {
1212
testGremlinConnection: null
13+
},
14+
moduleNameMapper: {
15+
// Jest uses CommonJS to use axios version > 1.0 we must transpile the JavaScript module from ECMAScript type to CommonJS type
16+
// require.resolve, use(es) the internal require() machinery to look up the location of a module, but rather than loading the module, just return(s) the resolved filename.
17+
'^axios$': require.resolve('axios')
1318
}
1419
}

0 commit comments

Comments
 (0)