We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Workers Vitest Integration
3.60.3 [Wrangler]
20.18.0
Windows 10
Inline snapshot does not get updated.
Inline snapshot gets updated.
npm create cloudflare@latest
test/index.spect.ts
import { SELF } from 'cloudflare:test'; import { it, expect } from 'vitest'; it('responds with Hello World! (integration style)', async () => { const response = await SELF.fetch('https://example.com'); expect(await response.text()).toMatchInlineSnapshot(); });
npm run test
import { SELF } from 'cloudflare:test'; import { it, expect } from 'vitest'; + // hello + // world it('responds with Hello World! (integration style)', async () => { const response = await SELF.fetch('https://example.com'); expect(await response.text()).toMatchInlineSnapshot(); });
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Which Cloudflare product(s) does this pertain to?
Workers Vitest Integration
What version(s) of the tool(s) are you using?
3.60.3 [Wrangler]
What version of Node are you using?
20.18.0
What operating system and version are you using?
Windows 10
Describe the Bug
Observed behavior
Inline snapshot does not get updated.
Expected behavior
Inline snapshot gets updated.
Steps to reproduce
npm create cloudflare@latest
, select hello world example with TS.test/index.spect.ts
so that it's left with:npm run test
, observe that inline snapshot does not get updated.npm run test
, observe that inline snapshot does get updated.Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No response
The text was updated successfully, but these errors were encountered: