0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 00:46:45 +01:00
posthog/cypress/plugins/index.js

19 lines
514 B
JavaScript
Raw Normal View History

const webpackPreprocessor = require('@cypress/webpack-preprocessor')
const { createEntry } = require('../../webpack.config')
module.exports = (on, config) => {
const options = {
webpackOptions: createEntry('cypress'),
watchOptions: {},
}
on('file:preprocessor', webpackPreprocessor(options))
try {
// eslint-disable-next-line @typescript-eslint/no-var-requires
require('cypress-terminal-report/src/installLogsPrinter')(on)
} catch (e) {}
return config
}