Skip to content

Commit 792980a

Browse files
lmiller1990estrada9166
andauthoredJan 4, 2022
feat: support specPattern, deprecate integrationFolder and componentFolder (#19319)
* use new specPattern API * remove projectApi.findSpecs * do not require integration folder * support --spec * support --spec * remove old code * remove old code * nuke old code * no appvetor * update * correct url for ct * work on migrating launchpad * update ct spec url * types * types * dead code * remove old endpiont * revert back circle.yml * update missing config * delete spec util * update config * update config * config again * update spec pattern * updated vue config * update spec pattern for ui components * update config for vite dev server * update snapshots * update config * update design system config * fix spec pattern in reporter * update default * update deprecated spec snapshots * update system tests * update run mode output * revert changes * lint * remove scaffold tests * update angular * fix CT * update circle yml * fix system tests for ct * fix tests * work on server unit tests * patch package * patch package again * update test * try not to rely on config async loading too much * normalize specPattern to array * update snapshot * use base name * deal with react-scripts later * update snapshot * hacky way to update snapshots * new hack to update snapshots * trying again * hacky fix * ci: snapshots * ci: snapshots * snapshots * mas updates * update spec API * fix test * fix test * update * update test * fix test * update plugin * update spec * webpack optinos * Update launchpad tests * fix screenshot paths * updated snapshot * change pattern * guard * fix smoke test * patch code coverage * update percy config * fix specs * try updating example project * update snapshots * remove old test * remove snapshot hack * add back appveyor * remove old code * update snapshot * Fix tests * wip * revert snapshot * reverted all snaps * remove only * remove commnet * remove old code * reverted file * lint * revert video compression spec * update snapshot * update spec path logic * update snap * updated snap * snaps * snaps * fix spec * rename ignoreTestFiles to ignoreSpecPattern * update screenshot dir for runner-ct * update deprecations * update * upate * fix test * update snaps * update snap * updating snap * added missing snaps * updated cypress run mode integration spec * electron snapshot * ensure newly scaffold specs are cached * fix launchpad spec * types * update test * transpile based on spec pattern * add back example * remove unnecessary async and nodeVersion * removed old test * update spec pattern and add defensive check around platform * remove unused feature flag * added tests * fix react example * update test * update config * fix spec finding in run mode * fix tests * fixing specs * fix switching between specs * remove invalid test * increase timeout Co-authored-by: estrada9166 <estrada9166@hotmail.com>
1 parent a744999 commit 792980a

File tree

129 files changed

+2415
-3664
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+2415
-3664
lines changed
 

‎circle.yml

-43
Original file line numberDiff line numberDiff line change
@@ -1882,46 +1882,6 @@ jobs:
18821882
echo "console.log('hello world')" > hello.ts
18831883
npx tsc hello.ts --noEmit
18841884
1885-
# testing scaffolding examples and running them
1886-
# against example.cypress.io
1887-
test-cypress-scaffold:
1888-
resource_class: medium
1889-
parameters:
1890-
executor:
1891-
description: Executor name to use
1892-
type: executor
1893-
default: cy-doc
1894-
wd:
1895-
description: Working directory, should be OUTSIDE cypress monorepo folder
1896-
type: string
1897-
default: /root/test-scaffold
1898-
<<: *defaults
1899-
steps:
1900-
- restore_workspace_binaries
1901-
- run: mkdir <<parameters.wd>>
1902-
- run:
1903-
name: Create new NPM package ⚗️
1904-
working_directory: <<parameters.wd>>
1905-
command: npm init -y
1906-
- run:
1907-
name: Install dependencies 📦
1908-
working_directory: <<parameters.wd>>
1909-
environment:
1910-
CYPRESS_INSTALL_BINARY: /root/cypress/cypress.zip
1911-
# let's install Cypress, Jest and any other package that might conflict
1912-
# https://github.com/cypress-io/cypress/issues/6690
1913-
command: |
1914-
npm install /root/cypress/cypress.tgz \
1915-
typescript jest @types/jest enzyme @types/enzyme
1916-
- run:
1917-
name: Scaffold and test examples 🏗
1918-
working_directory: <<parameters.wd>>
1919-
environment:
1920-
CYPRESS_INTERNAL_FORCE_SCAFFOLD: "1"
1921-
command: |
1922-
echo 'module.exports = {}' > cypress.config.js
1923-
npx cypress run
1924-
19251885
test-full-typescript-project:
19261886
parameters:
19271887
executor:
@@ -2390,9 +2350,6 @@ linux-workflow: &linux-workflow
23902350
- test-types-cypress-and-jest:
23912351
requires:
23922352
- create-build-artifacts
2393-
- test-cypress-scaffold:
2394-
requires:
2395-
- create-build-artifacts
23962353
- test-full-typescript-project:
23972354
requires:
23982355
- create-build-artifacts

‎cli/schema/cypress.schema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"description": "Any values to be set as environment variables. See https://on.cypress.io/environment-variables",
1616
"body": {}
1717
},
18-
"ignoreTestFiles": {
18+
"ignoreSpecPattern": {
1919
"type": [
2020
"string",
2121
"array"

0 commit comments

Comments
 (0)