Skip to content

Commit b8d75a4

Browse files
committed
fix jest config to work with lodash-es
1 parent 6bd60f6 commit b8d75a4

File tree

2 files changed

+25
-8
lines changed

2 files changed

+25
-8
lines changed

package-lock.json

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@morgan-stanley/ts-mocking-bird",
3-
"version": "2.0.0",
3+
"version": "2.0.0",
44
"description": "A fully type safe mocking, call verification and import replacement library for jasmine and jest",
55
"license": "Apache-2.0",
66
"author": "Morgan Stanley",
@@ -35,6 +35,7 @@
3535
"@jsdevtools/coverage-istanbul-loader": "^3.0.5",
3636
"@types/jasmine": "^6.0.0",
3737
"@types/jest": "^30.0.0",
38+
"@types/lodash": "^4.17.24",
3839
"@types/lodash-es": "^4.17.12",
3940
"@types/node": "^25.3.5",
4041
"chromedriver": "^142.0.3",
@@ -57,6 +58,7 @@
5758
"karma-junit-reporter": "^2.0.1",
5859
"karma-sourcemap-loader": "^0.4.0",
5960
"karma-webpack": "^5.0.0",
61+
"lodash": "^4.17.23",
6062
"prettier": "^3.8.1",
6163
"puppeteer": "^24.17.0",
6264
"rimraf": "^6.0.1",
@@ -77,25 +79,38 @@
7779
"typescript": ">=4.2"
7880
},
7981
"peerDependenciesMeta": {
80-
"jest": {"optional": true},
81-
"jasmine": {"optional": true}
82+
"jest": {
83+
"optional": true
84+
},
85+
"jasmine": {
86+
"optional": true
87+
}
88+
},
89+
"resolutions": {
90+
"rollup": "npm:@rollup/wasm-node@^4.0.0"
8291
},
83-
"resolutions": {"rollup": "npm:@rollup/wasm-node@^4.0.0"},
8492
"repository": {
8593
"type": "git",
8694
"url": "git+https://github.com/morganstanley/ts-mocking-bird.git"
8795
},
88-
"dependencies": {"lodash-es": "^4.17.21"},
89-
"publishConfig": {"access": "public"},
96+
"dependencies": {
97+
"lodash-es": "^4.17.21"
98+
},
99+
"publishConfig": {
100+
"access": "public"
101+
},
90102
"jest-comments": [
91103
"to run jest tests you will have to install jest first. This conflicts with karma so not installed by default",
92104
"we specify the config here rather than in a jest.config.js file as package.json config is more compatible with older versions of jest that we test against"
93105
],
94106
"jest": {
95107
"preset": "ts-jest",
96-
"testMatch": ["**/spec/examples/*.spec.ts"],
108+
"testMatch": [
109+
"**/spec/examples/*.spec.ts"
110+
],
97111
"moduleNameMapper": {
98-
"^(\\.{1,2}/.*)\\.js$": "$1"
112+
"^(\\.{1,2}/.*)\\.js$": "$1",
113+
"^lodash-es$": "lodash"
99114
}
100115
},
101116
"type": "module"

0 commit comments

Comments
 (0)