(test: string)
| 88 | } |
| 89 | |
| 90 | function parseTestString(test: string): string { |
| 91 | if (wsl.useWsl() || !isWindows()) { |
| 92 | return `'${test}'`; |
| 93 | } |
| 94 | |
| 95 | // In windows and not using WSL |
| 96 | if (usingCmd()) { |
| 97 | return `"${test.replace(/"/g, '\\"')}"`; |
| 98 | } else { |
| 99 | // Assume using PowerShell |
| 100 | return `'${test.replace(/"/g, '\\"')}'`; |
| 101 | } |
| 102 | } |
no test coverage detected