Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/vitest/src/integrations/snapshot/chai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export const SnapshotPlugin: ChaiPlugin = (chai, utils) => {
const isInsideEach = test.each || test.suite?.each
if (isInsideEach) {
throw new Error(
'InlineSnapshot cannot be used inside of test.each or describe.each',
'InlineSnapshot cannot be used inside of test.each or describe.each. Use toMatchSnapshot instead',
)
}
const expected = utils.flag(this, 'object')
Expand Down
10 changes: 5 additions & 5 deletions test/cli/test/__snapshots__/fails.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ Error: Hook timed out in 102ms."
`;

exports[`should fail inline-snapshop-inside-each.test.ts 1`] = `
"Error: InlineSnapshot cannot be used inside of test.each or describe.each
Error: InlineSnapshot cannot be used inside of test.each or describe.each
Error: InlineSnapshot cannot be used inside of test.each or describe.each
Error: InlineSnapshot cannot be used inside of test.each or describe.each
Error: InlineSnapshot cannot be used inside of test.each or describe.each"
"Error: InlineSnapshot cannot be used inside of test.each or describe.each. Use toMatchSnapshot instead
Error: InlineSnapshot cannot be used inside of test.each or describe.each. Use toMatchSnapshot instead
Error: InlineSnapshot cannot be used inside of test.each or describe.each. Use toMatchSnapshot instead
Error: InlineSnapshot cannot be used inside of test.each or describe.each. Use toMatchSnapshot instead
Error: InlineSnapshot cannot be used inside of test.each or describe.each. Use toMatchSnapshot instead"
`;

exports[`should fail mock-import-proxy-module.test.ts 1`] = `"Error: There are some problems in resolving the mocks API."`;
Expand Down
Loading