diff options
Diffstat (limited to 'cypress.config.ts')
-rw-r--r-- | cypress.config.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cypress.config.ts b/cypress.config.ts index 02b0bbf2734..b8cb90c5177 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -100,6 +100,20 @@ export default defineConfig({ process.env.npm_package_version = '1.0.0' process.env.NODE_ENV = 'development' + /** + * Needed for cypress stubbing + * + * @see https://github.com/sinonjs/sinon/issues/1121 + * @see https://github.com/cypress-io/cypress/issues/18662 + */ + const babel = require('./babel.config.js') + babel.plugins.push([ + '@babel/plugin-transform-modules-commonjs', + { + loose: true, + }, + ]) + const config = require('@nextcloud/webpack-vue-config') config.module.rules.push({ test: /\.svg$/, |