Skip to content

Commit c2a5c74

Browse files
author
Quantarius Ray
committed
Tests properly running on cypress
1 parent 3e1ff23 commit c2a5c74

37 files changed

+28236
-31490
lines changed

cypress.config.ts

+20-9
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,32 @@
1-
import { defineConfig } from 'cypress';
2-
import * as cyExtendsTask from '@bahmutov/cypress-extends';
3-
import * as cyCodeCoverageTask from '@cypress/code-coverage/task';
1+
import { defineConfig } from "cypress";
2+
import * as cyExtendsTask from "@bahmutov/cypress-extends";
3+
import * as cyCodeCoverageTask from "@cypress/code-coverage/task";
44

55
export default defineConfig({
6-
projectId: '4mhoqq',
6+
projectId: "4mhoqq",
77
chromeWebSecurity: false,
88
retries: {
99
runMode: 2,
10-
openMode: 0
10+
openMode: 0,
1111
},
1212
videoUploadOnPasses: false,
1313
e2e: {
1414
setupNodeEvents(on, config) {
1515
// implement node event listeners here
16-
return Object.assign({}, cyCodeCoverageTask(on, config), cyExtendsTask(config.configFile));
16+
return Object.assign(
17+
{},
18+
cyCodeCoverageTask(on, config),
19+
cyExtendsTask(config.configFile)
20+
);
1721
},
18-
baseUrl: 'http://localhost:4200',
19-
specPattern: 'cypress/e2e/**/*.ts'
20-
}
22+
baseUrl: "http://localhost:4200",
23+
specPattern: "cypress/e2e/**/*.ts",
24+
},
25+
component: {
26+
devServer: {
27+
framework: "angular",
28+
bundler: "webpack",
29+
},
30+
specPattern: "**/*.cy.ts",
31+
},
2132
});

0 commit comments

Comments
 (0)