From f7cc48495b085fe8f6cfa37e80e968d5b47639df Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 1 Jun 2022 23:21:30 +0200 Subject: test: install and configure cypress I also configure Jest to avoid conflicts between Cypress and Jest. --- tests/cypress/support/commands.ts | 6 ++++++ tests/cypress/support/e2e.ts | 20 ++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 tests/cypress/support/commands.ts create mode 100644 tests/cypress/support/e2e.ts (limited to 'tests/cypress/support') diff --git a/tests/cypress/support/commands.ts b/tests/cypress/support/commands.ts new file mode 100644 index 0000000..a88e131 --- /dev/null +++ b/tests/cypress/support/commands.ts @@ -0,0 +1,6 @@ +// *********************************************** +// For examples of custom commands please read more here: +// https://on.cypress.io/custom-commands +// *********************************************** + +import '@testing-library/cypress/add-commands'; diff --git a/tests/cypress/support/e2e.ts b/tests/cypress/support/e2e.ts new file mode 100644 index 0000000..37a498f --- /dev/null +++ b/tests/cypress/support/e2e.ts @@ -0,0 +1,20 @@ +// *********************************************************** +// This example support/index.js is processed and +// loaded automatically before your test files. +// +// This is a great place to put global configuration and +// behavior that modifies Cypress. +// +// You can change the location of this file or turn off +// automatically serving support files with the +// 'supportFile' configuration option. +// +// You can read more here: +// https://on.cypress.io/configuration +// *********************************************************** + +// Import commands.js using ES2015 syntax: +import './commands'; + +// Alternatively you can use CommonJS syntax: +// require('./commands') -- cgit v1.2.3