point to cypress config, check that vite closes

This commit is contained in:
Loren Norman 2025-07-29 16:24:23 -04:00
parent 5b5f9d9c4f
commit 296bf65816

View file

@ -75,10 +75,18 @@ const
// extract the 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
viteProcess.kill()
if(!viteProcess.kill()) {
console.log("Vite failed to exit gracefully")
process.exit(1)
}
console.log('Server closed.')
}
},
exporterNames = Object.keys(exporters)