Cypress module conversion and updated chalk

This commit is contained in:
Jamie Curnow committed 2026-01-27 08:45:23 +10:00
1 parent df06eb6c2f
commit 4af0a968f0
8 files changed
+62 -52

No files matched your search

@@ -1,7 +1,7 @@
const { SwaggerValidation } = require('@jc21/cypress-swagger-validation');
const chalk = require('chalk');
import { SwaggerValidation } from '@jc21/cypress-swagger-validation';
import chalk from 'chalk';
module.exports = (on, config) => {
export default (on, config) => {
// Replace swaggerBase config var wildcard
if (typeof config.env.swaggerBase !== 'undefined') {
config.env.swaggerBase = config.env.swaggerBase.replace('{{baseUrl}}', config.baseUrl);