Supersede #906: entry shape test with lint-compliant matcher#910
Supersede #906: entry shape test with lint-compliant matcher#910
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile SummaryThis PR adds a regression test that explicitly asserts the shape of webpack entry values produced by
Confidence Score: 5/5
Important Files Changed
Flowchartflowchart TD
A[getEntryObject in base.ts] -->|single file| B["entries[name] = assetPath\n(string)"]
A -->|multiple files same name| C["entries[name] = [path1, path2]\n(string[])"]
B --> D[New shape test]
C --> D
D -->|asserts| E["typeof application === 'string'"]
D -->|asserts| F["Array.isArray(multi_entry) === true"]
D -->|asserts| G["multi_entry contains String elements"]
Last reviewed commit: 25442b7 |
Supersedes #910. Includes: - original entry-shape type narrowing regression test - strict matcher fix from #910 - .prettierignore workflow-file ignore update (with wording fix) to avoid unrelated lint failures Closes #792 <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Adds a regression test around `baseConfig.entry` value types; no production code changes, so risk is limited to potential test brittleness across environments. > > **Overview** > Adds a new Jest regression test in `test/package/environments/base.test.js` to ensure `baseConfig.entry` values remain consistently typed as either *non-empty strings* or *arrays of strings*, preserving stable shapes for TypeScript narrowing. > > No runtime behavior is changed; this strictly tightens test coverage around entrypoint generation. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit f00999e. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Tests** * Added test coverage to ensure configuration type stability for improved reliability. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
* origin/main: (22 commits) docs: add Dependabot configuration guide (#1094) Sync address-review prompt with upstream PR #16 (#1098) Supersede #910: entry shape test with lint unblock (#919) fix: align rspack v2 peer deps and installer defaults (#1091) docs: update README and guides for Shakapacker v10 (#1092) Release 10.0.0 Update CHANGELOG.md for v10.0.0 (#1089) Release 10.0.0-rc.1 Update CHANGELOG.md for v10.0.0-rc.1 (#1087) Supersede #961 by using pack-config-diff (#973) Add final summary output to rake release (#1041) Add bin/setup to install development deps (#1039) Release 10.0.0-rc.0 Use npx release-it to avoid mise shim failures (#1040) Fix Nokogiri build failure on Ruby 3.4.6 (#1038) Update CHANGELOG.md for v10.0.0-rc.0 (#1037) Update rspack dev deps to 2.0.0-rc.0 (#1036) Fix stale and broken documentation across Shakapacker guides (#1023) Allow webpack-cli v7 in peer dependencies (#1021) refactor: simplify resolving js peer versions when installing (#1034) ... # Conflicts: # package.json
* origin/main: docs: add Dependabot configuration guide (#1094) Sync address-review prompt with upstream PR #16 (#1098) Supersede #910: entry shape test with lint unblock (#919) fix: align rspack v2 peer deps and installer defaults (#1091) docs: update README and guides for Shakapacker v10 (#1092) Release 10.0.0 Update CHANGELOG.md for v10.0.0 (#1089) Release 10.0.0-rc.1 Update CHANGELOG.md for v10.0.0-rc.1 (#1087) Supersede #961 by using pack-config-diff (#973) # Conflicts: # CHANGELOG.md # Rakefile
Supersedes #906. Closes #792.
Summary
jest/prefer-strict-equalby usingtoStrictEqualfor the matcher assertionValidation
Notes