When mocking the Game global, Jest errors out with:
● Test suite failed to run
Unexpected access to unmocked property "Game._isMockFunction".
Did you forget to mock it?
If you intended for it to be undefined, you can explicitly set it to undefined (recommended) or set "allowUndefinedAccess" argument to true.
at Object.get (node_modules/screeps-jest/src/mocking.js:64:23)
at Array.forEach (<anonymous>)
When mocking the Game global, Jest errors out with:
jest version: 26.6.3 ts-jest version: 26.5.6
Reproduction: src/DungeonMaster/index.ts
src/DungeonMaster/index.spec.ts
run
npm test