mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-23 08:03:48 +01:00
Merge pull request #3608 from danielyxie/revert-3518-patch-2
Revert "MISC: fix typing conflict between jest and cypress"
This commit is contained in:
commit
f6e689eead
@ -57,7 +57,6 @@
|
|||||||
"@types/bcryptjs": "^2.4.2",
|
"@types/bcryptjs": "^2.4.2",
|
||||||
"@types/escodegen": "^0.0.7",
|
"@types/escodegen": "^0.0.7",
|
||||||
"@types/file-saver": "^2.0.3",
|
"@types/file-saver": "^2.0.3",
|
||||||
"@types/jest": "^27.4.1",
|
|
||||||
"@types/jquery": "^3.5.14",
|
"@types/jquery": "^3.5.14",
|
||||||
"@types/lodash": "^4.14.168",
|
"@types/lodash": "^4.14.168",
|
||||||
"@types/numeral": "^2.0.2",
|
"@types/numeral": "^2.0.2",
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"compilerOptions": {
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"isolatedModules": true,
|
|
||||||
"module": "commonjs",
|
|
||||||
"noEmit": true,
|
|
||||||
"strict": true,
|
|
||||||
"target": "es6",
|
|
||||||
"types": ["cypress", "@testing-library/cypress"]
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,3 +1,5 @@
|
|||||||
|
import { jest, describe, expect } from "@jest/globals";
|
||||||
|
|
||||||
import { Player } from "../../../src/Player";
|
import { Player } from "../../../src/Player";
|
||||||
import { NetscriptFunctions } from "../../../src/NetscriptFunctions";
|
import { NetscriptFunctions } from "../../../src/NetscriptFunctions";
|
||||||
import { getRamCost, RamCostConstants } from "../../../src/Netscript/RamCostGenerator";
|
import { getRamCost, RamCostConstants } from "../../../src/Netscript/RamCostGenerator";
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
import { jest, describe, expect } from "@jest/globals";
|
||||||
|
|
||||||
import { Player } from "../../../src/Player";
|
import { Player } from "../../../src/Player";
|
||||||
import { getRamCost, RamCostConstants } from "../../../src/Netscript/RamCostGenerator";
|
import { getRamCost, RamCostConstants } from "../../../src/Netscript/RamCostGenerator";
|
||||||
import { calculateRamUsage } from "../../../src/Script/RamCalculations";
|
import { calculateRamUsage } from "../../../src/Script/RamCalculations";
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
|
import { describe, expect, jest } from "@jest/globals";
|
||||||
|
|
||||||
// Player is needed for calculating costs like Singularity functions, that depend on acquired source files
|
// Player is needed for calculating costs like Singularity functions, that depend on acquired source files
|
||||||
import { Player } from "../../../src/Player";
|
import { Player } from "../../../src/Player";
|
||||||
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
|
import { jest, describe, expect, test } from "@jest/globals";
|
||||||
|
|
||||||
import { Script } from "../../../src/Script/Script";
|
import { Script } from "../../../src/Script/Script";
|
||||||
import { Player } from "../../../src/Player";
|
import { Player } from "../../../src/Player";
|
||||||
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
|
import { jest, describe, expect, test } from "@jest/globals";
|
||||||
|
|
||||||
import { CONSTANTS } from "../../src/Constants";
|
import { CONSTANTS } from "../../src/Constants";
|
||||||
import { Player } from "../../src/Player";
|
import { Player } from "../../src/Player";
|
||||||
import { IMap } from "../../src/types";
|
import { IMap } from "../../src/types";
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
|
import { jest, describe, expect, test } from "@jest/globals";
|
||||||
import { convertTimeMsToTimeElapsedString } from "../../src/utils/StringHelperFunctions";
|
import { convertTimeMsToTimeElapsedString } from "../../src/utils/StringHelperFunctions";
|
||||||
|
|
||||||
describe("StringHelperFunctions Tests", function () {
|
describe("StringHelperFunctions Tests", function () {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
|
import { jest, describe, expect, test } from "@jest/globals";
|
||||||
import * as dirHelpers from "../../../src/Terminal/DirectoryHelpers";
|
import * as dirHelpers from "../../../src/Terminal/DirectoryHelpers";
|
||||||
|
|
||||||
describe("Terminal Directory Tests", function () {
|
describe("Terminal Directory Tests", function () {
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
import { CityName } from "./../../../src/Locations/data/CityNames";
|
import { CityName } from "./../../../src/Locations/data/CityNames";
|
||||||
/* eslint-disable no-await-in-loop */
|
/* eslint-disable no-await-in-loop */
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
|
import { jest, describe, expect, test } from "@jest/globals";
|
||||||
|
|
||||||
import { Player } from "../../../src/Player";
|
import { Player } from "../../../src/Player";
|
||||||
import { determineAllPossibilitiesForTabCompletion } from "../../../src/Terminal/determineAllPossibilitiesForTabCompletion";
|
import { determineAllPossibilitiesForTabCompletion } from "../../../src/Terminal/determineAllPossibilitiesForTabCompletion";
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { describe, expect, test } from "@jest/globals";
|
||||||
import { numeralWrapper } from "../../../src/ui/numeralFormat";
|
import { numeralWrapper } from "../../../src/ui/numeralFormat";
|
||||||
|
|
||||||
let decimalFormat = "0.[000000]";
|
let decimalFormat = "0.[000000]";
|
||||||
|
@ -4,15 +4,13 @@
|
|||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"jsx": "react",
|
"jsx": "react",
|
||||||
|
"lib": ["es2016", "dom", "es2017.object", "es2019"],
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"noEmit": true,
|
"target": "es6",
|
||||||
"resolveJsonModule": true,
|
|
||||||
"skipLibCheck": true,
|
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"target": "es2019",
|
"resolveJsonModule": true,
|
||||||
"types": ["jest", "node"]
|
"types": ["cypress", "@testing-library/cypress", "node"]
|
||||||
},
|
},
|
||||||
"include": ["src/**/*", "test/**/*"],
|
"exclude": ["node_modules"]
|
||||||
"exclude": ["test/cypress/**/*"]
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user