-
-
Notifications
You must be signed in to change notification settings - Fork 642
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(tests): eliminate rtl patch (#2878)
* chore(tests): eliminate rtl patch * fix workflow files * consistent workflow files * remove unused Promise.resolve * rerender in tests
- Loading branch information
Showing
20 changed files
with
649 additions
and
516 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,6 @@ jobs: | |
- name: Use React 17 for production test | ||
if: ${{ matrix.env == 'production' }} | ||
run: | | ||
pnpm json -I -f package.json -e "this.pnpm.patchedDependencies={};" | ||
pnpm add -D [email protected] [email protected] @testing-library/[email protected] | ||
- name: Patch for DEV-ONLY | ||
if: ${{ matrix.env == 'development' }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,6 @@ jobs: | |
- name: Install legacy testing-library | ||
if: ${{ startsWith(matrix.react, '16.') || startsWith(matrix.react, '17.') }} | ||
run: | | ||
pnpm json -I -f package.json -e "this.pnpm.patchedDependencies={};" | ||
pnpm add -D @testing-library/[email protected] | ||
- name: Patch for React 16 | ||
if: ${{ startsWith(matrix.react, '16.') }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,7 +90,6 @@ jobs: | |
- name: Patch testing setup for older TS | ||
if: ${{ matrix.typescript == '4.0.5' || startsWith(matrix.typescript, '3.') }} | ||
run: | | ||
pnpm json -I -f package.json -e "this.pnpm.patchedDependencies={};" | ||
pnpm add -D @testing-library/[email protected] @testing-library/[email protected] @types/[email protected] | ||
rm node_modules/vitest/dist/*.d.ts | ||
echo "declare module 'vitest'" >> ./src/types.d.ts | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,8 +158,8 @@ | |
"jsdom": "^25.0.1", | ||
"json": "^11.0.0", | ||
"prettier": "^3.4.2", | ||
"react": "19.0.0", | ||
"react-dom": "19.0.0", | ||
"react": "^19.0.0", | ||
"react-dom": "^19.0.0", | ||
"rollup": "^4.28.1", | ||
"rollup-plugin-banner2": "^1.3.1", | ||
"rollup-plugin-esbuild": "^6.1.1", | ||
|
@@ -182,10 +182,5 @@ | |
"react": { | ||
"optional": true | ||
} | ||
}, | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"@testing-library/[email protected]": "patches/@[email protected]" | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.