We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 232b5ba commit cd98184Copy full SHA for cd98184
__e2e__/init.test.ts
@@ -6,6 +6,7 @@ import {
6
cleanupSync,
7
writeFiles,
8
} from '../jest/helpers';
9
+import slash from 'slash';
10
11
const DIR = getTempDirectory('command-init');
12
@@ -41,7 +42,7 @@ afterEach(() => {
41
42
43
let templatePath = path.resolve(DIR, 'custom', 'template');
44
if (process.platform === 'win32') {
- templatePath = templatePath.split('\\').join('/');
45
+ templatePath = slash(templatePath);
46
} else {
47
templatePath = `file://${templatePath}`;
48
}
0 commit comments