You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a string in the inline snapshot includes the character $ it's escaped with a backslash in the output (\$) even though it's not needed. This causes eslint to complain.
import{test,expect}from'vitest';test('hello',()=>{// when run, this string will be added to the inline snapshot: '"string with \$ character"'expect('string with $ character').toMatchInlineSnapshot();});
Describe the bug
If a string in the inline snapshot includes the character
$
it's escaped with a backslash in the output (\$
) even though it's not needed. This causes eslint to complain.Reproduction
https://stackblitz.com/edit/vitejs-vite-gswmr2?file=src/test.test.ts
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: