]> git.ardis.lu - csvio/commit
Fix temp files not being deleted
authorArdis Lu <ardisglu@gmail.com>
Sat, 8 Feb 2025 09:47:24 +0000 (01:47 -0800)
committerArdis Lu <ardisglu@gmail.com>
Sat, 8 Feb 2025 09:47:24 +0000 (01:47 -0800)
commita2a3c87666defe787ae3b9e5c9fbe5ec5ddf62c5
treec3a886886652757e186ee1f5886a3d5299588c1f
parent3c878384e5cde8978b5cb4144cbc9bfd4d027e4a
Fix temp files not being deleted

The test runner will run code inside a test suite block even if the tests inside are skipped, which means the temp file was created but the cleanup `after()` call is skipped. Putting the creation within `before()` makes the temp file creation skipped it the tests are skipped.
test/large.test.js
This page took 0.040921 seconds and 4 git commands to generate.