Config settings is not overwritten when use cli command
See original GitHub issueCurrent behavior
Config settings is not overwritten when use cli command.
npx cypress run --config videosFolder='vids',screenshotsFolder='pics'
(Screenshots)
- C:\foo\cypress\screenshots\foo.cy.ts\bar (failed).png (1280x720)
(Video)
- Started processing: Compressing to 32 CRF
- Finished processing: C:\foo\cypress\videos\foo.cy.ts.mp4 (2 seconds)
Desired behavior
Used folders should be vids and pics instead.
(Screenshots)
- C:\foo\cypress\pics\foo.cy.ts\bar (failed).png (1280x720)
(Video)
- Started processing: Compressing to 32 CRF
- Finished processing: C:\foo\cypress\vids\foo.cy.ts.mp4 (2 seconds)
Test code to reproduce
npx cypress run --config videosFolder='pics',screenshotsFolder='vids'
cypress.config.ts
import { defineConfig } from 'cypress';
export default defineConfig({
e2e: {
screenshotsFolder: 'screenshots',
videosFolder: 'videos'
}
});
Cypress Version
10.1
Other
No response
Issue Analytics
- State:
- Created a year ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Does "config add --overwrite" reset any cache state, is it bad to ...
The jf config add command configures a new JFrog instance locally ... The --overwrite flag allows overriding existing server configuration.
Read more >save-config overwrite - IBM
This command defines the system behavior when a running configuration is saved. Syntax. save-config overwrite. no save-config overwrite. Guidelines.
Read more >Settings get overwritten after setup with wp-cli | WordPress.org
I install the plugin using with the following command: wp plugin install woocommerce-pdf-invoices-packing-slips --activate. To configure it, i use the wp ...
Read more >Viewing overwritten configuration values in ASP.NET Core
In this post I show how you can view the overridden values from configuration for debugging purposes.
Read more >Command line process auditing | Microsoft Learn
To ensure that Advanced Audit Policy Configuration settings are not overwritten. command-line auditing. Open the Group Policy Management console.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
A little late but I did look into this and confirm it’s definitely a bug in how we are resolving configuration precedence. Seems like a regression. We will fix this soon.
Hey, thanks for the bug report - I’ll look into this one for you, first thing next week.