Type object
File match cypress.json
Schema URL https://catalog.lintel.tools/schemas/schemastore/cypress-json/latest.json
Source https://on.cypress.io/cypress.schema.json

Validate with Lintel

npx @lintel/lintel check
Type: object

All of

2. variant
component
49 nested properties
baseUrl string

Url used as prefix for cy.visit() or cy.request() command’s url. Example http://localhost:3030 or https://test.my-domain.com

Default: null
env object

Any values to be set as environment variables. See https://on.cypress.io/environment-variables

ignoreTestFiles string | array

A String or Array of glob patterns used to ignore test files that would otherwise be shown in your list of tests. Cypress uses minimatch with the options: {dot: true, matchBase: true}. We suggest using http://globtester.com to test what files would match.

numTestsKeptInMemory number

The number of tests for which snapshots and command data are kept in memory. Reduce this number if you are experiencing high memory consumption in your browser during a test run.

Default: 50
port number

Port used to host Cypress. Normally this is a randomly generated port

Default: null
reporter string

The reporter used when running headlessly or in CI. See https://on.cypress.io/reporters

Default: "spec"
reporterOptions object

The reporter options used. Supported options depend on the reporter. See https://on.cypress.io/reporters#Reporter-Options

Default: null
slowTestThreshold number

Slow test threshold in milliseconds. Only affects the visual output of some reporters. For example, the spec reporter will display the test time in yellow if over the threshold. See https://on.cypress.io/configuration#Timeouts

Default: 10000
testFiles string | array

A String or Array of string glob patterns of the test files to load. See https://on.cypress.io/configuration#Global

Default: "**/*.*"
watchForFileChanges boolean

Whether Cypress will watch and restart tests on test file changes

Default: true
defaultCommandTimeout number

Time, in milliseconds, to wait until most DOM based commands are considered timed out

Default: 4000
execTimeout number

Time, in milliseconds, to wait for a system command to finish executing during a cy.exec() command

Default: 60000
taskTimeout number

Time, in milliseconds, to wait for a task to finish executing during a cy.task() command

Default: 60000
pageLoadTimeout number

Time, in milliseconds, to wait for page transition events or cy.visit(), cy.go(), cy.reload() commands to fire their page load events. Network requests are limited by the underlying operating system, and may still time out if this value is increased.

Default: 60000
requestTimeout number

Time, in milliseconds, to wait for an XHR request to go out in a cy.wait() command

Default: 5000
responseTimeout number

Time, in milliseconds, to wait until a response in a cy.request(), cy.wait(), cy.fixture(), cy.getCookie(), cy.getCookies(), cy.setCookie(), cy.clearCookie(), cy.clearCookies(), and cy.screenshot() commands

Default: 30000
fileServerFolder string

Path to folder where application files will attempt to be served from

Default: "root project folder"
fixturesFolder string | boolean

Path to folder containing fixture files (Pass false to disable)

Default: "cypress/fixtures"
integrationFolder string

Path to folder containing integration test files

Default: "cypress/integration"
downloadsFolder string

Path to folder where files downloaded during a test are saved

Default: "cypress/downloads"
componentFolder string | boolean

Path to folder containing component test files (Pass false to disable)

Default: false
pluginsFile string | boolean

Path to plugins file. (Pass false to disable)

Default: "cypress/plugins/index.js"
screenshotOnRunFailure boolean

Whether Cypress will take a screenshot when a test fails during cypress run

Default: true
screenshotsFolder string

Path to folder where screenshots will be saved from cy.screenshot() command or after a test fails during cypress run

Default: "cypress/screenshots"
supportFile string | boolean

Path to file to load before test files load. This file is compiled and bundled. (Pass false to disable)

Default: "cypress/support/index.js"
videosFolder string

Path to folder where videos will be saved during cypress run

Default: "cypress/videos"
trashAssetsBeforeRuns boolean

Whether Cypress will trash assets within the screenshotsFolder and videosFolder before tests run with cypress run

Default: true
videoCompression number | boolean

The quality setting for the video compression, in Constant Rate Factor (CRF). The value can be false to disable compression or a value between 0 and 51, where a lower value results in better quality (at the expense of a higher file size).

Default: 32
video boolean

Whether Cypress will capture a video of the tests run with cypress run

Default: true
videoUploadOnPasses boolean

Whether Cypress will process, compress, and upload videos to the Dashboard even when all tests in a spec file are passing. This only applies when recording your runs to the Dashboard. Turn this off if you’d like to only upload the spec file’s video when there are failing tests.

Default: true
chromeWebSecurity boolean

Whether Chrome Web Security for same-origin policy and insecure mixed content is enabled. Read more about this at https://on.cypress.io/web-security

Default: true
userAgent string

Enables you to override the default user agent the browser sends in all request headers. User agent values are typically used by servers to help identify the operating system, browser, and browser version. See User-Agent MDN Documentation for example user agent values here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent

Default: null
blockHosts string | array

A String or Array of hosts that you wish to block traffic for. Please read the notes for examples on using this https://on.cypress.io/configuration#blockHosts

Default: null
modifyObstructiveCode boolean

Whether Cypress will search for and replace obstructive JS code found in .js or .html files that prevent Cypress from working. Please read the notes for more information on this setting. https://on.cypress.io/configuration#modifyObstructiveCode

Default: true
viewportHeight number

Default height in pixels for the application under tests’ viewport (Override with cy.viewport() command)

Default: 660
viewportWidth number

Default width in pixels for the application under tests’ viewport. (Override with cy.viewport() command)

Default: 1000
animationDistanceThreshold number

The distance in pixels an element must exceed over time to be considered animating

Default: 5
waitForAnimations boolean

Whether to wait for elements to finish animating before executing commands

Default: true
scrollBehavior enum

Viewport position to which an element should be scrolled prior to action commands. Setting false disables scrolling.

Default: "top"
Values: false "center" "top" "bottom" "nearest"
projectId string

A 6 character string use to identify this project in the Cypress Dashboard. See https://on.cypress.io/dashboard-service#Identification

Default: null
nodeVersion enum

DEPRECATED: If set to 'bundled', Cypress will use the Node version bundled with Cypress. Otherwise, Cypress will use the Node version that was used to launch the Cypress. This Node version is used when executing your plugins file and building spec files.

Default: "system"
Values: "system" "bundled"
experimentalInteractiveRunEvents boolean

Allows listening to the before:run, after:run, before:spec, and after:spec events in the plugins file during interactive mode.

Default: false
experimentalSourceRewriting boolean

Enables AST-based JS/HTML rewriting. This may fix issues caused by the existing regex-based JS/HTML replacement algorithm.

Default: false
experimentalSessionSupport boolean

Enable experimental session support. See https://on.cypress.io/session

Default: false
experimentalFetchPolyfill boolean

Polyfills window.fetch to enable Network spying and stubbing

Default: false
experimentalStudio boolean

Generate and save commands directly to your test suite by interacting with your app as an end user would.

Default: false
retries object | number | null

The number of times to retry a failing. Can be configured to apply only in runMode or openMode

Default:
{
  "runMode": 0,
  "openMode": 0
}
includeShadowDom boolean

Enables including elements within the shadow DOM when using querying commands (e.g. cy.get(), cy.find()). Can be set globally in cypress.json, per-suite or per-test in the test configuration object, or programmatically with Cypress.config()

Default: false
clientCertificates object[]

Defines client certificates to use when sending requests to the specified URLs

e2e
49 nested properties
baseUrl string

Url used as prefix for cy.visit() or cy.request() command’s url. Example http://localhost:3030 or https://test.my-domain.com

Default: null
env object

Any values to be set as environment variables. See https://on.cypress.io/environment-variables

ignoreTestFiles string | array

A String or Array of glob patterns used to ignore test files that would otherwise be shown in your list of tests. Cypress uses minimatch with the options: {dot: true, matchBase: true}. We suggest using http://globtester.com to test what files would match.

numTestsKeptInMemory number

The number of tests for which snapshots and command data are kept in memory. Reduce this number if you are experiencing high memory consumption in your browser during a test run.

Default: 50
port number

Port used to host Cypress. Normally this is a randomly generated port

Default: null
reporter string

The reporter used when running headlessly or in CI. See https://on.cypress.io/reporters

Default: "spec"
reporterOptions object

The reporter options used. Supported options depend on the reporter. See https://on.cypress.io/reporters#Reporter-Options

Default: null
slowTestThreshold number

Slow test threshold in milliseconds. Only affects the visual output of some reporters. For example, the spec reporter will display the test time in yellow if over the threshold. See https://on.cypress.io/configuration#Timeouts

Default: 10000
testFiles string | array

A String or Array of string glob patterns of the test files to load. See https://on.cypress.io/configuration#Global

Default: "**/*.*"
watchForFileChanges boolean

Whether Cypress will watch and restart tests on test file changes

Default: true
defaultCommandTimeout number

Time, in milliseconds, to wait until most DOM based commands are considered timed out

Default: 4000
execTimeout number

Time, in milliseconds, to wait for a system command to finish executing during a cy.exec() command

Default: 60000
taskTimeout number

Time, in milliseconds, to wait for a task to finish executing during a cy.task() command

Default: 60000
pageLoadTimeout number

Time, in milliseconds, to wait for page transition events or cy.visit(), cy.go(), cy.reload() commands to fire their page load events. Network requests are limited by the underlying operating system, and may still time out if this value is increased.

Default: 60000
requestTimeout number

Time, in milliseconds, to wait for an XHR request to go out in a cy.wait() command

Default: 5000
responseTimeout number

Time, in milliseconds, to wait until a response in a cy.request(), cy.wait(), cy.fixture(), cy.getCookie(), cy.getCookies(), cy.setCookie(), cy.clearCookie(), cy.clearCookies(), and cy.screenshot() commands

Default: 30000
fileServerFolder string

Path to folder where application files will attempt to be served from

Default: "root project folder"
fixturesFolder string | boolean

Path to folder containing fixture files (Pass false to disable)

Default: "cypress/fixtures"
integrationFolder string

Path to folder containing integration test files

Default: "cypress/integration"
downloadsFolder string

Path to folder where files downloaded during a test are saved

Default: "cypress/downloads"
componentFolder string | boolean

Path to folder containing component test files (Pass false to disable)

Default: false
pluginsFile string | boolean

Path to plugins file. (Pass false to disable)

Default: "cypress/plugins/index.js"
screenshotOnRunFailure boolean

Whether Cypress will take a screenshot when a test fails during cypress run

Default: true
screenshotsFolder string

Path to folder where screenshots will be saved from cy.screenshot() command or after a test fails during cypress run

Default: "cypress/screenshots"
supportFile string | boolean

Path to file to load before test files load. This file is compiled and bundled. (Pass false to disable)

Default: "cypress/support/index.js"
videosFolder string

Path to folder where videos will be saved during cypress run

Default: "cypress/videos"
trashAssetsBeforeRuns boolean

Whether Cypress will trash assets within the screenshotsFolder and videosFolder before tests run with cypress run

Default: true
videoCompression number | boolean

The quality setting for the video compression, in Constant Rate Factor (CRF). The value can be false to disable compression or a value between 0 and 51, where a lower value results in better quality (at the expense of a higher file size).

Default: 32
video boolean

Whether Cypress will capture a video of the tests run with cypress run

Default: true
videoUploadOnPasses boolean

Whether Cypress will process, compress, and upload videos to the Dashboard even when all tests in a spec file are passing. This only applies when recording your runs to the Dashboard. Turn this off if you’d like to only upload the spec file’s video when there are failing tests.

Default: true
chromeWebSecurity boolean

Whether Chrome Web Security for same-origin policy and insecure mixed content is enabled. Read more about this at https://on.cypress.io/web-security

Default: true
userAgent string

Enables you to override the default user agent the browser sends in all request headers. User agent values are typically used by servers to help identify the operating system, browser, and browser version. See User-Agent MDN Documentation for example user agent values here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent

Default: null
blockHosts string | array

A String or Array of hosts that you wish to block traffic for. Please read the notes for examples on using this https://on.cypress.io/configuration#blockHosts

Default: null
modifyObstructiveCode boolean

Whether Cypress will search for and replace obstructive JS code found in .js or .html files that prevent Cypress from working. Please read the notes for more information on this setting. https://on.cypress.io/configuration#modifyObstructiveCode

Default: true
viewportHeight number

Default height in pixels for the application under tests’ viewport (Override with cy.viewport() command)

Default: 660
viewportWidth number

Default width in pixels for the application under tests’ viewport. (Override with cy.viewport() command)

Default: 1000
animationDistanceThreshold number

The distance in pixels an element must exceed over time to be considered animating

Default: 5
waitForAnimations boolean

Whether to wait for elements to finish animating before executing commands

Default: true
scrollBehavior enum

Viewport position to which an element should be scrolled prior to action commands. Setting false disables scrolling.

Default: "top"
Values: false "center" "top" "bottom" "nearest"
projectId string

A 6 character string use to identify this project in the Cypress Dashboard. See https://on.cypress.io/dashboard-service#Identification

Default: null
nodeVersion enum

DEPRECATED: If set to 'bundled', Cypress will use the Node version bundled with Cypress. Otherwise, Cypress will use the Node version that was used to launch the Cypress. This Node version is used when executing your plugins file and building spec files.

Default: "system"
Values: "system" "bundled"
experimentalInteractiveRunEvents boolean

Allows listening to the before:run, after:run, before:spec, and after:spec events in the plugins file during interactive mode.

Default: false
experimentalSourceRewriting boolean

Enables AST-based JS/HTML rewriting. This may fix issues caused by the existing regex-based JS/HTML replacement algorithm.

Default: false
experimentalSessionSupport boolean

Enable experimental session support. See https://on.cypress.io/session

Default: false
experimentalFetchPolyfill boolean

Polyfills window.fetch to enable Network spying and stubbing

Default: false
experimentalStudio boolean

Generate and save commands directly to your test suite by interacting with your app as an end user would.

Default: false
retries object | number | null

The number of times to retry a failing. Can be configured to apply only in runMode or openMode

Default:
{
  "runMode": 0,
  "openMode": 0
}
includeShadowDom boolean

Enables including elements within the shadow DOM when using querying commands (e.g. cy.get(), cy.find()). Can be set globally in cypress.json, per-suite or per-test in the test configuration object, or programmatically with Cypress.config()

Default: false
clientCertificates object[]

Defines client certificates to use when sending requests to the specified URLs

Definitions

cypressConfig
baseUrl string

Url used as prefix for cy.visit() or cy.request() command’s url. Example http://localhost:3030 or https://test.my-domain.com

Default: null
env object

Any values to be set as environment variables. See https://on.cypress.io/environment-variables

ignoreTestFiles string | array

A String or Array of glob patterns used to ignore test files that would otherwise be shown in your list of tests. Cypress uses minimatch with the options: {dot: true, matchBase: true}. We suggest using http://globtester.com to test what files would match.

numTestsKeptInMemory number

The number of tests for which snapshots and command data are kept in memory. Reduce this number if you are experiencing high memory consumption in your browser during a test run.

Default: 50
port number

Port used to host Cypress. Normally this is a randomly generated port

Default: null
reporter string

The reporter used when running headlessly or in CI. See https://on.cypress.io/reporters

Default: "spec"
reporterOptions object

The reporter options used. Supported options depend on the reporter. See https://on.cypress.io/reporters#Reporter-Options

Default: null
slowTestThreshold number

Slow test threshold in milliseconds. Only affects the visual output of some reporters. For example, the spec reporter will display the test time in yellow if over the threshold. See https://on.cypress.io/configuration#Timeouts

Default: 10000
testFiles string | array

A String or Array of string glob patterns of the test files to load. See https://on.cypress.io/configuration#Global

Default: "**/*.*"
watchForFileChanges boolean

Whether Cypress will watch and restart tests on test file changes

Default: true
defaultCommandTimeout number

Time, in milliseconds, to wait until most DOM based commands are considered timed out

Default: 4000
execTimeout number

Time, in milliseconds, to wait for a system command to finish executing during a cy.exec() command

Default: 60000
taskTimeout number

Time, in milliseconds, to wait for a task to finish executing during a cy.task() command

Default: 60000
pageLoadTimeout number

Time, in milliseconds, to wait for page transition events or cy.visit(), cy.go(), cy.reload() commands to fire their page load events. Network requests are limited by the underlying operating system, and may still time out if this value is increased.

Default: 60000
requestTimeout number

Time, in milliseconds, to wait for an XHR request to go out in a cy.wait() command

Default: 5000
responseTimeout number

Time, in milliseconds, to wait until a response in a cy.request(), cy.wait(), cy.fixture(), cy.getCookie(), cy.getCookies(), cy.setCookie(), cy.clearCookie(), cy.clearCookies(), and cy.screenshot() commands

Default: 30000
fileServerFolder string

Path to folder where application files will attempt to be served from

Default: "root project folder"
fixturesFolder string | boolean

Path to folder containing fixture files (Pass false to disable)

Default: "cypress/fixtures"
integrationFolder string

Path to folder containing integration test files

Default: "cypress/integration"
downloadsFolder string

Path to folder where files downloaded during a test are saved

Default: "cypress/downloads"
componentFolder string | boolean

Path to folder containing component test files (Pass false to disable)

Default: false
pluginsFile string | boolean

Path to plugins file. (Pass false to disable)

Default: "cypress/plugins/index.js"
screenshotOnRunFailure boolean

Whether Cypress will take a screenshot when a test fails during cypress run

Default: true
screenshotsFolder string

Path to folder where screenshots will be saved from cy.screenshot() command or after a test fails during cypress run

Default: "cypress/screenshots"
supportFile string | boolean

Path to file to load before test files load. This file is compiled and bundled. (Pass false to disable)

Default: "cypress/support/index.js"
videosFolder string

Path to folder where videos will be saved during cypress run

Default: "cypress/videos"
trashAssetsBeforeRuns boolean

Whether Cypress will trash assets within the screenshotsFolder and videosFolder before tests run with cypress run

Default: true
videoCompression number | boolean

The quality setting for the video compression, in Constant Rate Factor (CRF). The value can be false to disable compression or a value between 0 and 51, where a lower value results in better quality (at the expense of a higher file size).

Default: 32
video boolean

Whether Cypress will capture a video of the tests run with cypress run

Default: true
videoUploadOnPasses boolean

Whether Cypress will process, compress, and upload videos to the Dashboard even when all tests in a spec file are passing. This only applies when recording your runs to the Dashboard. Turn this off if you’d like to only upload the spec file’s video when there are failing tests.

Default: true
chromeWebSecurity boolean

Whether Chrome Web Security for same-origin policy and insecure mixed content is enabled. Read more about this at https://on.cypress.io/web-security

Default: true
userAgent string

Enables you to override the default user agent the browser sends in all request headers. User agent values are typically used by servers to help identify the operating system, browser, and browser version. See User-Agent MDN Documentation for example user agent values here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent

Default: null
blockHosts string | array

A String or Array of hosts that you wish to block traffic for. Please read the notes for examples on using this https://on.cypress.io/configuration#blockHosts

Default: null
modifyObstructiveCode boolean

Whether Cypress will search for and replace obstructive JS code found in .js or .html files that prevent Cypress from working. Please read the notes for more information on this setting. https://on.cypress.io/configuration#modifyObstructiveCode

Default: true
viewportHeight number

Default height in pixels for the application under tests’ viewport (Override with cy.viewport() command)

Default: 660
viewportWidth number

Default width in pixels for the application under tests’ viewport. (Override with cy.viewport() command)

Default: 1000
animationDistanceThreshold number

The distance in pixels an element must exceed over time to be considered animating

Default: 5
waitForAnimations boolean

Whether to wait for elements to finish animating before executing commands

Default: true
scrollBehavior enum

Viewport position to which an element should be scrolled prior to action commands. Setting false disables scrolling.

Default: "top"
Values: false "center" "top" "bottom" "nearest"
projectId string

A 6 character string use to identify this project in the Cypress Dashboard. See https://on.cypress.io/dashboard-service#Identification

Default: null
nodeVersion enum

DEPRECATED: If set to 'bundled', Cypress will use the Node version bundled with Cypress. Otherwise, Cypress will use the Node version that was used to launch the Cypress. This Node version is used when executing your plugins file and building spec files.

Default: "system"
Values: "system" "bundled"
experimentalInteractiveRunEvents boolean

Allows listening to the before:run, after:run, before:spec, and after:spec events in the plugins file during interactive mode.

Default: false
experimentalSourceRewriting boolean

Enables AST-based JS/HTML rewriting. This may fix issues caused by the existing regex-based JS/HTML replacement algorithm.

Default: false
experimentalSessionSupport boolean

Enable experimental session support. See https://on.cypress.io/session

Default: false
experimentalFetchPolyfill boolean

Polyfills window.fetch to enable Network spying and stubbing

Default: false
experimentalStudio boolean

Generate and save commands directly to your test suite by interacting with your app as an end user would.

Default: false
retries object | number | null

The number of times to retry a failing. Can be configured to apply only in runMode or openMode

Default:
{
  "runMode": 0,
  "openMode": 0
}
includeShadowDom boolean

Enables including elements within the shadow DOM when using querying commands (e.g. cy.get(), cy.find()). Can be set globally in cypress.json, per-suite or per-test in the test configuration object, or programmatically with Cypress.config()

Default: false
clientCertificates object[]

Defines client certificates to use when sending requests to the specified URLs