- 将所有图片路径从绝对路径改为使用 process.env.PUBLIC_URL - 修复 HomePage.tsx 中所有图片引用 - 修复 CoursePage.tsx 中所有图片引用 - 确保图片在 GitHub Pages 上正确加载 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
719 B
719 B
Disallow importing Jest (no-jest-import)
The jest object is automatically in scope within every test file. The methods
in the jest object help create mocks and let you control Jest's overall
behavior. It is therefore completely unnecessary to import in jest, as Jest
doesn't export anything in the first place.
Rule details
This rule reports on any importing of Jest.
To name a few: var jest = require('jest'); const jest = require('jest');
import jest from 'jest'; import {jest as test} from 'jest';
There is no correct usage of this code, other than to not import jest in the
first place.