我有一个带有多个spec文件(测试套件)的playwright-jest设置。我需要跳过其中的一个,但它需要保持在与其repo相同的目录中(移动它不是一个选项)。package.json下的默认脚本是"test": "jest -c jest.config.js",我知道我们可以使用npm run test TestSuiteName.spec.ts为单个套件运行它,如果没有文件名- npm run test,它将运行整个测试计划-但是-我如何才能
当我运行Jest时,我发现9次失败,总共20次中有11次失败,但是在两个不同的测试文件之间只有10个测试,如下所示:const assert = requireReferenceError: You are trying to `import` a file after the Jest environment has been torn down.promise rejected with the reason "Error: Caught error a
因此,我刚刚开始学习测试驱动开发,作为一个例子,我被要求在终端中运行命令npm test helloWorld.spec.js,但是我得到了以下错误:> jest "helloWorld.spec.js"
ou externe,un programme exécutable ou un fichier de com