mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Skip coverage for test utils
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com> Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
parent
5f43c22c7a
commit
d5b496e886
@ -19,6 +19,7 @@ module.exports = (rootDir) => {
|
||||
collectCoverageFrom: [
|
||||
"<rootDir>/src/**/*.{ts,tsx}",
|
||||
"!<rootDir>/src/**/*.no-coverage.ts",
|
||||
"!<rootDir>/src/**/test-utils/**/*.{ts,tsx}",
|
||||
],
|
||||
|
||||
moduleNameMapper: {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { overrideSideEffectsWithFakes } from "./src/override-side-effects-with-fakes";
|
||||
import { overrideSideEffectsWithFakes } from "./src/test-utils/override-side-effects-with-fakes";
|
||||
|
||||
export * from "./src/start-application/time-slots";
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import type { DiContainer } from "@ogre-tools/injectable";
|
||||
import whenAppIsReadyInjectable from "./start-application/when-app-is-ready.injectable";
|
||||
import whenAppIsReadyInjectable from "../start-application/when-app-is-ready.injectable";
|
||||
|
||||
export const overrideSideEffectsWithFakes = (di: DiContainer) => {
|
||||
di.override(whenAppIsReadyInjectable, () => () => Promise.resolve());
|
||||
Loading…
Reference in New Issue
Block a user