Skip to content

Conversation

FSVetaz
Copy link

@FSVetaz FSVetaz commented Mar 25, 2025

When fr-migrating tree-person-r9, cypress was throwing an error when declaring or using a type in a cypress test like so:
image

I didn't have this issue in ancestors-r9. ancestors-r9 has its own babel config due to the special nature of ancestors-r9. I was able to figure out that the @babel/preset-typescript in the babel config is what allowed ancestors-r9 to work with types in its cypress tests and tree-person-r9 not. I was able to test it in tree-person-r9 by directly adding @babel/preset-typescript as a preset in @fs/react-scripts in tree-person-r9's node modules. This pr makes it official so we can consume it in tree-person-r9.

@joeycozza joeycozza merged commit 473fddb into frontierMaster Mar 25, 2025
2 checks passed
@joeycozza joeycozza deleted the jordi/ts-cypress branch March 25, 2025 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants