I'm trying to use `modifyObstructiveCode: true,` ...
# best-practices
n
I'm trying to use
modifyObstructiveCode: true,
in my
cypress.conf.ts
and it's throwing an error
Copy code
(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?
Copy code
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)
    },
  },

})