We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
一般像图片、CSS、字体这种静态文件我们是不希望Jest帮我们解析测试的,配置如下:
// jest.config.js moduleNameMapper: { "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js", "\\.(css|less)$": "identity-obj-proxy", },
且需要安装identity-obj-proxy。
identity-obj-proxy
The text was updated successfully, but these errors were encountered:
No branches or pull requests
一般像图片、CSS、字体这种静态文件我们是不希望Jest帮我们解析测试的,配置如下:
且需要安装
identity-obj-proxy
。The text was updated successfully, but these errors were encountered: