In the linked question this is the Cypress v9 config given by Gleb:
{
"fixturesFolder": "test/cypress/fixtures",
"integrationFolder": "test/cypress/integration",
"pluginsFile": "test/cypress/plugins/index.js",
"screenshotsFolder": "test/cypress/screenshots",
"videosFolder": "test/cypress/videos",
"downloadsFolder": "test/cypress/downloads",
"supportFile": "test/cypress/support/index.js"
}
The equivalent in Cypress v10 would be:
const { defineConfig } = require('cypress')
module.exports = defineConfig({
// same options as Cypress v9
fixturesFolder: 'test/cypress/fixtures',
screenshotsFolder: 'test/cypress/screenshots',
videosFolder: 'test/cypress/videos',
downloadsFolder: 'test/cypress/downloads',
// these options are specific for e2e test
e2e: {
baseUrl: 'http://localhost:1234',
supportFile: 'test/cypress/support/e2e.js',
// import a legacy pluginsFile that has moved under /test folder
setupNodeEvents(on, config) {
return require('./test/cypress/plugins/index.js')(on, config)
},
// wildcard pattern for all tests
specPattern: 'test/cypress/e2e/**/*.cy.{js,jsx,ts,tsx}',
// OR named list of tests
specPattern: [
test/cypress/e2e/test1.cy.js,
test/cypress/e2e/test2.cy.js,
]
}
})