aboutsummaryrefslogtreecommitdiffstats
path: root/cypress.config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cypress.config.ts')
-rw-r--r--cypress.config.ts30
1 files changed, 29 insertions, 1 deletions
diff --git a/cypress.config.ts b/cypress.config.ts
index b7c6934689a..02b0bbf2734 100644
--- a/cypress.config.ts
+++ b/cypress.config.ts
@@ -1,5 +1,12 @@
/* eslint-disable node/no-unpublished-import */
-import { applyChangesToNextcloud, configureNextcloud, preppingNextcloud, startNextcloud, stopNextcloud, waitOnNextcloud } from './cypress/dockerNode'
+
+import {
+ applyChangesToNextcloud,
+ configureNextcloud,
+ startNextcloud,
+ stopNextcloud,
+ waitOnNextcloud,
+} from './cypress/dockerNode'
import { defineConfig } from 'cypress'
import browserify from '@cypress/browserify-preprocessor'
@@ -29,6 +36,7 @@ export default defineConfig({
failSilently: false,
type: 'actual',
},
+
screenshotsFolder: 'cypress/snapshots/actual',
trashAssetsBeforeRuns: true,
@@ -82,4 +90,24 @@ export default defineConfig({
})
},
},
+
+ component: {
+ devServer: {
+ framework: 'vue',
+ bundler: 'webpack',
+ webpackConfig: async () => {
+ process.env.npm_package_name = 'NcCypress'
+ process.env.npm_package_version = '1.0.0'
+ process.env.NODE_ENV = 'development'
+
+ const config = require('@nextcloud/webpack-vue-config')
+ config.module.rules.push({
+ test: /\.svg$/,
+ type: 'asset/source',
+ })
+
+ return config
+ },
+ },
+ },
})