reactjs - Create-react-app-parcel-typescript with Jest
问题描述
I'm using create-react-app-parcel-typescript and want to use Jest. But I get the error:
● Validation Error:
Module C:...\polyfills.js in the setupFiles option was not found.
Configuration Documentation: https://facebook.github.io/jest/docs/configuration.html
error Command failed with exit code 1.
Does anyone know how to get it to work?
解决方案
推荐阅读
- react-native - 在 React Native 中使用带有 Hooks 的记忆选择器
- javascript - TipTap 编辑器中无法正确识别空格
- oracle - ORA-00904 用于 Oracle 中的 ORDER BY
- python - 基于一列 Pandas 创建 Dataframe
- r - ggplot2哑铃图中不显示彩色点
- javascript - 绑定后如何调用类的方法?
- uproot - 在 uproot 中写一个 TH2 直方图
- pandas - 在 pandas 中用 NaN 替换连续的 0
- c - sprintf 改变了一个明显不相关的数组的内容
- javascript - 检测输入字段值的重复