Skip to content

Commit 2618e3c

Browse files
authored
Merge pull request #127 from import-ai/fix/jest
fix(jest): fix jest fail
2 parents 0593896 + 197ce64 commit 2618e3c

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"cookie-parser": "^1.4.7",
6868
"express": "^5.1.0",
6969
"handlebars": "^4.7.8",
70-
"lodash-es": "^4.17.21",
70+
"lodash": "^4.17.21",
7171
"meilisearch": "^0.50.0",
7272
"minio": "^8.0.5",
7373
"nanoid": "^5.1.5",

pnpm-lock.yaml

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/interceptor/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { isObject } from 'lodash-es';
1+
import { isObject } from 'lodash';
22

33
export function camelToSnake(str: string): string {
44
return str.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`);

test/jest-e2e.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
"transform": {
77
"^.+\\.(t|j)s$": "ts-jest"
88
},
9+
"setupFilesAfterEnv": ["<rootDir>/../jest.setup.js"],
910
"moduleNameMapper": {
10-
"^src/(.*)$": "<rootDir>/../src/$1",
11+
"^omniboxd/(.*)$": "<rootDir>/../src/$1",
1112
"^test/(.*)$": "<rootDir>/../test/$1"
1213
}
1314
}

0 commit comments

Comments
 (0)