Repository navigation
build(oxlint): restrict test frameworks other than vitest - #45
Conversation
Ban the jest global and imports of jest, @jest/globals, mocha, chai, sinon, jasmine, ava, tape and node:test. no-restricted-globals is scope-aware, so local, parameter or destructured jest bindings are not reported. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
@codex review |
Review summaryThis PR only changes
Blocking findings (P0/P1): 0 🤖 Generated with Claude Code |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a5bc954e00
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
no-restricted-imports paths match only exact specifiers, so imports such as chai/register-expect.js or @jest/expect were not reported. Add a patterns entry covering each package's subpaths. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
@codex review |
|
Review summary No blocking issues found. This PR only changes Gaps worth knowing about, none of them blocking: Findings: P0: 0, P1: 0, P2: 0, P3: 0. |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
概要
vitest 以外のテストフレームワークの利用を oxlint で禁止します.furedea/agent-config#195 の不安定な ast-grep ルール
ts_no_other_test_frameworkを置き換えるものです.no-restricted-globals: グローバルのjestを禁止(スコープを考慮するため,ローカル変数・引数・分割代入のjestは報告されません)no-restricted-imports:jest,@jest/globals,mocha,chai,sinon,jasmine,ava,tape,node:testの import を禁止(メッセージは vitest の利用を促すもの)Refs furedea/agent-config#74
検証
jest.fn()は報告されるjestは報告されない@jest/globalsとnode:testの import は報告されるpnpm run check(format,lint,typecheck,test,knip,audit)が成功計画からの変更点
なし
🤖 Generated with Claude Code