/
githubmirror
/
joomla-cms
Обзор
Документация
Войти
/
githubmirror
/
joomla-cms
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
5.4-dev
tests/System/plugins/index.mjs
27 строк
1 KB
Allon Moritz
[5.3] Does check the server error logs in system tests (#45409)
30 апр 2025, 09:27
Не верифицирован
30 апр 2025, 09:27
74e625d
Код
Авторство
О чём код?
import { getMails, clearEmails, startMailServer } from './mail.mjs'; import { writeRelativeFile, deleteRelativePath, copyRelativeFile } from './fs.mjs'; import { queryTestDB, deleteInsertedItems } from './db.mjs'; import { checkForLogs, clearLogs } from './logs.mjs'; /** * Does the setup of the plugins. * * @param {*} on * @param {object} config The configuration * * @see https://docs.cypress.io/guides/references/configuration#setupNodeEvents */ export default function setupPlugins(on, config) { on('task', { queryDB: (query) => queryTestDB(query, config), cleanupDB: () => deleteInsertedItems(config), writeRelativeFile: ({ path, content, mode }) => writeRelativeFile(path, content, config, mode), deleteRelativePath: (path) => deleteRelativePath(path, config), copyRelativeFile: ({ source, destination }) => copyRelativeFile(source, destination, config), checkForLogs: () => checkForLogs(config), clearLogs: () => clearLogs(config), getMails: () => getMails(), clearEmails: () => clearEmails(), startMailServer: () => startMailServer(config), }); }