MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/reactjs/comments/illwv0/deleted_by_user/g56oum0/
r/reactjs • u/[deleted]
[deleted] — view deleted post
255 comments sorted by
View all comments
1
Jest requires using require() for imports but all my functions are exported using export const function = () => ..., so how would I use Jest with ES6 import/exports?
require()
export const function = () => ...
0 u/[deleted] Sep 14 '20 [deleted] — view deleted comment 1 u/AviatingFotographer Sep 14 '20 Jest tests are in Javascript, I don't have a tsconfig.json file.Edit: tests work now, error must've been from something else.
0
[deleted] — view deleted comment
1 u/AviatingFotographer Sep 14 '20 Jest tests are in Javascript, I don't have a tsconfig.json file.Edit: tests work now, error must've been from something else.
Jest tests are in Javascript, I don't have a tsconfig.json file.
tsconfig.json
Edit: tests work now, error must've been from something else.
View all comments
1
u/AviatingFotographer Sep 14 '20
Jest requires using
require()for imports but all my functions are exported usingexport const function = () => ..., so how would I use Jest with ES6 import/exports?