···11+import { beforeEach, describe, test } from 'vitest';
22+33+describe('beforeEach hooks fail', () => {
44+ // @ts-ignore expects a function
55+ beforeEach('fail')
66+ test.todo('todo')
77+})
+8
test/cli/test/__snapshots__/fails.test.ts.snap
···2828Error: before all"
2929`;
30303131+exports[`should fail hooks-fail-afterAll.test.ts > hooks-fail-afterAll.test.ts 1`] = `"TypeError: "afterAll" callback value must be function, received "string""`;
3232+3333+exports[`should fail hooks-fail-afterEach.test.ts > hooks-fail-afterEach.test.ts 1`] = `"TypeError: "afterEach" callback value must be function, received "string""`;
3434+3535+exports[`should fail hooks-fail-beforeAll.test.ts > hooks-fail-beforeAll.test.ts 1`] = `"TypeError: "beforeAll" callback value must be function, received "string""`;
3636+3737+exports[`should fail hooks-fail-beforeEach.test.ts > hooks-fail-beforeEach.test.ts 1`] = `"TypeError: "beforeEach" callback value must be function, received "string""`;
3838+3139exports[`should fail inline-snapshop-inside-each.test.ts > inline-snapshop-inside-each.test.ts 1`] = `
3240"Error: InlineSnapshot cannot be used inside of test.each or describe.each
3341Error: InlineSnapshot cannot be used inside of test.each or describe.each