Skip to content

Usage with Jest & Vite #182

Closed Answered by nmn
ChristopherMeek asked this question in Q&A
Dec 14, 2023 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

You need a .babelrc file for Jest to compile StyleX. You should use the following values for the test environment.

  • dev: true
  • test: true
  • runtimeInjection: false

NOTE: make sure you only use these options for the test environment and not for your normal development and production builds.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@ChristopherMeek
Comment options

@romanchekashov
Comment options

@nmn
Comment options

nmn Jan 6, 2024
Collaborator

@romanchekashov
Comment options

@nmn
Comment options

nmn Jan 7, 2024
Collaborator

Answer selected by nmn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants