bitburner-src/test/jest
David Walker 34db6e8b26
NETSCRIPT: Rework disableLog for efficiency (#1589)
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.
2024-08-16 19:10:20 -07:00
..
__snapshots__ FEATURE: BitNode options (#1411) 2024-07-14 14:30:30 -07:00
Alias TERMINAL: Prevent recursive aliases from being resolved. (#741) 2023-08-28 14:26:25 -04:00
Go IPVGO: Balance and improvements for offline bonus time cycles (#1356) 2024-06-05 19:39:22 -07:00
Imports Moved Player initialization point (#452) 2023-03-29 00:30:27 -04:00
Messages BUGFIX: Fix "Router called before initialization" race (#1474) 2024-07-07 22:13:37 -07:00
Netscript NETSCRIPT: Rework disableLog for efficiency (#1589) 2024-08-16 19:10:20 -07:00
Script Fix test 2023-05-28 05:43:09 -04:00
Terminal v2.4.0 2023-07-30 22:08:36 -04:00
ui UI: Added new locale-aware and configurable number formatting (#354) 2023-02-11 13:18:50 -05:00
Corporation.test.ts CORPORATION: Rename functions in Actions.ts (#1272) 2024-05-12 14:52:07 -07:00
FullSave.test.ts MISC: Refactor favor code (#1321) 2024-05-28 12:04:16 -07:00
Grow.test.ts TESTS: Prevent some test spam (#1126) 2024-02-26 08:22:33 -05:00
README.md Move cypress & netscript tests to ./test subfolder 2022-01-26 05:35:21 -05:00
Save.test.ts UI: fix scripts recorded offline income (#1025) 2024-02-10 07:24:55 -05:00
StockMarket.test.ts EDITOR: Provide type definitions for React and ReactDOM in in-game editor. (#1458) 2024-07-07 00:08:33 -07:00
StringHelperFunctions.test.ts fix: fix StringHelperFunctions test 2022-09-23 18:13:33 -04:00

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