bitburner-src/test/jest
JP Sugarbroad 01529a8347 fix typing conflict between jest and cypress
Cypress and Jest both define "expect", but they come from different
libraries (Cypress uses Chai, Jest uses its own thing). So we can't
include both of them in the tsconfig.json. Conveniently, however, we
don't need any of the test code to be part of the main project, so
it suffices to give these things their own tsconfig.json files.

That being done, adding "jest" to the global types lets us remove all
those imports.
2022-05-10 22:26:54 -07:00
..
Netscript fix typing conflict between jest and cypress 2022-05-10 22:26:54 -07:00
Script fix typing conflict between jest and cypress 2022-05-10 22:26:54 -07:00
Terminal fix typing conflict between jest and cypress 2022-05-10 22:26:54 -07:00
ui fix typing conflict between jest and cypress 2022-05-10 22:26:54 -07:00
README.md Move cypress & netscript tests to ./test subfolder 2022-01-26 05:35:21 -05:00
StockMarket.test.ts fix typing conflict between jest and cypress 2022-05-10 22:26:54 -07:00
StringHelperFunctions.test.ts fix typing conflict between jest and cypress 2022-05-10 22:26:54 -07: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