Repository navigation
Setting up with jest & testing-library/react? #1927
Answered
by
tbrasington
tbrasington
asked this question in
Q&A
|
Hello I have run into a challenge with getting testing to work with theme-ui. On running the tests I get this error Scratching my head here to what could be causing the issue. There is a demo library here to see the error https://github.com/tbrasington/theme-test Any advice is greatly appreciated on how to do this. T |
Answered by
tbrasington
Sep 13, 2021
Replies: 1 comment 2 replies
|
So I got to the bottom of the issue: |
2 replies
Answer selected by
tbrasington
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So I got to the bottom of the issue:
As I was using aliases' I had to ensure that my babel, tsconfig and jest where setup to look for them.
I did abandon their use in the end as it was becoming a hassle to manage all the paths. If anyone finds a neat way of handling it, I am all ears.