Order of beforeEach when extending test seems incorrect #8670
johnsimons
started this conversation in
General
Replies: 1 comment 6 replies
-
|
Your |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I extend
test, the order of execution ofbeforeEachseems incorrect.I have the following code in
setup.ts, configured in vitest.config.ts (setupFiles: ["./src/__tests__/setup.ts"],)I then have the following tests
When I run
test("no use of extend"), I getAnd when I run
myTest("using new test extend"), I getI was expecting for the
myTest("using new test extend"), to getIs this my own fault, or is there an issue here?
Beta Was this translation helpful? Give feedback.
All reactions