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:
alex01
2022-12-08 13:31:54 -05:00
committed by GitHub
parent fc43cecdad
commit c9afe18d31
+2
View File
@@ -31,6 +31,8 @@ const cypressModuleApi = {
options = util.normalizeModuleOptions(options)
tmp.setGracefulCleanup()
return tmp.fileAsync()
.then((outputPath) => {
options.outputPath = outputPath