Skip to content

Commit

Permalink
[ZETA-6459]: getNameAndVersion works regardless of scenario (#5)
Browse files Browse the repository at this point in the history
* ZETA-6459: Update packages.

* ZETA-6459: Add jest config for axios.

* ZETA-6459: Complete name and version logic.
  • Loading branch information
CharlieGreenman authored Aug 17, 2023
1 parent f68c4ae commit 6d7fc33
Show file tree
Hide file tree
Showing 5 changed files with 901 additions and 2,713 deletions.
13 changes: 12 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
module.exports = {
preset: 'ts-jest/presets/default-esm',
testEnvironment: 'node',
transform: {
'^.+\\.(t|j)s$': 'ts-jest',
'^.+\\.(t|j)s$': 'ts-jest'
},
globals: {
'ts-jest': {
diagnostics: false,
useESM: true
}
},
moduleNameMapper: {
axios: 'axios/dist/node/axios.cjs',
},
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(t|j)s$',
moduleFileExtensions: ['ts', 'js', 'json', 'node'],
Expand Down
Loading

0 comments on commit 6d7fc33

Please sign in to comment.