streamlit
1/**
2* Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2024)
3*
4* Licensed under the Apache License, Version 2.0 (the "License");
5* you may not use this file except in compliance with the License.
6* You may obtain a copy of the License at
7*
8* http://www.apache.org/licenses/LICENSE-2.0
9*
10* Unless required by applicable law or agreed to in writing, software
11* distributed under the License is distributed on an "AS IS" BASIS,
12* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13* See the License for the specific language governing permissions and
14* limitations under the License.
15*/
16
17// ***********************************************************
18// This example plugins/index.js can be used to load plugins
19//
20// You can change the location of this file or turn off loading
21// the plugins file with the 'pluginsFile' configuration option.
22//
23// You can read more here:
24// https://on.cypress.io/plugins-guide
25// ***********************************************************
26
27// This function is called when a project is opened or re-opened (e.g. due to
28// the project's config changing)
29
30const {31addMatchImageSnapshotPlugin,32} = require("cypress-image-snapshot/plugin")33
34module.exports = (on, config) => {35// `on` is used to hook into various events Cypress emits36// `config` is the resolved Cypress config37
38// enable printing to terminal39on("task", {40log(message) {41console.log(message)42return null43},44})45
46// https://github.com/palmerhq/cypress-image-snapshot#installation47addMatchImageSnapshotPlugin(on, config)48}
49