use javascript for cypress tests
parent
acc0c7af11
commit
0e0da77c52
|
|
@ -2,7 +2,7 @@ import { defineConfig } from 'cypress';
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
e2e: {
|
e2e: {
|
||||||
baseUrl: 'http://localhost:7000',
|
baseUrl: 'http://localhost:7000',
|
||||||
specPattern: 'cypress/e2e/**/*.cy.ts',
|
specPattern: 'cypress/e2e/**/*.cy.js',
|
||||||
supportFile: false,
|
supportFile: false,
|
||||||
projectId: 'xya1fn'
|
projectId: 'xya1fn'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import { defineConfig } from 'cypress'
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
e2e: {
|
e2e: {
|
||||||
baseUrl: 'http://localhost:7000',
|
baseUrl: 'http://localhost:7000',
|
||||||
specPattern: 'cypress/e2e/**/*.cy.ts',
|
specPattern: 'cypress/e2e/**/*.cy.js',
|
||||||
supportFile: false,
|
supportFile: false,
|
||||||
projectId: 'xya1fn'
|
projectId: 'xya1fn'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@
|
||||||
"start": "cross-env NODE_ENV=production node ./bin/www",
|
"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: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",
|
"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:open": "cypress open --config-file cypress.config.js",
|
||||||
"cy:run": "cypress run --config-file cypress.config.ts",
|
"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",
|
"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",
|
"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",
|
"temp:legacy:importFromCsv": "cross-env NODE_ENV=dev DEBUG=lot-occupancy-system:* TEST_DATABASES=true node ./temp/legacy.importFromCsv.js",
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ describe('lot-occupancy-system', () => {
|
||||||
});
|
});
|
||||||
describe('Cypress tests', () => {
|
describe('Cypress tests', () => {
|
||||||
it('should run Cypress tests', (done) => {
|
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 &&
|
if (process.env.CYPRESS_RECORD_KEY &&
|
||||||
process.env.CYPRESS_RECORD_KEY !== '') {
|
process.env.CYPRESS_RECORD_KEY !== '') {
|
||||||
cypressCommand += ' --record';
|
cypressCommand += ' --record';
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ describe('lot-occupancy-system', () => {
|
||||||
describe('Cypress tests', () => {
|
describe('Cypress tests', () => {
|
||||||
it('should run Cypress tests', (done) => {
|
it('should run Cypress tests', (done) => {
|
||||||
let cypressCommand =
|
let cypressCommand =
|
||||||
'cypress run --config-file cypress.config.ts --browser chrome'
|
'cypress run --config-file cypress.config.js --browser chrome'
|
||||||
|
|
||||||
if (
|
if (
|
||||||
process.env.CYPRESS_RECORD_KEY &&
|
process.env.CYPRESS_RECORD_KEY &&
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue