mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-04 14:00:22 -05:00
fix: cleanup files made by the tmp library in cypress.run() (#24957)
* fix: cleanup files made by the tmp library in cypress.run() * Apply suggestions from code review * Update cli/lib/cypress.js Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
This commit is contained in:
@@ -31,6 +31,8 @@ const cypressModuleApi = {
|
||||
|
||||
options = util.normalizeModuleOptions(options)
|
||||
|
||||
tmp.setGracefulCleanup()
|
||||
|
||||
return tmp.fileAsync()
|
||||
.then((outputPath) => {
|
||||
options.outputPath = outputPath
|
||||
|
||||
Reference in New Issue
Block a user