streamlit

Форк
0
48 строк · 1.6 Кб
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

30
const {
31
  addMatchImageSnapshotPlugin,
32
} = require("cypress-image-snapshot/plugin")
33

34
module.exports = (on, config) => {
35
  // `on` is used to hook into various events Cypress emits
36
  // `config` is the resolved Cypress config
37

38
  // enable printing to terminal
39
  on("task", {
40
    log(message) {
41
      console.log(message)
42
      return null
43
    },
44
  })
45

46
  // https://github.com/palmerhq/cypress-image-snapshot#installation
47
  addMatchImageSnapshotPlugin(on, config)
48
}
49

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.