Skip to content

Commit

Permalink
fix(cy): use node polyfills to provide path.basename
Browse files Browse the repository at this point in the history
Signed-off-by: Max <max@nextcloud.com>
  • Loading branch information
max-nextcloud committed May 14, 2024
1 parent 9da2f3f commit 89794ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cypress.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { defineConfig } from 'cypress'
import cypressSplit from 'cypress-split'
import { configureVisualRegression } from 'cypress-visual-regression/dist/plugin.js'
import vitePreprocessor from 'cypress-vite'
import { nodePolyfills } from 'vite-plugin-node-polyfills'
import vue from '@vitejs/plugin-vue2'

export default defineConfig({
Expand All @@ -22,7 +23,7 @@ export default defineConfig({
},
setupNodeEvents(on, config) {
on('file:preprocessor', vitePreprocessor({
plugins: [vue()],
plugins: [vue(), nodePolyfills],
configFile: false,
}))
cypressSplit(on, config)
Expand Down

0 comments on commit 89794ba

Please sign in to comment.