Skip to content

Commit a191b8f

Browse files
committed
test: tweak
1 parent 29234f0 commit a191b8f

File tree

4 files changed

+2
-11
lines changed

4 files changed

+2
-11
lines changed

test/cli/fixtures/fails/inline-snapshop-inside-loop-update-none.test.ts

-1
This file was deleted.

test/cli/test/__snapshots__/fails.test.ts.snap

+1-9
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,14 @@ Error: InlineSnapshot cannot be used inside of test.each or describe.each
3131
Error: InlineSnapshot cannot be used inside of test.each or describe.each"
3232
`;
3333
34-
exports[`should fail inline-snapshop-inside-loop-update-all.test.ts > inline-snapshop-inside-loop-update-all.test.ts 1`] = `
34+
exports[`should fail inline-snapshop-inside-loop.test.ts > inline-snapshop-inside-loop.test.ts 1`] = `
3535
"Error: toMatchInlineSnapshot cannot be called multiple times at the same location.
3636
Error: toMatchInlineSnapshot cannot be called multiple times at the same location.
3737
Error: toMatchInlineSnapshot cannot be called multiple times at the same location.
3838
Error: toMatchInlineSnapshot cannot be called multiple times at the same location.
3939
Error: toMatchInlineSnapshot cannot be called multiple times at the same location."
4040
`;
4141
42-
exports[`should fail inline-snapshop-inside-loop-update-none.test.ts > inline-snapshop-inside-loop-update-none.test.ts 1`] = `
43-
"Error: toMatchInlineSnapshot cannot be called multiple times at the same location.
44-
Error: toMatchInlineSnapshot cannot be called multiple times at the same location.
45-
Error: Snapshot \`fail 2.2 1\` mismatched
46-
Error: toMatchInlineSnapshot cannot be called multiple times at the same location.
47-
Error: toMatchInlineSnapshot cannot be called multiple times at the same location."
48-
`;
49-
5042
exports[`should fail mock-import-proxy-module.test.ts > mock-import-proxy-module.test.ts 1`] = `"Error: There are some problems in resolving the mocks API."`;
5143
5244
exports[`should fail nested-suite.test.ts > nested-suite.test.ts 1`] = `"AssertionError: expected true to be false // Object.is equality"`;

test/cli/test/fails.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const files = await fg('**/*.test.ts', { cwd: root, dot: true })
1010
it.each(files)('should fail %s', async (file) => {
1111
const { stderr } = await runVitest({
1212
root,
13-
update: file === 'inline-snapshop-inside-loop-update-all.test.ts' ? true : undefined,
13+
update: file === 'inline-snapshop-inside-loop.test.ts' ? true : undefined,
1414
}, [file])
1515

1616
expect(stderr).toBeTruthy()

0 commit comments

Comments
 (0)