mirror of
				https://github.com/aleleba/create-react-ssr.git
				synced 2025-10-31 14:10:59 -06:00 
			
		
		
		
	PR-923441: Making fixes.
This commit is contained in:
		| @@ -22,7 +22,7 @@ import './commands'; | |||||||
| // Alternatively you can use CommonJS syntax: | // Alternatively you can use CommonJS syntax: | ||||||
| // require('./commands') | // require('./commands') | ||||||
|  |  | ||||||
| import { mount } from 'cypress/react18'; | import { mount } from '@cypress/react' | ||||||
|  |  | ||||||
| // Augment the Cypress namespace to include type definitions for | // Augment the Cypress namespace to include type definitions for | ||||||
| // your custom command. | // your custom command. | ||||||
|   | |||||||
							
								
								
									
										27
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										27
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							| @@ -45,6 +45,7 @@ | |||||||
|         "@babel/preset-env": "^7.26.9", |         "@babel/preset-env": "^7.26.9", | ||||||
|         "@babel/preset-react": "^7.26.3", |         "@babel/preset-react": "^7.26.3", | ||||||
|         "@babel/preset-typescript": "^7.27.0", |         "@babel/preset-typescript": "^7.27.0", | ||||||
|  |         "@cypress/react": "^9.0.1", | ||||||
|         "@eslint/js": "^9.23.0", |         "@eslint/js": "^9.23.0", | ||||||
|         "@pmmmwh/react-refresh-webpack-plugin": "^0.5.15", |         "@pmmmwh/react-refresh-webpack-plugin": "^0.5.15", | ||||||
|         "@redux-devtools/extension": "^3.3.0", |         "@redux-devtools/extension": "^3.3.0", | ||||||
| @@ -2012,6 +2013,25 @@ | |||||||
|         "node": ">=0.1.90" |         "node": ">=0.1.90" | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|  |     "node_modules/@cypress/react": { | ||||||
|  |       "version": "9.0.1", | ||||||
|  |       "resolved": "https://registry.npmjs.org/@cypress/react/-/react-9.0.1.tgz", | ||||||
|  |       "integrity": "sha512-qu6ziP2smdlfy3Yvrhm6PadxEtkc/cl6YhZu3h6KCtz+0s54joqxp6uGYOglpwyMBp3qjtSil1JVlFX0hUi5LQ==", | ||||||
|  |       "dev": true, | ||||||
|  |       "license": "MIT", | ||||||
|  |       "peerDependencies": { | ||||||
|  |         "@types/react": "^18 || ^19", | ||||||
|  |         "@types/react-dom": "^18 || ^19", | ||||||
|  |         "cypress": "*", | ||||||
|  |         "react": "^18 || ^19", | ||||||
|  |         "react-dom": "^18 || ^19" | ||||||
|  |       }, | ||||||
|  |       "peerDependenciesMeta": { | ||||||
|  |         "@types/react": { | ||||||
|  |           "optional": true | ||||||
|  |         } | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|     "node_modules/@cypress/request": { |     "node_modules/@cypress/request": { | ||||||
|       "version": "3.0.8", |       "version": "3.0.8", | ||||||
|       "resolved": "https://registry.npmjs.org/@cypress/request/-/request-3.0.8.tgz", |       "resolved": "https://registry.npmjs.org/@cypress/request/-/request-3.0.8.tgz", | ||||||
| @@ -20238,6 +20258,13 @@ | |||||||
|       "dev": true, |       "dev": true, | ||||||
|       "optional": true |       "optional": true | ||||||
|     }, |     }, | ||||||
|  |     "@cypress/react": { | ||||||
|  |       "version": "9.0.1", | ||||||
|  |       "resolved": "https://registry.npmjs.org/@cypress/react/-/react-9.0.1.tgz", | ||||||
|  |       "integrity": "sha512-qu6ziP2smdlfy3Yvrhm6PadxEtkc/cl6YhZu3h6KCtz+0s54joqxp6uGYOglpwyMBp3qjtSil1JVlFX0hUi5LQ==", | ||||||
|  |       "dev": true, | ||||||
|  |       "requires": {} | ||||||
|  |     }, | ||||||
|     "@cypress/request": { |     "@cypress/request": { | ||||||
|       "version": "3.0.8", |       "version": "3.0.8", | ||||||
|       "resolved": "https://registry.npmjs.org/@cypress/request/-/request-3.0.8.tgz", |       "resolved": "https://registry.npmjs.org/@cypress/request/-/request-3.0.8.tgz", | ||||||
|   | |||||||
| @@ -69,6 +69,7 @@ | |||||||
|     "@babel/preset-env": "^7.26.9", |     "@babel/preset-env": "^7.26.9", | ||||||
|     "@babel/preset-react": "^7.26.3", |     "@babel/preset-react": "^7.26.3", | ||||||
|     "@babel/preset-typescript": "^7.27.0", |     "@babel/preset-typescript": "^7.27.0", | ||||||
|  |     "@cypress/react": "^9.0.1", | ||||||
|     "@eslint/js": "^9.23.0", |     "@eslint/js": "^9.23.0", | ||||||
|     "@pmmmwh/react-refresh-webpack-plugin": "^0.5.15", |     "@pmmmwh/react-refresh-webpack-plugin": "^0.5.15", | ||||||
|     "@redux-devtools/extension": "^3.3.0", |     "@redux-devtools/extension": "^3.3.0", | ||||||
|   | |||||||
| @@ -3,6 +3,7 @@ | |||||||
| // expect(element).toHaveTextContent(/react/i) | // expect(element).toHaveTextContent(/react/i) | ||||||
| // learn more: https://github.com/testing-library/jest-dom | // learn more: https://github.com/testing-library/jest-dom | ||||||
| import '@testing-library/jest-dom'; | import '@testing-library/jest-dom'; | ||||||
|  | import { TextEncoder, TextDecoder } from 'util'; | ||||||
|  |  | ||||||
| //import fetch Mock | //import fetch Mock | ||||||
| import fetchMock from 'jest-fetch-mock'; | import fetchMock from 'jest-fetch-mock'; | ||||||
| @@ -18,3 +19,6 @@ function() { | |||||||
| 		removeListener: () => {/**/} | 		removeListener: () => {/**/} | ||||||
| 	}; | 	}; | ||||||
| }; | }; | ||||||
|  |  | ||||||
|  | global.TextEncoder = TextEncoder; | ||||||
|  | global.TextDecoder = TextDecoder as typeof global.TextDecoder; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user