From b41c5864a8d5faf41930c8dc694d299c6f903afe Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 1 Sep 2023 19:11:18 +0000 Subject: [PATCH] chore(deps-major) Update dependency @testing-library/jest-dom to v6 --- jest-setup.ts | 1 + jest.config.js | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 jest-setup.ts diff --git a/jest-setup.ts b/jest-setup.ts new file mode 100644 index 000000000..c44951a68 --- /dev/null +++ b/jest-setup.ts @@ -0,0 +1 @@ +import '@testing-library/jest-dom' diff --git a/jest.config.js b/jest.config.js index d25041081..cf84e5fca 100644 --- a/jest.config.js +++ b/jest.config.js @@ -35,10 +35,8 @@ module.exports = { testEnvironment: 'jsdom', - // Runs special logic, such as cleaning up components - // when using React Testing Library and adds special - // extended assertions to Jest - setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect'], + // Load setup files before test execution + setupFilesAfterEnv: ['./jest-setup.ts'], // Test spec file resolution pattern // Matches parent folder `__tests__` and filename