From 9f0e86fa31bacdbe0548362cefbe7d128faaac46 Mon Sep 17 00:00:00 2001 From: Alejandro Frias Date: Thu, 23 Nov 2023 10:11:50 +0100 Subject: [PATCH] Use correct import on testing library plugin --- src/MetricsProvider.spec.tsx | 2 +- test/setup-test-env.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MetricsProvider.spec.tsx b/src/MetricsProvider.spec.tsx index fbd1ea4..7756d2a 100644 --- a/src/MetricsProvider.spec.tsx +++ b/src/MetricsProvider.spec.tsx @@ -1,7 +1,7 @@ import { Stage, usePerformanceMark } from '@shopify/react-performance'; import { render, screen } from '@testing-library/react'; import { useEffect } from 'react'; -import { afterAll, afterEach, beforeAll, Mock } from 'vitest'; +import { Mock } from 'vitest'; import { hasAnyRequest, server, waitForRequests } from '../test/mockServer'; import { GoldenMetrics, MetricDefinition } from './createMetrics'; diff --git a/test/setup-test-env.ts b/test/setup-test-env.ts index 3f0a3b8..4db516a 100644 --- a/test/setup-test-env.ts +++ b/test/setup-test-env.ts @@ -1,3 +1,3 @@ /// -import '@testing-library/jest-dom'; +import '@testing-library/jest-dom/vitest';