Skip to content

Commit

Permalink
fix: setup for cypress vue tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elevatebart committed Apr 7, 2021
1 parent fc55526 commit c27dc77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion npm/vue/cypress/plugins/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/// <reference types="cypress" />
const { startDevServer } = require('@cypress/webpack-dev-server')
const webpackConfig = require('../../webpack.config')

/**
* @type Cypress.PluginConfig
Expand All @@ -9,7 +11,7 @@ module.exports = (on, config) => {
}

require('@cypress/code-coverage/task')(on, config)
require('../../dist/plugins/webpack')(on, config, require('../../webpack.config'))
on('dev-server:start', (options) => startDevServer({ options, webpackConfig }))

return config
}

0 comments on commit c27dc77

Please sign in to comment.