Skip to content

Commit 57ff8d3

Browse files
committed
fix: Git mapping for windows
1 parent a819dab commit 57ff8d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/testObservability/helper/helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ exports.getTestEnv = () => {
163163
}
164164

165165
exports.getFileSeparatorData = () => {
166-
const fileSeparatorRegex = /^win/.test(process.platform) ? "\\\\" : "/";
166+
const fileSeparatorRegex = /^win/.test(process.platform) ? "\\" : "/";
167167
const fileSeparator = /^win/.test(process.platform) ? "\\" : "/";
168168
return {
169169
fileSeparator,
@@ -1003,7 +1003,7 @@ exports.runCypressTestsLocally = (bsConfig, args, rawArgs) => {
10031003
const cypressProcess = spawn(
10041004
'npx',
10051005
['cypress', 'run', ...getReRunSpecs(rawArgs.slice(1)), ...getLocalSessionReporter()],
1006-
{ stdio: 'inherit', cwd: process.cwd(), env: process.env }
1006+
{ stdio: 'inherit', cwd: process.cwd(), env: process.env, shell: true }
10071007
);
10081008
cypressProcess.on('close', async (code) => {
10091009
logger.info(`Cypress process exited with code ${code}`);

0 commit comments

Comments
 (0)