nice-soccer-53564
07/16/2022, 1:28 AMmodifyObstructiveCode: true,
in my cypress.conf.ts
and it's throwing an error
(property) modifyObstructiveCode: boolean
Argument of type '{ reporter: string; reporterOptions: { mochaFile: string; toConsole: boolean; }; defaultCommandTimeout: number; pageLoadTimeout: number; responseTimeout: number; chromeWebSecurity: false; modifyObstructiveCode: boolean; e2e: { ...; }; retries: { ...; }; }' is not assignable to parameter of type 'Partial<UserConfigOptions<any>>'.
Object literal may only specify known properties, and 'modifyObstructiveCode' does not exist in type 'Partial<UserConfigOptions<any>>'
What am I doing it incorrectly?
import { defineConfig } from 'cypress'
export default defineConfig({
reporter: 'junit',
reporterOptions: {
mochaFile: 'cypress/results/helltool.xml',
toConsole: true,
},
defaultCommandTimeout: 20000,
pageLoadTimeout: 60000,
responseTimeout: 30000,
chromeWebSecurity: false,
modifyObstructiveCode: true,
e2e: {
setupNodeEvents(on, config) {
return require('./cypress/plugins/index.js')(on, config)
},
},
})