From 9081a0f7d2549622a52c3657f897f95a82f5eefb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 11 Mar 2024 19:44:20 +0100 Subject: [PATCH] fixup! feat: Move to vite for bundling --- cypress.config.cjs => cypress.config.mjs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) rename cypress.config.cjs => cypress.config.mjs (70%) diff --git a/cypress.config.cjs b/cypress.config.mjs similarity index 70% rename from cypress.config.cjs rename to cypress.config.mjs index c4f5a52abf3..67b04c6f477 100644 --- a/cypress.config.cjs +++ b/cypress.config.mjs @@ -1,8 +1,12 @@ -const { defineConfig } = require('cypress') -const cypressSplit = require('cypress-split') -const { configureVisualRegression } = require('cypress-visual-regression/dist/plugin.js') +import { defineConfig } from 'cypress' +import cypressSplit from 'cypress-split' +import { configureVisualRegression } from 'cypress-visual-regression/dist/plugin.js' +import browserify from '@cypress/browserify-preprocessor' +import webpack from '@cypress/webpack-preprocessor' +import webpackOptions from '@nextcloud/webpack-vue-config' -module.exports = defineConfig({ + +export default defineConfig({ projectId: 'hx9gqy', viewportWidth: 1280, viewportHeight: 900, @@ -22,10 +26,6 @@ module.exports = defineConfig({ cypressSplit(on, config) configureVisualRegression(on) - const browserify = require('@cypress/browserify-preprocessor') - const webpack = require('@cypress/webpack-preprocessor') - const webpackOptions = require('@nextcloud/webpack-vue-config') - webpackOptions.module.rules.push({ test: /\.md/, type: 'asset/source' }) on('file:preprocessor', browserify())