chore: adding cypress.config

This commit is contained in:
blam
2021-02-04 19:45:08 +01:00
parent dccf6f6468
commit 1164e40428
2 changed files with 9 additions and 6 deletions
+2 -6
View File
@@ -16,6 +16,7 @@
import cypress from 'cypress';
import path from 'path';
import config from '../cypress.json';
export async function run() {
await cypress.run({
@@ -23,12 +24,7 @@ export async function run() {
browser: 'chrome',
config: {
watchForFileChanges: true,
baseUrl: process.env.BACKSTAGE_TEST_URL || 'http://localhost:7000',
integrationFolder: path.resolve(__dirname, '../cypress/integration'),
supportFile: path.resolve(__dirname, '../cypress/support'),
fixturesFolder: false,
defaultCommandTimeout: 10000,
...config,
},
configFile: false,
});
}
+7
View File
@@ -0,0 +1,7 @@
{
"baseUrl": "http://localhost:7000",
"integrationFolder": "./cypress/integration",
"supportFile": "./cypress/support",
"fixturesFolder": false,
"defaultCommandTimeout": 10000
}