mirror of
				https://github.com/Mastermindzh/react-starter-kit.git
				synced 2025-10-31 08:49:00 +01:00 
			
		
		
		
	- 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,
 | |
|   },
 | |
| });
 |