react-starter-kit/cypress.config.ts
Mastermindzh 3db77f96b9 Added a nestJS based contract api
- Added an example with trucks and basic fetch in useEffect on page load
  - Added simply test to see whether any data is displayed (and shows the interceptor)
Introduced "CypressStrictMode" which wraps React.StrictMode and checks whether Cypress is involved, if so disable StrictMode.
2022-08-15 11:42:19 +02:00

20 lines
415 B
TypeScript

import { defineConfig } from "cypress";
export default defineConfig({
e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
},
},
env: {
appBaseUrl: "http://localhost:3000",
},
video: false,
reporter: "mocha-junit-reporter",
reporterOptions: {
testsuitesTitle: true,
mochaFile: "dist-tests/test-results/cypress/[hash].xml",
outputs: true,
},
});