diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-06-03 11:58:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-03 11:58:21 +0200 |
| commit | 6d0a9504406524957b351aee748d9f5c8a84c299 (patch) | |
| tree | 1b859015ef5e52b2c7c4e7521f428fb2215df21d /tests/cypress/plugins/index.ts | |
| parent | a8af53c118478e6ed68975c32cc1202b7c7b798e (diff) | |
| parent | fc7a6e98268d34f313d79c817e38c09ad6cde960 (diff) | |
test: add end to end tests (#19)
In addition to Jest tests, I configure Cypress to test some pages and features.
I also fix some Jest errors due to images import.
Diffstat (limited to 'tests/cypress/plugins/index.ts')
| -rw-r--r-- | tests/cypress/plugins/index.ts | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/cypress/plugins/index.ts b/tests/cypress/plugins/index.ts new file mode 100644 index 0000000..8229063 --- /dev/null +++ b/tests/cypress/plugins/index.ts @@ -0,0 +1,22 @@ +/// <reference types="cypress" /> +// *********************************************************** +// This example plugins/index.js can be used to load plugins +// +// You can change the location of this file or turn off loading +// the plugins file with the 'pluginsFile' configuration option. +// +// You can read more here: +// https://on.cypress.io/plugins-guide +// *********************************************************** + +// This function is called when a project is opened or re-opened (e.g. due to +// the project's config changing) + +/** + * @type {Cypress.PluginConfig} + */ +// eslint-disable-next-line no-unused-vars +module.exports = (on, config) => { + // `on` is used to hook into various events Cypress emits + // `config` is the resolved Cypress config +}; |
