StyleX, Vite and Jest - babel seems to not compile #554
-
I seem to be struggling to get
I have created a basic application that renders two paragraphs of static text and this is building as I expect it to when running locally. I've setup I've created a jest.config
.babelrc.cjs
But I seem unable to get Misc notesI currently have the styles in a separate file (it's a convention I need to follow in the project this will possibly go into) and I can see that some kind of transform IS occurring as it is "moving" the styles definition into the component file in the jest output:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hmm, it seems that this is entirely down to |
Beta Was this translation helpful? Give feedback.
Hmm, it seems that this is entirely down to
ts-jest
. I created a blank project to investigate further and I seem to have solved it overall finally by replacingts-jest
with justbabel-jest
(leaving the rest of the config more or less identical).