Add custom jest resolver to fix requiring "uuid" module

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen committed 2023-03-16 16:01:47 +02:00
1 parent 1a6b11525d
commit 7627d7a426
2 files changed
+38

No files matched your search

@@ -1,5 +1,9 @@
const path = require('path');
module.exports = (rootDir) => {
const shared = {
"resolver": path.join(__dirname, "jest-28-resolver.js"),
transform: {
"^.+\\.(t|j)sx?$": ["@swc/jest", { cwd: rootDir }],
},