From a3b436f8dda18a03e5c2c31920ab99e8ac4b512e Mon Sep 17 00:00:00 2001 From: Yusuf Seyrek Date: Mon, 29 May 2023 11:20:08 +0300 Subject: [PATCH] feat: enzyme installation (#228) --- __tests__/Footer.test.tsx | 10 +- jest.config.js | 2 +- package.json | 3 + test.polyfills.js | 3 + jest.setup.js => test.setup.js | 5 + yarn.lock | 335 +++++++++++++++++++++++++++++++-- 6 files changed, 340 insertions(+), 18 deletions(-) create mode 100644 test.polyfills.js rename jest.setup.js => test.setup.js (78%) diff --git a/__tests__/Footer.test.tsx b/__tests__/Footer.test.tsx index 81097417..650e253f 100644 --- a/__tests__/Footer.test.tsx +++ b/__tests__/Footer.test.tsx @@ -1,14 +1,16 @@ -import { render, screen } from '@testing-library/react' +import { shallow } from 'enzyme' import Footer from 'components/Footer' +import Text from 'components/Text' import packageJSON from '../package.json' describe('