mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
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:
1 parent
5d424b45d9
commit
287afa5483
4 files changed
+11
-2
No files matched your search
@@ -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";
|
import { getInjectable } from "@ogre-tools/injectable";
|
||||||
|
|
||||||
const castDieInjectable = getInjectable({
|
const castDieInjectable = getInjectable({
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
/* ignore coverage somehow */
|
||||||
|
|
||||||
import { getInjectable } from "@ogre-tools/injectable";
|
import { getInjectable } from "@ogre-tools/injectable";
|
||||||
|
|
||||||
const messageToPlayerInjectable = getInjectable({
|
const messageToPlayerInjectable = getInjectable({
|
||||||
|
|||||||
@@ -1,8 +1,13 @@
|
|||||||
|
/* ignore coverage somehow */
|
||||||
|
|
||||||
import { getInjectable } from "@ogre-tools/injectable";
|
import { getInjectable } from "@ogre-tools/injectable";
|
||||||
|
|
||||||
const questionToPlayerInjectable = getInjectable({
|
const questionToPlayerInjectable = getInjectable({
|
||||||
id: "question-to-player",
|
id: "question-to-player",
|
||||||
instantiate: () => (question: string) => Promise.resolve(true),
|
|
||||||
|
instantiate: () => (message: string) =>
|
||||||
|
new Promise((resolve) => resolve(window.confirm(message))),
|
||||||
|
|
||||||
causesSideEffects: true,
|
causesSideEffects: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user