Skip to content

Commit

Permalink
Restored 60% test threshold after fixing the test environments I broke
Browse files Browse the repository at this point in the history
  • Loading branch information
anoek committed Jan 6, 2024
1 parent 79640e2 commit fcf4979
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default {
// An object that configures minimum threshold enforcement for coverage results
coverageThreshold: {
"global": {
"lines": 30
"lines": 60
}
},

Expand Down
3 changes: 2 additions & 1 deletion src/__tests__/GoEngine_sgf.test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
/**
* @jest-environment jsdom
* cspell: disable
*/

// ^^ jsdom environment is because getLocation() returns window.location.pathname
// Same about CLIENT.
//
// TODO: move this into a setup-jest.ts file

// cspell: disable

(global as any).CLIENT = true;

import { TestGoban } from "../TestGoban";
Expand Down
3 changes: 2 additions & 1 deletion src/__tests__/GobanCanvas.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/**
* @jest-environment jsdom
* cspell: disable
*/

// cspell: disable

(global as any).CLIENT = true;

import { GobanCanvas, GobanCanvasConfig } from "../GobanCanvas";
Expand Down
3 changes: 2 additions & 1 deletion src/__tests__/GobanCore_conditional_moves.test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
/**
* @jest-environment jsdom
* cspell: disable
*/

// ^^ jsdom environment is because getLocation() returns window.location.pathname
// Same about CLIENT.
//
// TODO: move this into a setup-jest.ts file

// cspell: disable

(global as any).CLIENT = true;

import { TestGoban } from "../TestGoban";
Expand Down

0 comments on commit fcf4979

Please sign in to comment.