Repository navigation
test(*): resolve 'require-await' warnings in test files - #295
Conversation
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to The changes affect test callbacks, and no concrete regression is established; no PR-specific issue remains to resolve before merging. Pre-merge checks |
|
|
View your CI Pipeline Execution ↗ for commit 91723ea
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version PreviewNo changeset entries found. Merging this PR will not cause a version bump for any packages. |
🎯 Changes
Resolve all
@typescript-eslint/require-awaitwarnings in thetestsdirectories ofpacer,alpine-pacer,lit-pacer,svelte-pacer, andvue-pacer.asyncfunctions withoutawaitwith functions that return a promise directly:return value→return Promise.resolve(value)throw error→return Promise.reject(error), so errors stay rejections instead of becoming synchronous throwsPromise.resolve(), so they still go through the async code pathPromise, so runtime behavior and the inferred types checked byexpectTypeOfare unchanged.✅ Checklist
pnpm run test:pr, or these tests do not apply to this pull request.🚀 Release Impact
Summary by CodeRabbit