Closed giolazzareschi closed 9 months ago
You need to change your import from safetest/jest
to safetest/vitest
in your test, because you are using vitest
instead of jest
.
@andlbrei's answer is correct. @giolazzareschi, does that fix it for you?
Closing for now, feel free to reopen if the problem persists
Hey I am very sorry for the late reply,
Thanks @andlbrei !
Yes it did fixed for me,
Thanks a lot!
Hello!
I've read this https://netflixtechblog.com/introducing-safetest-a-novel-approach-to-front-end-testing-37f9f88c152d And I am willing to learn and integrate Safetest in my current project.
I've installed it like this:
When I run "npm run safetest" I got
ReferenceError: jest is not defined
❯ globalSetup ../node_modules/safetest/src/jest.ts:32:3 ❯ ../node_modules/safetest/src/jest.ts:47:11 ❯ createBlockFn ../node_modules/safetest/src/blocks.ts:38:7 ❯ Proxy. ../node_modules/safetest/src/jest.ts:41:25
I double read the examples, is there any depedency missing?
This is my simple test so far:
If I install
Thanks in advance