From 778a827983c8fb3d0cae2e528ed4243ab8a5e668 Mon Sep 17 00:00:00 2001 From: Norman Rusch Date: Wed, 22 Sep 2021 18:27:56 +0200 Subject: [PATCH] Remove test utils from coverage report --- src/carousel.ts | 2 +- src/utils/cache.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/carousel.ts b/src/carousel.ts index 2cc27b09..48a1a9d5 100644 --- a/src/carousel.ts +++ b/src/carousel.ts @@ -49,7 +49,7 @@ export class Carousel implements ICarousel { * @internal */ public static resetInstanceCount(): void { - /* This should not be part of the coverage report: */ + /* This should not be part of the coverage report: test util */ /* istanbul ignore next */ if (process.env.NODE_ENV === 'test') { __instanceCount = 0; diff --git a/src/utils/cache.ts b/src/utils/cache.ts index 96fa16a4..5a7935af 100644 --- a/src/utils/cache.ts +++ b/src/utils/cache.ts @@ -74,4 +74,6 @@ export function clearFullCache(ref: Reference): void { /** * This exposes the cache instance for test environments. Otherwise it will be null. */ +/* This should not be part of the coverage report: test util */ +/* istanbul ignore next */ export const cacheInstance = (process.env.NODE_ENV === 'test') ? __CACHE : null;