You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use Bun native file IO and spawn in the tests #734
The part about processes is done in #779: no test uses spawnSync any more. The CLI tests run with Bun's $, and fix/736 uses Bun.spawn.
The part about files is dropped. The tests run in about a second, so Bun.write and Bun.file give no speed, and they are async, so each of the 400+ calls would need an await. Bun also has no native readdirSync, mkdirSync, chmodSync or utimesSync, so fs stays anyway. So the tests go the other way: fs with the sync functions is the one way to handle files in tests.
Activity
mathiasrw commentedon Oct 23, 2026
The part about processes is done in #779: no test uses
spawnSyncany more. The CLI tests run with Bun's$, andfix/736usesBun.spawn.The part about files is dropped. The tests run in about a second, so
Bun.writeandBun.filegive no speed, and they are async, so each of the 400+ calls would need anawait. Bun also has no nativereaddirSync,mkdirSync,chmodSyncorutimesSync, sofsstays anyway. So the tests go the other way:fswith the sync functions is the one way to handle files in tests.