How to preprocess project files to import from Cypress tests? #1829
-
I'm trying to set up Cypress tests with my Razzle project, and running into the following problem: I'd like to import something from my main project into a test so the test can use it. But my main project files use TypeScript and evidently need to be fed through a Cypress preprocessor to import them properly. (I have a few path aliases defined in my The Cypress docs show how to do this if you have an existing Webpack config, but Razzle doesn't expose the Webpack config directly. Is there some way to obtain Razzle's Webpack config, or otherwise transpile a given file the same way Razzle does? |
Beta Was this translation helpful? Give feedback.
Answered by
fivethreeo
Feb 21, 2022
Replies: 1 comment 1 reply
Answer selected by
fivethreeo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#1633
#1700