mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-22 14:12:27 +01:00
34db6e8b26
The current implementation was naive; disableLog("ALL") was storing a key for every function, and iterating over a different object to do it (when iterating over objects is quite slow). The common cases of Bitburner (and especially batching, where efficiency matters most) are either never disabling anything, or disabling "ALL". This optimizes for these two cases, at the expense of slightly more complicated code to deal with the less-common edge cases. |
||
---|---|---|
.. | ||
__snapshots__ | ||
Alias | ||
Go | ||
Imports | ||
Messages | ||
Netscript | ||
Script | ||
Terminal | ||
ui | ||
Corporation.test.ts | ||
FullSave.test.ts | ||
Grow.test.ts | ||
README.md | ||
Save.test.ts | ||
StockMarket.test.ts | ||
StringHelperFunctions.test.ts |
Unit Tests
This directory contains unit tests for Bitburner.
Unit tests use jest.
Running
Run tests with: npm run test
To watch for changes: npm run test:watch