Skip to content

Conversation

@jennifer-shehane
Copy link
Member

No description provided.

@jennifer-shehane jennifer-shehane self-assigned this Dec 3, 2025
@cypress
Copy link

cypress bot commented Dec 3, 2025

cypress-documentation    Run #801

Run Properties:  status check passed Passed #801  •  git commit c72bb59e8a: Update docs/api/commands/task.mdx
Project cypress-documentation
Branch Review update-env-task-examples
Run status status check passed Passed #801
Run duration 04m 08s
Commit git commit c72bb59e8a: Update docs/api/commands/task.mdx
Committer Jennifer Shehane
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 311
View all changes introduced in this branch ↗︎
UI Coverage  10.71%
  Untested elements 2536  
  Tested elements 3  
Accessibility  97.19%
  Failed rules  0 critical   3 serious   4 moderate   0 minor
  Failed elements 26  

client_secret,
},
}).then(({ body }) => {
const claims = jwt.decode(body.id_token)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tabs appear off in this section.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was probably fixed in a lint check I've run since then.

refresh_token: refreshToken,
},
}).then(({ body }) => {
const { access_token, id_token } = body
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tabs appear off in this section.

Comment on lines +107 to +126
function getConfigurationByFile(file, projectRoot) {
const pathToConfigFile = path.join(
projectRoot,
'cypress',
'config',
`${file}.json`
)

return fs.readJson(pathToConfigFile)
}

// plugins file
module.exports = (on, config) => {
// accept a configFile value or use development by default
const file = config.env.configFile || 'development'
// cypress.config.js or cypress.config.ts
module.exports = {
e2e: {
setupNodeEvents(on, config) {
// accept a environment value or use development by default
const file = config.env.environment || 'development'

return getConfigurationByFile(file)
return getConfigurationByFile(file, config.projectRoot)
},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty sure this example was just not working since v10 changes

@jennifer-shehane jennifer-shehane merged commit 2147a84 into main Dec 5, 2025
11 checks passed
@jennifer-shehane jennifer-shehane deleted the update-env-task-examples branch December 5, 2025 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants