diff --git a/cypress.config.js b/cypress.config.js index 5d860a51..2c7c45df 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -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' } diff --git a/cypress.config.ts b/cypress.config.ts index 0de4dcee..b6512c5a 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -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' } diff --git a/package.json b/package.json index 1e291955..1ac966a7 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test/1_serverCypress.js b/test/1_serverCypress.js index bff0164f..9017a3cc 100644 --- a/test/1_serverCypress.js +++ b/test/1_serverCypress.js @@ -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'; diff --git a/test/1_serverCypress.ts b/test/1_serverCypress.ts index 6c286f51..8f1c8398 100644 --- a/test/1_serverCypress.ts +++ b/test/1_serverCypress.ts @@ -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 &&