From c5373df6522694861a1346b3ad8c3cb57b7215e2 Mon Sep 17 00:00:00 2001 From: Eric Cabrel TIOGO Date: Sat, 13 Jul 2024 23:25:10 +0200 Subject: [PATCH] fix: frontend test --- apps/web/package.json | 2 +- .../web/src/components/home/newsletter/newsletter-form.test.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/package.json b/apps/web/package.json index 3e228b1..295050f 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -8,7 +8,7 @@ "dev": "next dev --port 7500", "lint": "next lint", "start": "next start", - "test": "dotenv -e .env.test -- jest" + "test": "dotenv -e .env.test -- jest --logHeapUsage" }, "dependencies": { "@apollo/client": "3.10.6", diff --git a/apps/web/src/components/home/newsletter/newsletter-form.test.tsx b/apps/web/src/components/home/newsletter/newsletter-form.test.tsx index 63b5447..cefdae6 100644 --- a/apps/web/src/components/home/newsletter/newsletter-form.test.tsx +++ b/apps/web/src/components/home/newsletter/newsletter-form.test.tsx @@ -10,7 +10,7 @@ jest.mock('next/router', () => require('next-router-mock')); // TODO - to be refactored soon // eslint-disable-next-line jest/no-disabled-tests -describe.skip('Newsletter Form', () => { +describe('Newsletter Form', () => { beforeEach(() => { // IntersectionObserver isn't available in test environment const mockIntersectionObserver = jest.fn();