mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
Three tests registered the hook that removes their temp directory before the hook that stops their engine. node:test runs after-hooks in the order they were registered, not last-in first-out, so the directory was gone when stop() sealed into it, and the ENOENT (files/index.ndjson) surfaced after the test as "generated asynchronous activity after the test ended" - which failed the whole suite although all 8 tests passed. One hook now stops the engine first and then removes the directory. Five runs in a row, and the suite runner, pass. Thanks to xet7 !