mirror of
https://github.com/Mastermindzh/react-starter-kit.git
synced 2024-10-23 00:57:59 +02:00
Mastermindzh
3db77f96b9
- 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.
20 lines
415 B
TypeScript
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,
|
|
},
|
|
});
|