-
Notifications
You must be signed in to change notification settings - Fork 507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
testMatch error with Mapped Drive (Windows) #692
Comments
FYI:
The |
Not sure that this a problem in TSDX or upstream. The built-in config's testMatch: ['<rootDir>/**/*.(spec|test).{ts,tsx,js,jsx}'] It's possible the mapped drive is causing problems with path resolution, but TSDX's path resolution is fairly simple too: // Make sure any symlinks in the project folder are resolved:
// https://github.com/facebookincubator/create-react-app/issues/637
export const appDirectory = fs.realpathSync(process.cwd());
export const resolveApp = function(relativePath: string) {
return path.resolve(appDirectory, relativePath);
};
If the path resolution were the problem however, that would cause issues in lots of other places. It's used all over, not just for
Yes, you can use |
Thanks! Definately is an upstream issue with Jest since it's the only place the error came up and configging jest fixed it. |
Current Behavior
When using a mapped drive, the Test Match Pattern is incorrect.
For example:
If:
Z:
is mapped to\\server\projects\
Z:\myproject
Test match ends up
Z:/server/projects/myproject/**/*.(spec|test).{ts.tsx.js.jsx}
.Expected behavior
Test match should either be:
//server/projects/myproject/**/*.(spec|test).{ts.tsx.js.jsx}
orZ:/myproject/**/*.(spec|test).{ts.tsx.js.jsx}
.Your environment
The text was updated successfully, but these errors were encountered: