V
V
VovaSakay2021-06-04 06:40:55
Unit testing
VovaSakay, 2021-06-04 06:40:55

What's wrong with importing a library?

I'm trying to import https://testing-library.com/
Importing screen into the test file
60b9a016171e5283591972.png
jest-setup.ts
60b99e3aec8cd153683521.png
jest.config.js
60b99e4dd342c711515496.png
if you write "include": ["./jest-setup.ts","], then the library is imported
60b99efb10262857894288.png
But when you use alias it writes this
60b99e6824ca0796771168.png
"include": ["./jest-setup.ts", "src/"]. But when so then the library is not found again
60b99f2e98c8e685171215.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question