相关疑难解决方法(0)

来自 create-react-app 的玩笑不在 Windows 上运行

我在从create-react-app在 Windows 8.1 上创建的干净安装的应用程序运行 Jest 时遇到问题。安装后,运行命令npm run test,我收到错误:

No tests found related to files changed since last commit.

Running jest --watchAll,因此绕过 react-scripts,在同一目录中,虽然,显示:

Test suite failed to run

Jest encountered an unexpected token

This usually means that you are trying to import a file which Jest cannot parse, e.g. it's not plain JavaScript.

By default, if Jest sees a Babel config, it will use that to transform your files, ignoring "node_modules".

Here's what you can do: …
Run Code Online (Sandbox Code Playgroud)

reactjs jestjs babeljs babel-jest create-react-app

7
推荐指数
2
解决办法
4205
查看次数

标签 统计

babel-jest ×1

babeljs ×1

create-react-app ×1

jestjs ×1

reactjs ×1