Repository navigation
Redux Routine: Convert the tests to TypeScript - #85121
manzoorwanijk merged 6 commits into
Conversation
🤖 PR meta 🤖🎉 PropsIf you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Updated as activity occurs, without notifying anyone named here. Add the |
09c2ed5 to
fe3a465
Compare
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the
Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Merge Risk: ⚪ Minimal · up to
|
fe3a465 to
a7f4285
Compare
a7f4285 to
6bfc6c8
Compare
6bfc6c8 to
1c73105
Compare
|
Failures should be fixed after rebase once #85201 gets merged. |
1c73105 to
5415440
Compare
What?
Part of #67691. Converts all three test files in
@wordpress/redux-routineto TypeScript.Why?
The package source is already TypeScript, but its tests were still JavaScript and were not type checked. Converting the middleware tests also exposes existing type declarations that do not match the supported behavior.
How?
Splits the package’s TypeScript configuration into build and development projects, updates project references, and removes the obsolete JavaScript-path ESLint suppressions.
Corrects control result and generator dispatch types, exports the types from the package root, and updates the API documentation. Keeps the two regression checks and local fixture types in the existing middleware test file. No runtime behavior or existing assertions change.
Testing Instructions
npm run test:unit -- packages/redux-routine/src/test packages/data/srcnpm run typecheck -- --forcenpm run lint:tsconfig,npm run lint:js:prune-suppressions,npm run lint:published-deps, andnpm run lint:changelogs -- packages/redux-routine/CHANGELOG.mdnpm run buildUse of AI Tools
Implemented with assitance of Codex (Astra 6)
@coderabbitai review