我在cypress grep上使用了grepOmitFiltered选项。cypress grep像grepOmitFiltered一样工作:false,它正在读取我的所有规范文件,因为我已经将项目升级到cypress 10。这是我的柏树。配置。ts文件。你能在这个问题上支持我吗?
/// <reference types="cypress" />
import { defineConfig } from 'cypress'
export default defineConfig({
projectId: '22eajy',
reporter: 'cypress-multi-reporters',
viewportWidth: 1280,
viewportHeight: 720,
reporterOptions: {
configFile: 'reporter-config.json',
},
numTestsKeptInMemory: 1,
videoUploadOnPasses: false,
chromeWebSecurity: false,
retries: 3,
env: {
grepOmitFiltered: true,
},
video: true,
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require('cypress-grep/src/plugin')(on, config)
},
specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',
},
})
返回此错误:文章源自玩技e族-https://www.playezu.com/180256.html
Warning: We failed to trash the existing run results.
This error will not alter the exit code.
Error: spawn /Users/erdinc.ramanli/Library/Caches/Cypress/10.1.0/Cypress.app/Contents/Resources/app/node_modules/trash/lib/macos-trash EACCES
at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
at onErrorNT (node:internal/child_process:477:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)