What's Changed
Version 1.1.7 includes the following changes:
This release includes changes from merged pull request #142.
Changes
fix: explicit jest expect import.
Thank you for submitting a PR! Please review & check the boxes below:
- I have filled in the "Description" section below.
- I have provided manual testing steps and screenshots (if applicable).
- My code is covered by automated tests.
Description
Update: the linter was complaining about Jest types after I converted Cypress to TypeScript. In order to fix the Jest types, I needed to explicitly import expect from the @jest/globals package at the top of Jest test files.
Steps to Test
Check out PR, npm i to install deps, then npm run check to run all checks locally.
Important
Explicitly import expect from @jest/globals in test files and convert Cypress config and tests to TypeScript.
- Testing:
- Explicitly import
expectfrom@jest/globalsin test files to resolve linter issues. - Affects
page.test.tsx,Footer.test.tsx,Header.test.tsx, and 100+ other test files.
- Explicitly import
- TypeScript:
- Convert
cypress.config.jstocypress.config.ts. - Convert Cypress integration test files from
.jsto.ts.
- Convert
- Dependencies:
- Add
@types/testing-library__jest-domandchaitopackage.json. - Remove
type: modulefrompackage.json.
- Add
This description was created by for 4d3f46b. You can customize this summary. It will automatically update as commits are pushed.