[英]Jest "No tests found, exiting with code 1" error on Windows 10 in React Redux application
[英]No tests found, exiting with code 0- NPM, YARN
我想运行一个已经由其他人开发的应用程序/脚本。 我已经安装了 node js 和 yarn 来执行它。 当我执行该测试时,我得到如下内容:
No tests found, exiting with code 0
Watch Usage
› Press f to run only failed tests.
› Press o to only run tests related to changed files.
› Press q to quit watch mode.
› Press p to filter by a filename regex pattern.
› Press t to filter by a test name regex pattern.
› Press Enter to trigger a test run.
package Json 的脚本部分是:
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"lint": "./node_modules/.bin/eslint src/* --fix"
},
我已经设法解决了之前因为 ESLint 而遇到的一些依赖问题。
在我尝试在 Eclipse 中打开文件后,该文件实际上没有任何内容。 我执行了命令 yarn start。 在那里,我找到了需要解决的编译错误列表。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.