We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9d24d1 commit 4ba5ee9Copy full SHA for 4ba5ee9
loaders/unit-test-loader.js
@@ -11,7 +11,7 @@ module.exports = function unitTestLoader(source, map) {
11
const opts = this.getOptions();
12
const testPathRelativeToAppPath = relative(opts.appPath, this.resourcePath);
13
const ext = extname(testPathRelativeToAppPath);
14
- const loadPath = testPathRelativeToAppPath.replace(ext, "").replace(sep, '/'); // use forward slash always
+ const loadPath = testPathRelativeToAppPath.replace(ext, "").split(sep).join('/'); // use forward slash always
15
16
if (loadPath) {
17
const platformExt = loadPath.split('.').slice(-1)[0];
0 commit comments