You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to auto-inject import of h and Fragment in files under test? I'm using @testing-library/preact with Jest and I can't find a way to inject these 2 imports like it is possible with Babel. For now I'm manually adding these imports to modules under test but VSC built-in TS linter complains about unused imports.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is it possible to auto-inject import of
h
andFragment
in files under test? I'm using@testing-library/preact
with Jest and I can't find a way to inject these 2 imports like it is possible with Babel. For now I'm manually adding these imports to modules under test but VSC built-in TS linter complains about unused imports.Beta Was this translation helpful? Give feedback.
All reactions