Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'cypress/plugins/index.js')
-rw-r--r--cypress/plugins/index.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/cypress/plugins/index.js b/cypress/plugins/index.js
new file mode 100644
index 000000000..8431f105c
--- /dev/null
+++ b/cypress/plugins/index.js
@@ -0,0 +1,27 @@
+// ***********************************************************
+// 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)
+
+const {
+ addMatchImageSnapshotPlugin
+} = require('cypress-image-snapshot/plugin')
+const browserify = require('@cypress/browserify-preprocessor')
+
+module.exports = (on) => {
+}
+
+module.exports = (on, config) => {
+
+ on('file:preprocessor', browserify())
+
+ addMatchImageSnapshotPlugin(on, config)
+}