bahmutov / try-cra-app-typescript

An example of Create-React-App v3 using TypeScript with Cypress unit tests
6 stars 4 forks source link

Please update dependency to use @cypress/react #47

Open thediveo opened 3 years ago

thediveo commented 3 years ago

Looking at the archived cypress-react-unit-test Github repo it says:

cypress-react-unit-test has been renamed to @cypress/react and now lives in the main Cypress monorepo

Can you please update your example setup to use the current dependency and also update the imports in your examples accordingly?

bahmutov commented 3 years ago

Currently it seems to be broken with

$ yarn cypress open
yarn run v1.22.5
$ /Users/gleb/git/try-cra-app-typescript/node_modules/.bin/cypress open
Missing baseUrl in compilerOptions. tsconfig-paths will be skipped
⚠️ Could not find Webpack options, using defaults
GET /__/ 200 5.314 ms - -
GET /__cypress/runner/cypress_runner.css 200 4.158 ms - -
GET /__cypress/runner/cypress_runner.js 200 2.205 ms - -
GET /__cypress/iframes/component/App.cy-spec.tsx 200 3.164 ms - 939
GET /__cypress/runner/fonts/fa-solid-900.woff2 200 1.482 ms - 76120
Constructor Set requires 'new'
GET /__cypress/tests?p=node_modules/cypress-react-unit-test/support/index.js 200 582.558 ms - 145
GET /__cypress/tests?p=src/App.cy-spec.tsx - - ms - -
✨  Done in 52.27s.

I will let Cypress component team figure it out

thediveo commented 3 years ago

Interesting, as I'm using the new dependency successfully, albeit not with your exact configuration. My configuration can be seen here https://github.com/TheDiveO/lxkns/tree/wip/test-webui/web/lxkns.