Skip to content

Commit

Permalink
fix lodash dev deps for jest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mlwilkerson committed Aug 10, 2024
1 parent d32cbd0 commit 316c58a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@
"react-dom": "18.3.1",
"redux-mock-store": "^1.5.4",
"rewire": "^7.0.0",
"lodash-es": "^4.17.21"
"lodash": "^4.17.21"
}
}
4 changes: 2 additions & 2 deletions admin/src/__mocks__/axios.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import get from 'lodash-es/get'
import set from 'lodash-es/set'
const get = require('lodash/get')
const set = require('lodash/set')

// NOTE: the Jest docs on manual mocks indicate that mocks for things under
// node_modules should be in a __mocks__ directory that is adjacent to node_modules.
Expand Down

0 comments on commit 316c58a

Please sign in to comment.