module.exports = {
  'allowCypressEnv': false,
  'retries': null,
  'e2e': {
    'supportFile': false,
    setupNodeEvents (on, config) {
      const proxyquire = require('proxyquire')

      // force typescript to always be non-requireable
      const wp = proxyquire('@cypress/webpack-preprocessor', {
        typescript: null,
      })

      on('file:preprocessor', wp())

      return config
    },
  },
}
