mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-24 06:57:40 +00:00
* Frontend: Add new plugin babel-plugin-istanbul * Frontend: Add plugin to babel config * Cypress: Add new plugin code-coverage * Cypress: Add plugin to common cypress suite * Cypress: Add reports to .gitignore * Actions: Add new action to check coverage * Cypress: minor config changes * test * test-2 * Action: Add verification for generated coverage files * Modify action file * Modify action file with command changes * debug commit * debug commit-2 * debug commit-3 * Update runjsHappyPath.cy.js * debug commit-4 * Revert "debug commit-5" This reverts commit8b795d86ae. * Revert "debug commit-3" This reverts commitd2e440e04b. * Add action name * Fix marketplace specs * Fix query failures * Add review changes * Add cypress package.lock changes * Add frontend package.lock changes * Add cypress minor package.lock changes * Minor action changes
30 lines
992 B
JavaScript
30 lines
992 B
JavaScript
/// <reference types="cypress" />
|
|
// ***********************************************************
|
|
// This example plugins/index.js can be used to load plugins
|
|
//
|
|
// You can change the location of this file or turn off loading
|
|
// the plugins file with the 'pluginsFile' configuration option.
|
|
//
|
|
// You can read more here:
|
|
// https://on.cypress.io/plugins-guide
|
|
// ***********************************************************
|
|
|
|
// This function is called when a project is opened or re-opened (e.g. due to
|
|
// the project's config changing)
|
|
|
|
/**
|
|
* @type {Cypress.PluginConfig}
|
|
*/
|
|
// eslint-disable-next-line no-unused-vars
|
|
module.exports = (on, config) => {
|
|
// `on` is used to hook into various events Cypress emits
|
|
// `config` is the resolved Cypress config
|
|
};
|
|
const webpack = require("@cypress/webpack-preprocessor");
|
|
module.exports = (on) => {
|
|
const options = {
|
|
webpackOptions: require("../webpack.config"),
|
|
watchOptions: {},
|
|
};
|
|
on("file:preprocessor", webpack(options));
|
|
};
|