Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quantum-kittens
GitHub Repository: quantum-kittens/platypus
Path: blob/main/cypress/plugins/index.js
3855 views
1
/// <reference types="cypress" />
2
// ***********************************************************
3
// This example plugins/index.js can be used to load plugins
4
//
5
// You can change the location of this file or turn off loading
6
// the plugins file with the 'pluginsFile' configuration option.
7
//
8
// You can read more here:
9
// https://on.cypress.io/plugins-guide
10
// ***********************************************************
11
12
// This function is called when a project is opened or re-opened (e.g. due to
13
// the project's config changing)
14
15
/**
16
* @type {Cypress.PluginConfig}
17
*/
18
// eslint-disable-next-line @typescript-eslint/no-unused-vars
19
module.exports = (on, config) => {
20
on('task', {
21
log (message) {
22
// eslint-disable-next-line no-console
23
console.log(message)
24
25
return null
26
},
27
table (message) {
28
// eslint-disable-next-line no-console
29
console.table(message)
30
31
return null
32
}
33
})
34
}
35
36