Skip to content
This repository was archived by the owner on Oct 13, 2022. It is now read-only.

Commit 9abb668

Browse files
author
Kevin Old
committed
update config to use latest syntax
1 parent 6c36acb commit 9abb668

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

vue-cli-2/cypress.config.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
const { defineConfig } = require("cypress");
2-
const { startDevServer } = require("@cypress/webpack-dev-server");
2+
const { devServer } = require("@cypress/webpack-dev-server");
33
const webpackConfig = require("@vue/cli-service/webpack.config");
44

55
module.exports = defineConfig({
66
component: {
7-
devServer(cypressDevServerConfig) {
8-
return startDevServer({
9-
options: cypressDevServerConfig,
10-
webpackConfig,
11-
});
12-
},
7+
devServer,
8+
devServerConfig: { webpackConfig },
139
specPattern: "src/**/*.cy.{js,jsx,ts,tsx}",
1410
},
1511
});

0 commit comments

Comments
 (0)