Ghost/apps/comments-ui/cypress.config.js
Simon Backx 24af5ad0dd Added experimental Cypress tests
refs https://github.com/TryGhost/Team/issues/1780

This commit adds some Cypress tests as a POC to the project. If we decide to go with Cypress, we can add more tests to cover the rest of the codebase. The main reason to have a E2E framework is that some editor related UI is hard to test with the React tests because it uses JSDOM.
2022-09-09 17:27:32 +02:00

18 lines
368 B
JavaScript

const {defineConfig} = require('cypress');
module.exports = defineConfig({
component: {
devServer: {
framework: 'create-react-app',
bundler: 'webpack'
}
},
e2e: {
baseUrl: 'http://localhost:4000',
setupNodeEvents(on, config) {
// implement node event listeners here
}
}
});