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:
parent
5d424b45d9
commit
287afa5483
@ -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,
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user