Skip to content

Commit b88559c

Browse files
committed
fix(tests): remove need to build installers
1 parent 61510e7 commit b88559c

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

__tests__/build.helper.js

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ const runTests = useTS =>
1515
path.join(process.cwd(), '__tests__/projects/' + projectName, p)
1616

1717
await project.run(
18-
`vue-cli-service electron:build --x64 ${
19-
isWin ? '--win zip' : ''
20-
} --linux zip`
18+
`vue-cli-service electron:build --x64 --dir --linux${
19+
isWin ? ' --windows' : ''
20+
}`
2121
)
2222
// Ensure /dist is not modified
2323
expect(project.has('dist')).toBe(false)
@@ -35,17 +35,14 @@ const runTests = useTS =>
3535
expect(project.has(`dist_electron/linux-unpacked/${projectName}`)).toBe(
3636
true
3737
)
38-
// Ensure that setup file was not created
38+
// Ensure that setup files were not created
3939
expect(project.has(`dist_electron/${projectName} Setup 0.1.0.exe`)).toBe(
4040
false
4141
)
42-
// Ensure that zip files were created
43-
if (isWin) {
44-
expect(project.has(`dist_electron/${projectName}-0.1.0-win.zip`)).toBe(
45-
true
46-
)
47-
}
48-
expect(project.has(`dist_electron/${projectName}-0.1.0.zip`)).toBe(true)
42+
expect(
43+
project.has(`dist_electron/${projectName}-0.1.0-x86_64.AppImage`)
44+
).toBe(false)
45+
expect(project.has(`dist_electron/${projectName}_0.1.0_amd64`)).toBe(false)
4946
// Ensure base is set properly (for app protocol)
5047
const index = fs.readFileSync(
5148
projectPath('dist_electron/bundled/index.html'),

0 commit comments

Comments
 (0)