mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 01:33:54 +01:00
b277975656
* Fix the type declaration of `!!raw-loader!` modules. Instead of declaring them to export an object with a single key `default` which is a string, the modules have a default export, which is a string. Note, that this doesn't actually change the generated code, just the types that typescript sees. The code worked before because the only thing done to the values was to coerce the values to a string, which turned into a no-op. * Switch from using `raw-loader` to using a source asset module. `raw-loader` was deprecated in webpack v5. |
||
---|---|---|
.. | ||
__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