Skip to content

Commit

Permalink
fixup! feat: Move to vite for bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr committed Mar 11, 2024
1 parent 38aafa1 commit 9081a0f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cypress.config.cjs → cypress.config.mjs
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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())
Expand Down

0 comments on commit 9081a0f

Please sign in to comment.