We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46b83cd commit d4c50fcCopy full SHA for d4c50fc
__tests__/e2e.spec.ts
@@ -19,6 +19,7 @@ import {
19
const CLI_PATH = path.join(__dirname, '..')
20
const projectName = 'electron-vite-test'
21
const generatePath = path.join(CLI_PATH, projectName)
22
+const pkgManager = process.platform === 'win32' ? 'npm.cmd' : 'npm'
23
let electronApp: ElectronApplication
24
let page: Page
25
@@ -29,7 +30,7 @@ beforeAll(async () => {
29
30
31
// enableElectronMirror()
32
- const installLogs = execSync('npm install')
33
+ const installLogs = execSync(`${pkgManager} install`)
34
writeFileSync('npm-install.log', installLogs)
35
36
const buildLogs = execSync('vite build')
0 commit comments