mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 14:42:28 +01:00
01529a8347
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.
10 lines
181 B
JSON
10 lines
181 B
JSON
{
|
|
"extends": "../tsconfig.json",
|
|
"compilerOptions": {
|
|
"allowJs": true,
|
|
"types": ["jest"]
|
|
},
|
|
"include": ["**/*", "../src/**/*.d.ts"],
|
|
"exclude": ["cypress/**/*"]
|
|
}
|