refactor(cypress): rename config files and imports to use cjs so cypress runs locally
This commit is contained in:
@@ -2,10 +2,10 @@ const { defineConfig } = require('cypress');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const benchmarkPlugin = require('./e2e/cypress/plugins/benchmark/index');
|
||||
const readProvisions = require('./e2e/cypress/plugins/readProvisions');
|
||||
const smtpTester = require('./e2e/cypress/plugins/smtpTester');
|
||||
const typescriptPreprocessor = require('./e2e/cypress/plugins/typescriptPreprocessor');
|
||||
const benchmarkPlugin = require('./e2e/cypress/plugins/benchmark/index.cjs');
|
||||
const readProvisions = require('./e2e/cypress/plugins/readProvisions.cjs');
|
||||
const smtpTester = require('./e2e/cypress/plugins/smtpTester.cjs');
|
||||
const typescriptPreprocessor = require('./e2e/cypress/plugins/typescriptPreprocessor.cjs');
|
||||
|
||||
module.exports = defineConfig({
|
||||
projectId: 'zb7k1c',
|
||||
@@ -1,8 +1,8 @@
|
||||
const fs = require('fs');
|
||||
const { fromPairs } = require('lodash');
|
||||
|
||||
const { CDPDataCollector } = require('./CDPDataCollector');
|
||||
const { formatResults } = require('./formatting');
|
||||
const { CDPDataCollector } = require('./CDPDataCollector.cjs');
|
||||
const { formatResults } = require('./formatting.cjs');
|
||||
|
||||
const remoteDebuggingPortOptionPrefix = '--remote-debugging-port=';
|
||||
|
||||
@@ -2,10 +2,10 @@ const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const benchmarkPlugin = require('./benchmark');
|
||||
const extendConfig = require('./extendConfig');
|
||||
const readProvisions = require('./readProvisions');
|
||||
const smtpTester = require('./smtpTester');
|
||||
const typescriptPreprocessor = require('./typescriptPreprocessor');
|
||||
const extendConfig = require('./extendConfig.cjs');
|
||||
const readProvisions = require('./readProvisions.cjs');
|
||||
const smtpTester = require('./smtpTester.cjs');
|
||||
const typescriptPreprocessor = require('./typescriptPreprocessor.cjs');
|
||||
|
||||
module.exports = (on, config) => {
|
||||
if (config.env['BENCHMARK_PLUGIN_ENABLED'] === true) {
|
||||
@@ -1,4 +1,4 @@
|
||||
require('./commands');
|
||||
import './commands.js';
|
||||
|
||||
Cypress.Screenshot.defaults({
|
||||
screenshotOnRunFailure: false,
|
||||
|
||||
Reference in New Issue
Block a user