Skip to content

Commit eb2475e

Browse files
committed
chore: remove Cypress component testing
Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent 1f72fd3 commit eb2475e

File tree

8 files changed

+8
-139
lines changed

8 files changed

+8
-139
lines changed

.github/workflows/cypress.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ jobs:
102102
matrix:
103103
# Run multiple copies of the current job in parallel
104104
# Please increase the number or runners as your tests suite grows (0 based index for e2e tests)
105-
containers: ['component', 'setup', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
106-
# Hack as strategy.job-total includes the component and GitHub does not allow math expressions
105+
containers: ['setup', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
106+
# Hack as strategy.job-total includes the "setup" and GitHub does not allow math expressions
107107
# Always align this number with the total of e2e runners (max. index + 1)
108108
total-containers: [10]
109109

cypress.config.ts

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -133,39 +133,4 @@ export default defineConfig({
133133
return config
134134
},
135135
},
136-
137-
component: {
138-
specPattern: ['core/**/*.cy.ts', 'apps/**/*.cy.ts'],
139-
devServer: {
140-
framework: 'vue',
141-
bundler: 'webpack',
142-
webpackConfig: async () => {
143-
process.env.npm_package_name = 'NcCypress'
144-
process.env.npm_package_version = '1.0.0'
145-
process.env.NODE_ENV = 'development'
146-
147-
/**
148-
* Needed for cypress stubbing
149-
*
150-
* @see https://github.com/sinonjs/sinon/issues/1121
151-
* @see https://github.com/cypress-io/cypress/issues/18662
152-
*/
153-
const babel = require('./babel.config.js')
154-
babel.plugins.push([
155-
'@babel/plugin-transform-modules-commonjs',
156-
{
157-
loose: true,
158-
},
159-
])
160-
161-
const config = webpackConfig
162-
config.module.rules.push({
163-
test: /\.svg$/,
164-
type: 'asset/source',
165-
})
166-
167-
return config
168-
},
169-
},
170-
},
171136
})

cypress/support/component-index.html

Lines changed: 0 additions & 16 deletions
This file was deleted.

cypress/support/component.ts

Lines changed: 0 additions & 45 deletions
This file was deleted.

cypress/support/cypress-component.d.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

cypress/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": "../tsconfig.json",
3-
"include": ["./**/*.ts", "../**/*.cy.ts", "./cypress-e2e.d.ts", "./cypress-component.d.ts"],
3+
"include": ["./**/*.ts", "./cypress-e2e.d.ts", "./cypress-component.d.ts"],
44
"exclude": [],
55
"compilerOptions": {
66
"types": [

package-lock.json

Lines changed: 4 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@
2525
"sass": "sass --style compressed --load-path core/css core/css/ $(for cssdir in $(find apps -mindepth 2 -maxdepth 2 -name \"css\"); do if ! $(git check-ignore -q $cssdir); then printf \"$cssdir \"; fi; done)",
2626
"sass:watch": "sass --watch --load-path core/css core/css/ $(for cssdir in $(find apps -mindepth 2 -maxdepth 2 -name \"css\"); do if ! $(git check-ignore -q $cssdir); then printf \"$cssdir \"; fi; done)",
2727
"sass:icons": "babel-node core/src/icons.js",
28-
"cypress": "npm run cypress:component && npm run cypress:e2e",
29-
"cypress:component": "cypress run --component",
30-
"cypress:e2e": "cypress run --e2e",
28+
"cypress": "cypress run --e2e",
3129
"cypress:gui": "cypress open",
3230
"cypress:version": "cypress version"
3331
},
@@ -122,7 +120,6 @@
122120
"@babel/node": "^7.28.0",
123121
"@babel/plugin-transform-private-methods": "^7.27.1",
124122
"@babel/preset-typescript": "^7.28.5",
125-
"@cypress/vue2": "^2.1.1",
126123
"@cypress/webpack-preprocessor": "^7.0.2",
127124
"@nextcloud/babel-config": "^1.3.0",
128125
"@nextcloud/cypress": "^1.0.0-beta.15",

0 commit comments

Comments
 (0)