Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Use .config files #18578

Merged
merged 80 commits into from
Nov 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
d6f172b
feat: Use .config files
estrada9166 Oct 21, 2021
09f5412
Merge branch 'unified-desktop-gui' of github.com:cypress-io/cypress i…
estrada9166 Oct 21, 2021
614ed50
Update cache
estrada9166 Oct 21, 2021
7b65e93
Replace cypress.json files for cypress.config.{ts|js}
estrada9166 Oct 21, 2021
cd16351
Update cypress.json usage for config file
estrada9166 Oct 22, 2021
16b7b1e
Merge branch 'unified-desktop-gui' into alejandro/unified/use-config-…
estrada9166 Oct 22, 2021
9e03d46
Update cypress.json usage for config file
estrada9166 Oct 22, 2021
cfb39a6
Merge branch 'alejandro/unified/use-config-file' of github.com:cypres…
estrada9166 Oct 22, 2021
936ede5
Fix some tests
estrada9166 Oct 22, 2021
1a41152
Merge branch 'unified-desktop-gui' of github.com:cypress-io/cypress i…
estrada9166 Oct 22, 2021
c143e92
Fix more tests
estrada9166 Oct 22, 2021
e598f48
Fix more tests
estrada9166 Oct 25, 2021
bec0ab1
Merge branch 'unified-desktop-gui' into alejandro/unified/use-config-…
estrada9166 Oct 25, 2021
1b35442
Fix more tests
estrada9166 Oct 25, 2021
efccb7e
Merge branch 'alejandro/unified/use-config-file' of github.com:cypres…
estrada9166 Oct 25, 2021
70f3be6
Merge branch 'unified-desktop-gui' into alejandro/unified/use-config-…
estrada9166 Oct 25, 2021
f944cbd
Fix more tests
estrada9166 Oct 25, 2021
51859db
Attempt to fix CI projects
estrada9166 Oct 26, 2021
1864cec
Fix CircleCI
estrada9166 Oct 26, 2021
e66e49c
Attempt to fix CircleCI
estrada9166 Oct 26, 2021
88abc8d
Attempt to fix CircleCI
estrada9166 Oct 26, 2021
c9cf43e
Attempt to fix CircleCI
estrada9166 Oct 26, 2021
c2b8281
Merge branch 'unified-desktop-gui' into alejandro/unified/use-config-…
estrada9166 Oct 26, 2021
4d7a1c2
Attempt to fix CircleCI
estrada9166 Oct 26, 2021
d96e5ae
Merge branch 'alejandro/unified/use-config-file' of github.com:cypres…
estrada9166 Oct 26, 2021
f185449
Merge branch 'unified-desktop-gui' into alejandro/unified/use-config-…
estrada9166 Oct 26, 2021
289b56f
Attempt to fix CircleCI
estrada9166 Oct 26, 2021
5b27cff
Merge branch 'unified-desktop-gui' into alejandro/unified/use-config-…
estrada9166 Oct 26, 2021
7c25bed
Fix more tests
estrada9166 Oct 26, 2021
eed07a4
Merge branch 'unified-desktop-gui' into alejandro/unified/use-config-…
estrada9166 Oct 26, 2021
ed4593e
Attempt to fix test
estrada9166 Oct 26, 2021
2f183ba
Revert change
estrada9166 Oct 26, 2021
c790408
Handle cypress.json files
estrada9166 Oct 26, 2021
deaf156
Add e2e tests
estrada9166 Oct 27, 2021
85a6485
Merge branch 'unified-desktop-gui' of github.com:cypress-io/cypress i…
estrada9166 Oct 27, 2021
cf0476c
Remove write when config file do not exist
estrada9166 Oct 27, 2021
13a1382
Merge branch 'unified-desktop-gui' into alejandro/unified/use-config-…
estrada9166 Oct 27, 2021
07dc4d5
Fix tests
estrada9166 Oct 27, 2021
01891c1
Fix tests
estrada9166 Oct 27, 2021
803b172
Fix tests
estrada9166 Oct 27, 2021
e677247
Update test
estrada9166 Oct 28, 2021
bb479bc
Update tests
estrada9166 Oct 28, 2021
83aa113
Update tests
estrada9166 Oct 28, 2021
16d5ebc
Update snapshots
estrada9166 Oct 28, 2021
5e92e63
Merge branch 'unified-desktop-gui' of github.com:cypress-io/cypress i…
estrada9166 Oct 28, 2021
d2fb618
Cleanup code
estrada9166 Oct 28, 2021
c6d2fd4
Fix tests
estrada9166 Oct 28, 2021
602ff9f
Update CircleCi job, refactor cache, use defineConfig
estrada9166 Oct 28, 2021
3b38404
Attempt to fix Ci
estrada9166 Oct 28, 2021
82372e9
Attempt to fix Ci
estrada9166 Oct 28, 2021
3e19cc8
Attempt to fix Ci
estrada9166 Oct 28, 2021
59e6d2c
Attempt to fix Ci
estrada9166 Oct 28, 2021
001b109
Update tests, revert cache read
estrada9166 Oct 28, 2021
bd503ec
Fix circleCi file
estrada9166 Oct 28, 2021
d7322d1
Update circleCi file
estrada9166 Oct 29, 2021
3a0f9d2
Update circleCi file
estrada9166 Oct 29, 2021
f8e291b
Update circleCi file
estrada9166 Oct 29, 2021
785026e
Merge branch 'unified-desktop-gui' into alejandro/unified/use-config-…
estrada9166 Oct 29, 2021
e0bdfb5
Merge branch 'unified-desktop-gui' into alejandro/unified/use-config-…
estrada9166 Oct 29, 2021
108b7f8
Revert default config file for tests
estrada9166 Oct 29, 2021
7ec7622
Update error message
estrada9166 Oct 29, 2021
1a40e5a
Update wizard step
estrada9166 Oct 29, 2021
0702fbb
Do not save confi in file cache
estrada9166 Oct 29, 2021
3048ac6
Revert "Do not save confi in file cache"
tgriesser Oct 29, 2021
cee98b3
Pairing w/ alejandro
tgriesser Oct 29, 2021
a861f35
Fix tests
estrada9166 Oct 29, 2021
9c99ac1
Merge branch 'unified-desktop-gui' of github.com:cypress-io/cypress i…
estrada9166 Oct 30, 2021
345c840
Fix tests
estrada9166 Oct 30, 2021
4ae2b5d
Attempt to fix tests
estrada9166 Oct 30, 2021
2b0be87
Fix tests
estrada9166 Oct 30, 2021
edd41e3
Fix some tests
estrada9166 Oct 30, 2021
3ea0943
Merge branch 'unified-desktop-gui' of github.com:cypress-io/cypress i…
estrada9166 Nov 1, 2021
118402b
Fix build, fix tests
estrada9166 Nov 1, 2021
c3a2f54
Merge branch 'unified-desktop-gui' of github.com:cypress-io/cypress i…
estrada9166 Nov 1, 2021
3c83d81
Fix tests
estrada9166 Nov 1, 2021
82be2d6
Merge branch 'unified-desktop-gui' of github.com:cypress-io/cypress i…
estrada9166 Nov 1, 2021
287c706
scaffold cypress-example-kitchensink tests from branch feat/use-confi…
tgriesser Nov 1, 2021
2d6c338
Remove need for cleanupCreatedFilesInProject
tgriesser Nov 1, 2021
94e1e85
Merge branch 'unified-desktop-gui' into alejandro/unified/use-config-…
estrada9166 Nov 1, 2021
e3ead50
Merge branch 'unified-desktop-gui' into alejandro/unified/use-config-…
estrada9166 Nov 2, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
78 changes: 60 additions & 18 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -516,20 +516,34 @@ commands:
steps:
- run: yarn verify:mocha:results <<parameters.expectedResultCount>>

clone-repo-and-checkout-release-branch:
clone-repo-and-checkout-branch:
description: |
Clones an external repo and then checks out the branch that matches the next version otherwise uses 'master' branch.
parameters:
repo:
description: "Name of the github repo to clone like: cypress-example-kitchensink"
type: string
pull_request_id:
description: Pull request number to check out before installing and testing
type: integer
default: 0
steps:
- restore_cached_binary
- run:
name: "Cloning test project: <<parameters.repo>>"
command: |
git clone --depth 1 --no-single-branch https://github.com/cypress-io/<<parameters.repo>>.git /tmp/<<parameters.repo>>
cd /tmp/<<parameters.repo>> && (git checkout $(node ./scripts/get-next-version) || true)
- when:
condition: <<parameters.pull_request_id>>
steps:
- run:
name: Check out PR <<parameters.pull_request_id>>
working_directory: /tmp/<<parameters.repo>>
command: |
git fetch origin pull/<<parameters.pull_request_id>>/head:pr-<<parameters.pull_request_id>>
git checkout pr-<<parameters.pull_request_id>>
git log -n 2

test-binary-against-rwa:
description: |
Expand Down Expand Up @@ -571,7 +585,7 @@ commands:
type: string
default: "CI=true yarn start"
steps:
- clone-repo-and-checkout-release-branch:
- clone-repo-and-checkout-branch:
repo: <<parameters.repo>>
- when:
condition: <<parameters.pull_request_id>>
Expand Down Expand Up @@ -701,18 +715,9 @@ commands:
type: string
default: "npm start --if-present"
steps:
- clone-repo-and-checkout-release-branch:
- clone-repo-and-checkout-branch:
repo: <<parameters.repo>>
- when:
condition: <<parameters.pull_request_id>>
steps:
- run:
name: Check out PR <<parameters.pull_request_id>>
working_directory: /tmp/<<parameters.repo>>
command: |
git fetch origin pull/<<parameters.pull_request_id>>/head:pr-<<parameters.pull_request_id>>
git checkout pr-<<parameters.pull_request_id>>
git log -n 2
pull_request_id: <<parameters.pull_request_id>>
- run:
# Install deps + Cypress binary with yarn if yarn.lock present
command: |
Expand All @@ -724,6 +729,16 @@ commands:
CYPRESS_INSTALL_BINARY=~/cypress/cypress.zip npm install ~/cypress/cypress.tgz
fi
working_directory: /tmp/<<parameters.repo>>
- run:
name: Scaffold new config file
working_directory: /tmp/<<parameters.repo>>
environment:
CYPRESS_INTERNAL_FORCE_SCAFFOLD: "1"
command: |
if [[ -f cypress.json ]]; then
rm -rf cypress.json
echo 'module.exports = {}' > cypress.config.js
fi
- run:
name: Print Cypress version
working_directory: /tmp/<<parameters.repo>>
Expand Down Expand Up @@ -1610,9 +1625,17 @@ jobs:
test-kitchensink:
<<: *defaults
steps:
- clone-repo-and-checkout-release-branch:
- clone-repo-and-checkout-branch:
repo: cypress-example-kitchensink
pull_request_id: 510
- install-required-node
- run:
name: Remove cypress.json
description: Remove cypress.json in case it exists
working_directory: /tmp/cypress-example-kitchensink
environment:
CYPRESS_INTERNAL_FORCE_SCAFFOLD: "1"
command: rm -rf cypress.json
- run:
name: Install prod dependencies
command: yarn --production
Expand All @@ -1637,7 +1660,7 @@ jobs:
<<: *defaults
resource_class: medium
steps:
- clone-repo-and-checkout-release-branch:
- clone-repo-and-checkout-branch:
repo: cypress-example-kitchensink
- run:
name: Install prod dependencies
Expand All @@ -1662,7 +1685,7 @@ jobs:
<<: *defaults
resource_class: medium
steps:
- clone-repo-and-checkout-release-branch:
- clone-repo-and-checkout-branch:
repo: cypress-test-tiny
- run:
name: Run test project
Expand Down Expand Up @@ -1846,7 +1869,7 @@ jobs:
environment:
CYPRESS_INTERNAL_FORCE_SCAFFOLD: "1"
command: |
echo '{}' > cypress.json
echo 'module.exports = {}' > cypress.config.js
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
echo 'module.exports = {}' > cypress.config.js
echo 'export default {}' > cypress.config.js

this spelling would be more future proof

npx cypress run

test-full-typescript-project:
Expand Down Expand Up @@ -1878,6 +1901,14 @@ jobs:
name: Scaffold full TypeScript project 🏗
working_directory: <<parameters.wd>>
command: npx @bahmutov/cly@1 init --typescript
- run:
name: Scaffold new config file
working_directory: <<parameters.wd>>
environment:
CYPRESS_INTERNAL_FORCE_SCAFFOLD: "1"
command: |
rm -rf cypress.json
echo 'export default {}' > cypress.config.ts
- run:
name: Run project tests 🗳
working_directory: <<parameters.wd>>
Expand All @@ -1888,7 +1919,7 @@ jobs:
<<: *defaults
steps:
- restore_workspace_binaries
- clone-repo-and-checkout-release-branch:
- clone-repo-and-checkout-branch:
repo: cypress-test-tiny
- run:
name: Install Cypress
Expand Down Expand Up @@ -1940,6 +1971,7 @@ jobs:
- test-binary-against-repo:
repo: cypress-example-kitchensink
browser: "electron"
pull_request_id: 510

test-binary-against-awesome-typescript-loader:
<<: *defaults
Expand All @@ -1955,6 +1987,7 @@ jobs:
- test-binary-against-repo:
repo: cypress-example-kitchensink
browser: firefox
pull_request_id: 510

"test-binary-against-kitchensink-chrome":
<<: *defaults
Expand All @@ -1963,6 +1996,7 @@ jobs:
- test-binary-against-repo:
repo: cypress-example-kitchensink
browser: chrome
pull_request_id: 510

"test-binary-against-todomvc-firefox":
<<: *defaults
Expand Down Expand Up @@ -2056,6 +2090,14 @@ jobs:
name: Add Cypress demo
working_directory: test-binary
command: npx @bahmutov/cly init
- run:
name: Scaffold new config file
working_directory: test-binary
environment:
CYPRESS_INTERNAL_FORCE_SCAFFOLD: "1"
command: |
rm -rf cypress.json
echo 'module.exports = {}' > cypress.config.js
- run:
name: Verify Cypress binary
working_directory: test-binary
Expand Down
20 changes: 11 additions & 9 deletions cli/__snapshots__/cli_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,21 @@ exports['shows help for open --foo 1'] = `
--component runs component tests
-c, --config <config> sets configuration values. separate multiple
values with a comma. overrides any value in
cypress.json.
cypress.config.{ts|js}.
-C, --config-file <config-file> path to JSON file where configuration values
are set. defaults to "cypress.json". pass
"false" to disable.
are set. defaults to
"cypress.config.{ts|js}". pass "false" to
disable.
-d, --detached [bool] runs Cypress application in detached mode
--e2e runs end to end tests
-e, --env <env> sets environment variables. separate
multiple values with a comma. overrides any
value in cypress.json or cypress.env.json
value in cypress.config.{ts|js} or
cypress.env.json
--global force Cypress into global mode as if its
globally installed
-p, --port <port> runs Cypress on a specific port. overrides
any value in cypress.json.
any value in cypress.config.{ts|js}.
-P, --project <project-path> path to the project
--dev runs cypress in development and bypasses
binary check
Expand Down Expand Up @@ -67,17 +69,17 @@ exports['shows help for run --foo 1'] = `
-b, --browser <browser-name-or-path> runs Cypress in the browser with the given name. if a filesystem path is supplied, Cypress will attempt to use the browser at that path.
--ci-build-id <id> the unique identifier for a run on your CI provider. typically a "BUILD_ID" env var. this value is automatically detected for most CI providers
--component runs component tests
-c, --config <config> sets configuration values. separate multiple values with a comma. overrides any value in cypress.json.
-C, --config-file <config-file> path to JSON file where configuration values are set. defaults to "cypress.json". pass "false" to disable.
-c, --config <config> sets configuration values. separate multiple values with a comma. overrides any value in cypress.config.{ts|js}.
-C, --config-file <config-file> path to JSON file where configuration values are set. defaults to "cypress.config.{ts|js}". pass "false" to disable.
--e2e runs end to end tests
-e, --env <env> sets environment variables. separate multiple values with a comma. overrides any value in cypress.json or cypress.env.json
-e, --env <env> sets environment variables. separate multiple values with a comma. overrides any value in cypress.config.{ts|js} or cypress.env.json
--group <name> a named group for recorded runs in the Cypress Dashboard
-k, --key <record-key> your secret Record Key. you can omit this if you set a CYPRESS_RECORD_KEY environment variable.
--headed displays the browser instead of running headlessly
--headless hide the browser instead of running headed (default for cypress run)
--no-exit keep the browser open after tests finish
--parallel enables concurrent runs and automatic load balancing of specs across multiple machines or processes
-p, --port <port> runs Cypress on a specific port. overrides any value in cypress.json.
-p, --port <port> runs Cypress on a specific port. overrides any value in cypress.config.{ts|js}.
-P, --project <project-path> path to the project
-q, --quiet run quietly, using only the configured reporter
--record [bool] records the run. sends test results, screenshots and videos to your Cypress Dashboard.
Expand Down
8 changes: 4 additions & 4 deletions cli/lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ const descriptions = {
cacheSize: 'Used with the list command to show the sizes of the cached folders',
ciBuildId: 'the unique identifier for a run on your CI provider. typically a "BUILD_ID" env var. this value is automatically detected for most CI providers',
component: 'runs component tests',
config: 'sets configuration values. separate multiple values with a comma. overrides any value in cypress.json.',
configFile: 'path to JSON file where configuration values are set. defaults to "cypress.json". pass "false" to disable.',
config: 'sets configuration values. separate multiple values with a comma. overrides any value in cypress.config.{ts|js}.',
configFile: 'path to JSON file where configuration values are set. defaults to "cypress.config.{ts|js}". pass "false" to disable.',
detached: 'runs Cypress application in detached mode',
dev: 'runs cypress in development and bypasses binary check',
e2e: 'runs end to end tests',
env: 'sets environment variables. separate multiple values with a comma. overrides any value in cypress.json or cypress.env.json',
env: 'sets environment variables. separate multiple values with a comma. overrides any value in cypress.config.{ts|js} or cypress.env.json',
exit: 'keep the browser open after tests finish',
forceInstall: 'force install the Cypress binary',
global: 'force Cypress into global mode as if its globally installed',
Expand All @@ -121,7 +121,7 @@ const descriptions = {
headless: 'hide the browser instead of running headed (default for cypress run)',
key: 'your secret Record Key. you can omit this if you set a CYPRESS_RECORD_KEY environment variable.',
parallel: 'enables concurrent runs and automatic load balancing of specs across multiple machines or processes',
port: 'runs Cypress on a specific port. overrides any value in cypress.json.',
port: 'runs Cypress on a specific port. overrides any value in cypress.config.{ts|js}.',
project: 'path to the project',
quiet: 'run quietly, using only the configured reporter',
record: 'records the run. sends test results, screenshots and videos to your Cypress Dashboard.',
Expand Down
2 changes: 1 addition & 1 deletion cli/schema/cypress.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@
"includeShadowDom": {
"type": "boolean",
"default": false,
"description": "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()"
"description": "Enables including elements within the shadow DOM when using querying commands (e.g. cy.get(), cy.find()). Can be set globally in cypress.config.{ts|js}, per-suite or per-test in the test configuration object, or programmatically with Cypress.config()"
},
"clientCertificates": {
"description": "Defines client certificates to use when sending requests to the specified URLs",
Expand Down
6 changes: 3 additions & 3 deletions cli/test/lib/cypress_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,12 @@ describe('cypress', function () {
})
})

it('coerces --config-file cypress.json to string', async () => {
const args = 'cypress run --config-file cypress.json'.split(' ')
it('coerces --config-file cypress.config.js to string', async () => {
const args = 'cypress run --config-file cypress.config.js'.split(' ')
const options = await cypress.cli.parseRunArguments(args)

expect(options).to.deep.equal({
configFile: 'cypress.json',
configFile: 'cypress.config.js',
})
})
elevatebart marked this conversation as resolved.
Show resolved Hide resolved

Expand Down
4 changes: 2 additions & 2 deletions cli/test/lib/exec/open_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ describe('exec open', function () {
})

it('spawns with --config-file set', function () {
return open.start({ configFile: 'special-cypress.json' })
return open.start({ configFile: 'special-cypress.config.js' })
.then(() => {
expect(spawn.start).to.be.calledWith(
['--config-file', 'special-cypress.json'],
['--config-file', 'special-cypress.config.js'],
)
})
})
Expand Down
4 changes: 2 additions & 2 deletions cli/test/lib/exec/run_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ describe('exec run', function () {
})

it('spawns with --config-file set', function () {
return run.start({ configFile: 'special-cypress.json' })
return run.start({ configFile: 'special-cypress.config.js' })
.then(() => {
expect(spawn.start).to.be.calledWith(
['--run-project', process.cwd(), '--config-file', 'special-cypress.json'],
['--run-project', process.cwd(), '--config-file', 'special-cypress.config.js'],
)
})
})
Expand Down
2 changes: 1 addition & 1 deletion cli/types/cypress-npm-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ declare namespace CypressCommandLine {
*
* If `false` is passed, no config file will be used.
*
* @default "cypress.json"
* @default "cypress.config.{ts|js}"
*/
configFile: string | false
/**
Expand Down
8 changes: 4 additions & 4 deletions cli/types/cypress.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ declare namespace Cypress {

// no real way to type without generics
/**
* Returns all environment variables set with CYPRESS_ prefix or in "env" object in "cypress.json"
* Returns all environment variables set with CYPRESS_ prefix or in "env" object in "cypress.config.{ts|js}"
*
* @see https://on.cypress.io/env
*/
Expand All @@ -362,7 +362,7 @@ declare namespace Cypress {
* Returns specific environment variable or undefined
* @see https://on.cypress.io/env
* @example
* // cypress.json
* // cypress.config.js
* { "env": { "foo": "bar" } }
* Cypress.env("foo") // => bar
*/
Expand Down Expand Up @@ -2756,7 +2756,7 @@ declare namespace Cypress {
retries: Nullable<number | { runMode?: Nullable<number>, openMode?: Nullable<number> }>
/**
* Enables including elements within the shadow DOM when using querying
* commands (e.g. cy.get(), cy.find()). Can be set globally in cypress.json,
* commands (e.g. cy.get(), cy.find()). Can be set globally in cypress.config.{ts|js},
* per-suite or per-test in the test configuration object, or programmatically
* with Cypress.config()
* @default false
Expand Down Expand Up @@ -2894,7 +2894,7 @@ declare namespace Cypress {

interface PluginConfigOptions extends ResolvedConfigOptions {
/**
* Absolute path to the config file (default: <projectRoot>/cypress.json) or false
* Absolute path to the config file (default: <projectRoot>/cypress.config.{ts|js}) or false
*/
configFile: string | false
/**
Expand Down
6 changes: 3 additions & 3 deletions npm/angular/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ require('core-js/es7/reflect');
require('@cypress/angular/support');
```

Enable component testing in `cypress.json`.
Enable component testing in `cypress.config.js`.

```json
{
```js
module.exports = {
"component": {
"componentFolder": "src/app",
"testFiles": "**/*cy-spec.ts"
Expand Down
13 changes: 13 additions & 0 deletions npm/angular/cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { defineConfig } from 'cypress'

export default defineConfig({
'experimentalFetchPolyfill': true,
'fixturesFolder': false,
'includeShadowDom': true,
'fileServerFolder': 'src',
'projectId': 'nf7zag',
'component': {
'componentFolder': 'src/app',
'testFiles': '**/*cy-spec.ts',
},
})
Loading