1 Star 0 Fork 0

阿星 / mermaid

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
cypress.config.cjs 768 Bytes
一键复制 编辑 原始数据 按行查看 历史
Sidharth Vinod 提交于 2023-06-16 20:25 . Add coverage for E2E tests
/* eslint-disable @typescript-eslint/no-var-requires */
const { defineConfig } = require('cypress');
const { addMatchImageSnapshotPlugin } = require('cypress-image-snapshot/plugin');
const coverage = require('@cypress/code-coverage/task');
module.exports = defineConfig({
projectId: 'n2sma2',
e2e: {
specPattern: 'cypress/integration/**/*.{js,jsx,ts,tsx}',
setupNodeEvents(on, config) {
coverage(on, config);
addMatchImageSnapshotPlugin(on, config);
// copy any needed variables from process.env to config.env
config.env.useAppli = process.env.USE_APPLI ? true : false;
// do not forget to return the changed config object!
return config;
},
},
video: false,
});
require('@applitools/eyes-cypress')(module);
1
https://gitee.com/chx-root/mermaid.git
git@gitee.com:chx-root/mermaid.git
chx-root
mermaid
mermaid
develop

搜索帮助