Skip to content

Commit 5d5cd0f

Browse files
committed
chore: update dev dependencies
1 parent 6867637 commit 5d5cd0f

File tree

4 files changed

+5869
-10420
lines changed

4 files changed

+5869
-10420
lines changed

cypress.config.js

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
const { defineConfig } = require('cypress')
2-
const webpack = require('@cypress/webpack-preprocessor')
3-
const addCucumberPreprocessorPlugin = require('@badeball/cypress-cucumber-preprocessor').addCucumberPreprocessorPlugin
2+
const createBundler = require('@bahmutov/cypress-esbuild-preprocessor')
3+
const { addCucumberPreprocessorPlugin } = require('@badeball/cypress-cucumber-preprocessor')
4+
const { createEsbuildPlugin }  = require ('@badeball/cypress-cucumber-preprocessor/esbuild')
45

56
module.exports = defineConfig({
6-
projectId: '558dq3',
77
fixturesFolder: 'cypress/fixtures',
88
screenshotsFolder: 'reports/screenshots',
99
videosFolder: 'reports/videos',
@@ -12,28 +12,11 @@ module.exports = defineConfig({
1212
setupNodeEvents(on, config) {
1313
addCucumberPreprocessorPlugin(on, config)
1414
on(
15-
'file:preprocessor',
16-
webpack({
17-
webpackOptions: {
18-
resolve: {
19-
extensions: ['.js'],
20-
},
21-
module: {
22-
rules: [
23-
{
24-
test: /\.feature$/,
25-
use: [
26-
{
27-
loader: '@badeball/cypress-cucumber-preprocessor/webpack',
28-
options: config,
29-
},
30-
],
31-
},
32-
],
33-
},
34-
},
15+
"file:preprocessor",
16+
createBundler({
17+
plugins: [createEsbuildPlugin(config)],
3518
})
36-
)
19+
);
3720

3821
return config
3922
},

cypress/e2e/common/system-designer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Given, When, Then, And } from '@badeball/cypress-cucumber-preprocessor'
1+
import { Given, When, Then, Then as And } from '@badeball/cypress-cucumber-preprocessor'
22

33
Given('Users have opened System Designer', () => {
44
cy.visit('/').get('#designer-spaces-type').contains('Systems')

0 commit comments

Comments
 (0)