use javascript for cypress tests

deepsource-autofix-76c6eb20
Dan Gowans 2023-01-25 13:37:41 -05:00
parent acc0c7af11
commit 0e0da77c52
5 changed files with 6 additions and 6 deletions

View File

@ -2,7 +2,7 @@ import { defineConfig } from 'cypress';
export default defineConfig({
e2e: {
baseUrl: 'http://localhost:7000',
specPattern: 'cypress/e2e/**/*.cy.ts',
specPattern: 'cypress/e2e/**/*.cy.js',
supportFile: false,
projectId: 'xya1fn'
}

View File

@ -3,7 +3,7 @@ import { defineConfig } from 'cypress'
export default defineConfig({
e2e: {
baseUrl: 'http://localhost:7000',
specPattern: 'cypress/e2e/**/*.cy.ts',
specPattern: 'cypress/e2e/**/*.cy.js',
supportFile: false,
projectId: 'xya1fn'
}

View File

@ -14,8 +14,8 @@
"start": "cross-env NODE_ENV=production node ./bin/www",
"dev:test": "cross-env NODE_ENV=dev DEBUG=lot-occupancy-system:* TEST_DATABASES=true nodemon ./bin/www.js",
"dev:live": "cross-env NODE_ENV=dev DEBUG=lot-occupancy-system:* nodemon ./bin/www.js",
"cy:open": "cypress open --config-file cypress.config.ts",
"cy:run": "cypress run --config-file cypress.config.ts",
"cy:open": "cypress open --config-file cypress.config.js",
"cy:run": "cypress run --config-file cypress.config.js",
"test": "cross-env NODE_ENV=dev DEBUG=lot-occupancy-system:* TEST_DATABASES=true mocha --timeout 30000 --exit",
"coverage": "cross-env NODE_ENV=dev DEBUG=lot-occupancy-system:* TEST_DATABASES=true c8 --reporter=lcov --reporter=text --reporter=text-summary mocha --timeout 30000 --exit",
"temp:legacy:importFromCsv": "cross-env NODE_ENV=dev DEBUG=lot-occupancy-system:* TEST_DATABASES=true node ./temp/legacy.importFromCsv.js",

View File

@ -24,7 +24,7 @@ describe('lot-occupancy-system', () => {
});
describe('Cypress tests', () => {
it('should run Cypress tests', (done) => {
let cypressCommand = 'cypress run --config-file cypress.config.ts --browser chrome';
let cypressCommand = 'cypress run --config-file cypress.config.js --browser chrome';
if (process.env.CYPRESS_RECORD_KEY &&
process.env.CYPRESS_RECORD_KEY !== '') {
cypressCommand += ' --record';

View File

@ -37,7 +37,7 @@ describe('lot-occupancy-system', () => {
describe('Cypress tests', () => {
it('should run Cypress tests', (done) => {
let cypressCommand =
'cypress run --config-file cypress.config.ts --browser chrome'
'cypress run --config-file cypress.config.js --browser chrome'
if (
process.env.CYPRESS_RECORD_KEY &&