Skip to content

Commit

Permalink
Remove test utils from coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
Norman Rusch committed Sep 22, 2021
1 parent 8613282 commit 778a827
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/carousel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/utils/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 778a827

Please sign in to comment.