-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to preprocess *spec.ts with @babel/preset-typescript #220
Comments
sure @matt-erhart can you specify exactly what the setup for your repo is? Versions of babel and plugins? The best would be for you to make a pull request to this repo after installing dependencies in the root (in this repo all dependencies are in the root) and making new examples subfolder with just your case. Even if it errors we can fix it and do the example that would work for you (and other people in your situation) |
https://github.com/matt-erhart/CodeExperiments Working toward fast animation/interaction testing in that repo. Had to update cypress-app-watcher-preprocessor to get source changes to rerun tests, which I posted here: TheBrainFamily/cypress-app-watcher-preprocessor#2 |
I still don't see what you
Without easily reproducible step by step report, I am not sure I should spend any time investigating this issue, since there are a lot of other things I could spend time on. |
Goal is in the title, implementation details don't matter, and I'm just checking out cypress, so I'll not be spending time on it either. Maybe I'll try test cafe instead. |
@bahmutov - as far as I can tell being relatively new to TypeScript, there is a recent community interest towards using Babel's TypeScript preset ( I've tried exactly what Matt included in the code above, thinking that should work, but with no luck. I also tried toggling Anecdotally: I have one project that seems to require |
After looking at examples and the browserify or webpack preprocessor docs, I could not get typescript syntax to work in a spec file without error. I tried way too many combos of config files and plugins. I think something like the following should work but it throws errors from ts syntax in a spec file:
What am I doing wrong here? Would be great to get some updated typescript examples as it's pretty rough to get going with ts specs now.
The text was updated successfully, but these errors were encountered: