Skip to content

Commit 50ed805

Browse files
committed
trying to fix uuid
1 parent eeb6b1d commit 50ed805

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/utils/createTestSuite.util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async function createJestConfigFile(path: String, appName: String) {
7373
moduleNameMapper: {
7474
".+\\.(css|styl|less|sass|scss)$": "identity-obj-proxy",
7575
".+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/file-mock.js",
76-
"uuid": require.resolve('uuid'),
76+
"^uuid$": "uuid",
7777
},
7878
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
7979
testPathIgnorePatterns: ["node_modules", ".cache"],

app/src/utils/createTestSuiteNext.util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ module.exports = {
4242
moduleNameMapper: {
4343
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/file-mock.js",
4444
"\\.(css|less|scss)$": "identity-obj-proxy",
45-
"uuid": require.resolve('uuid'),
45+
"^uuid$": "uuid",
4646
}
4747
}
4848
`;

0 commit comments

Comments
 (0)