Skip to content

Commit 6afbdc3

Browse files
author
chengyu.chengyulia
committed
fix: jest moduleNameMapper
1 parent ad7e6d6 commit 6afbdc3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pri",
3-
"version": "4.3.11",
3+
"version": "4.3.12",
44
"types": "src/node/index.ts",
55
"main": "built/node/index.js",
66
"scripts": {

src/built-in-plugins/command-test/plugin/run-test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const runTest = async (options: IOpts) => {
3333
if (eachPackage.packageJson && eachPackage.packageJson.name) {
3434
return {
3535
...obj,
36-
[eachPackage.packageJson.name]: path.join(eachPackage.rootPath, 'src'),
36+
[`^${eachPackage.packageJson.name}$`]: path.join(eachPackage.rootPath, 'src'),
3737
};
3838
}
3939
return obj;

0 commit comments

Comments
 (0)