Add placeholders for places that should escape code-coverage for a good reason: side-effects

Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
This commit is contained in:
Iku-tursoandJanne Savolainen committed 2023-03-15 10:29:12 +02:00
1 parent 5d424b45d9
commit 287afa5483
4 files changed
+11 -2

No files matched your search

+1 -1
View File
@@ -1 +1 @@
module.exports = require("@k8slens/jest").monorepoPackageConfig(__dirname).configForNode;
module.exports = require("@k8slens/jest").monorepoPackageConfig(__dirname).configForReact;
@@ -1,3 +1,5 @@
/* ignore coverage somehow */
import { getInjectable } from "@ogre-tools/injectable";
const castDieInjectable = getInjectable({
@@ -1,3 +1,5 @@
/* ignore coverage somehow */
import { getInjectable } from "@ogre-tools/injectable";
const messageToPlayerInjectable = getInjectable({
@@ -1,8 +1,13 @@
/* ignore coverage somehow */
import { getInjectable } from "@ogre-tools/injectable";
const questionToPlayerInjectable = getInjectable({
id: "question-to-player",
instantiate: () => (question: string) => Promise.resolve(true),
instantiate: () => (message: string) =>
new Promise((resolve) => resolve(window.confirm(message))),
causesSideEffects: true,
});