From 6cff91e17d2f23974631c429c8094ef6ae838099 Mon Sep 17 00:00:00 2001 From: caiocotts Date: Wed, 17 Jan 2024 16:46:22 -0500 Subject: [PATCH] Use the default import path for jest-dom. --- ui/src/common/Linkify.test.js | 2 +- ui/src/setupTests.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/common/Linkify.test.js b/ui/src/common/Linkify.test.js index fd896f7d2..cef50b228 100644 --- a/ui/src/common/Linkify.test.js +++ b/ui/src/common/Linkify.test.js @@ -1,6 +1,6 @@ import React from 'react' import { render, screen } from '@testing-library/react' -import '@testing-library/jest-dom/extend-expect' +import '@testing-library/jest-dom' import Linkify from './Linkify' const URL = 'http://www.example.com' diff --git a/ui/src/setupTests.js b/ui/src/setupTests.js index 84f521dcd..ddb999f3c 100644 --- a/ui/src/setupTests.js +++ b/ui/src/setupTests.js @@ -2,7 +2,7 @@ // allows you to do things like: // expect(element).toHaveTextContent(/react/i) // learn more: https://github.com/testing-library/jest-dom -import '@testing-library/jest-dom/extend-expect' +import '@testing-library/jest-dom' const localStorageMock = (function () { let store = {}