Skip to content

Commit

Permalink
test: compatible windows platform
Browse files Browse the repository at this point in the history
  • Loading branch information
caoxiemeihao committed Oct 28, 2024
1 parent 46b83cd commit d4c50fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion __tests__/e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
const CLI_PATH = path.join(__dirname, '..')
const projectName = 'electron-vite-test'
const generatePath = path.join(CLI_PATH, projectName)
const pkgManager = process.platform === 'win32' ? 'npm.cmd' : 'npm'
let electronApp: ElectronApplication
let page: Page

Expand All @@ -29,7 +30,7 @@ beforeAll(async () => {

// enableElectronMirror()

const installLogs = execSync('npm install')
const installLogs = execSync(`${pkgManager} install`)
writeFileSync('npm-install.log', installLogs)

const buildLogs = execSync('vite build')
Expand Down

0 comments on commit d4c50fc

Please sign in to comment.