fix cypress browser

deepsource-autofix-76c6eb20
Dan Gowans 2023-02-17 11:31:46 -05:00
parent 96ffa90546
commit 0f70bbe14c
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import { exec } from 'node:child_process';
import * as http from 'node:http'; import * as http from 'node:http';
import { app } from '../app.js'; import { app } from '../app.js';
function runCypress(browser, done) { function runCypress(browser, done) {
let cypressCommand = `cypress run --config-file cypress.config.js --browser ${browser}"`; let cypressCommand = `cypress run --config-file cypress.config.js --browser ${browser}`;
if ((process.env.CYPRESS_RECORD_KEY ?? '') !== '') { if ((process.env.CYPRESS_RECORD_KEY ?? '') !== '') {
cypressCommand += ` --tag "${browser},${process.version} --record`; cypressCommand += ` --tag "${browser},${process.version} --record`;
} }

View File

@ -10,7 +10,7 @@ import * as http from 'node:http'
import { app } from '../app.js' import { app } from '../app.js'
function runCypress(browser: 'chrome' | 'firefox', done: () => void): void { function runCypress(browser: 'chrome' | 'firefox', done: () => void): void {
let cypressCommand = `cypress run --config-file cypress.config.js --browser ${browser}"` let cypressCommand = `cypress run --config-file cypress.config.js --browser ${browser}`
if ((process.env.CYPRESS_RECORD_KEY ?? '') !== '') { if ((process.env.CYPRESS_RECORD_KEY ?? '') !== '') {
cypressCommand += ` --tag "${browser},${process.version} --record` cypressCommand += ` --tag "${browser},${process.version} --record`