bitburner-src/test/jest
Snarling 6af36e3b29
NETSCRIPT: Faster API wrapping on script launch. (#229)
* ns API is wrapped once
* when a new workerscript is created, each layer of ns is stamped with a private workerscript field that allows the functions to work.
* Test has been refactored to account for new method of wrapping
* BREAKING: ns functions need access to `this` value of their parent ns layer (or any ns layer)
* Enums are passed directly to player (no cloning) but are frozen.
2022-11-28 09:11:55 -05:00
..
Netscript NETSCRIPT: Faster API wrapping on script launch. (#229) 2022-11-28 09:11:55 -05:00
Script initial test fix attempt 2022-10-01 15:03:47 -04:00
Terminal DOC: Add ns documentation for possible sleeve tasks (#217) 2022-11-20 12:07:22 -05:00
ui attempt2 2022-10-01 15:28:48 -04:00
README.md Move cypress & netscript tests to ./test subfolder 2022-01-26 05:35:21 -05:00
StockMarket.test.ts Commit1 2022-10-03 12:12:16 -04: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