Hi everyone, I have an issue related to cypress 10...
# cy10-feedback
f
Hi everyone, I have an issue related to cypress 10.2.0 I want to ask about it, cypress is not reading specPattern value after exporting new value to it We have updated the version of the cypress from 9.7.0 to 10.2.0 recently, and we used to set the value of testFiles for Docker image using export CYPRESS_TEST_FILES=" some files or paths" Now the testFiles changed to specPattern, and when we use the same method, a new parameter is added to the env{} object, and the existing one outside the env{} object is still the same. Now we need a way to change the value of specPattern by exporting the value (we need to change it only in some cases, and not through cypress.config.ts) cypress.config.ts content: import { defineConfig } from 'cypress' export default defineConfig({ env: { webBaseUrl: 'http://localhost:4200', highlightColor: '#9ef11a', download_dir: '/cypress/downloads/', }, viewportWidth: 1680, viewportHeight: 1050, defaultCommandTimeout: 15000, reporter: 'mochawesome', video: false, retries: { runMode: 1, openMode: 1, }, reporterOptions: { reportDir: 'cypress/results', overwrite: false, html: false, json: true, }, e2e: { setupNodeEvents(on, config) { return require('./cypress/plugins/index.js')(on, config) }, baseUrl: 'https://localhost', specPattern: 'cypress/e2e/**/*.cy.ts', }, }) i tired: export CYPRESS_specPattern="cypress/e2e/**/*.spec.ts" then run cypress: in the settings are I got the data as in the attachment1 and the other specPattern value is shown in the attachment2 and it's clear that it's taking the second one into considerations any suggestions?
2 Views