mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-27 16:37:33 +01:00
aae3851d59
It lets us bundle static files such as images. Allows us to `imports img from "./img.png"` to retrieve an image's path. Note that we'll have to add other entries in the global.d.ts file if we want to handle other extensions than .png. Adds mocks to Jest tests so that we don't fail tests when loading static assets. |
||
---|---|---|
.. | ||
__mocks__ | ||
Netscript | ||
Script | ||
Terminal | ||
README.md | ||
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