bitburner-src/test/jest
catloversg 8553bcb8fc
MISC: Support compression of save data (#1162)
* Use Compression Streams API instead of jszip or other libraries.
* Remove usage of base64 in the new binary format.
* Do not convert binary data to string and back. The type of save data is SaveData, it's either string (old base64 format) or Uint8Array (new binary format).
* Proper support for interacting with electron-related code. Electron-related code assumes that save data is in the base64 format.
* Proper support for other tools (DevMenu, pretty-save.js). Full support for DevMenu will be added in a follow-up PR. Check the comments in src\DevMenu\ui\SaveFileDev.tsx for details.
2024-03-27 21:08:09 -07:00
..
__snapshots__ IPVGO: Remove current game history from savefile, re-implement superko (#1175) 2024-03-20 20:37:20 -04:00
Alias TERMINAL: Prevent recursive aliases from being resolved. (#741) 2023-08-28 14:26:25 -04:00
Go IPVGO: Nerf overly-difficult handicap, [issue #1169] misc bugfixes (#1188) 2024-03-25 16:12:35 -07:00
Imports Moved Player initialization point (#452) 2023-03-29 00:30:27 -04:00
Messages TESTS: Prevent some test spam (#1126) 2024-02-26 08:22:33 -05:00
Netscript API: make ns.atExit add the callback to an array instead of setting it (#1059) 2024-03-05 19:22:45 -05: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: more granular office size upgrades (#1179) 2024-03-24 17:37:08 -07:00
FullSave.test.ts MISC: Support compression of save data (#1162) 2024-03-27 21:08:09 -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 Make grow formulas faster and more accurate. (#1044) 2024-01-31 19:27:31 -05: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