configured component testing for our project and its working but no API calls are happening.
In this project only Cypress E2E test working fine with all API calls.
is there any configuration need to angular project for component test?
Details:
"cypress": "11.2.0",
"@angular/cli": "14.2.6"
import {defineConfig} from 'cypress'
export default defineConfig({
e2e: {
defaultCommandTimeout: 15000,
requestTimeout: 15000,
responseTimeout: 15000,
video: false,
viewportWidth: 2000,
viewportHeight: 1200,
chromeWebSecurity: false,
watchForFileChanges: true,
waitForAnimations: true,
experimentalRunAllSpecs: true,
baseUrl: 'http://localhost:4200/',
specPattern: 'cypress/e2e/**/*.cy.{js,jsx,ts,tsx}',
env: {
recoverFromRendererCrashes: true,
user: *****,
password: ****,
url: 'http://localhost:8080/',
}
},
component: {
devServer: {
framework: "angular",
bundler: "webpack",
},
specPattern: "**/*.cy.ts",
},
})