index.js 883 B

123456789101112131415161718192021222324
  1. // https://docs.cypress.io/guides/guides/plugins-guide.html
  2. // if you need a custom webpack configuration you can uncomment the following import
  3. // and then use the `file:preprocessor` event
  4. // as explained in the cypress docs
  5. // https://docs.cypress.io/api/plugins/preprocessors-api.html#Examples
  6. /* eslint-disable import/no-extraneous-dependencies, global-require, arrow-body-style */
  7. // const webpack = require('@cypress/webpack-preprocessor')
  8. module.exports = (on, config) => {
  9. // on('file:preprocessor', webpack({
  10. // webpackOptions: require('@vue/cli-service/webpack.config'),
  11. // watchOptions: {}
  12. // }))
  13. return Object.assign({}, config, {
  14. fixturesFolder: 'tests/e2e/fixtures',
  15. integrationFolder: 'tests/e2e/specs',
  16. screenshotsFolder: 'tests/e2e/screenshots',
  17. videosFolder: 'tests/e2e/videos',
  18. supportFile: 'tests/e2e/support/index.js'
  19. })
  20. }