Skip to content

Commit 37520b7

Browse files
committed
maint(Tests): Use real path for @patternslib/patternslib module mapping. When extending this config elsewhere the path would not be right.
1 parent 41e56e0 commit 37520b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jest.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const path = require("path");
22
const config = require("@patternslib/dev/jest.config.js");
33

44
config.setupFilesAfterEnv.push(path.resolve(__dirname, "./src/setup-tests.js"));
5-
config.moduleNameMapper["@patternslib/patternslib/(.*)"] = "<rootDir>/$1";
5+
config.moduleNameMapper["@patternslib/patternslib/(.*)"] =
6+
path.resolve(__dirname) + "/$1";
67

78
module.exports = config;

0 commit comments

Comments
 (0)