point to cypress config, check that vite closes
This commit is contained in:
parent
5b5f9d9c4f
commit
296bf65816
1 changed files with 10 additions and 2 deletions
12
export.js
12
export.js
|
|
@ -75,10 +75,18 @@ const
|
||||||
|
|
||||||
// extract the screenshots
|
// extract the screenshots
|
||||||
console.log('Generating screenshots...')
|
console.log('Generating screenshots...')
|
||||||
spawnSync("npx", ["cypress", "run", "--config", `downloadsFolder=${destination}/images`])
|
spawnSync("npx", ["cypress", "run",
|
||||||
|
"--config", `downloadsFolder=${destination}/images`,
|
||||||
|
"--config-file", `cypress/cypress.config.js`,
|
||||||
|
])
|
||||||
|
console.log('Generation complete.')
|
||||||
|
|
||||||
// kill the server
|
// kill the server
|
||||||
viteProcess.kill()
|
if(!viteProcess.kill()) {
|
||||||
|
console.log("Vite failed to exit gracefully")
|
||||||
|
process.exit(1)
|
||||||
|
}
|
||||||
|
console.log('Server closed.')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
exporterNames = Object.keys(exporters)
|
exporterNames = Object.keys(exporters)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue