-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Labels
feat: browserIssues and PRs related to the browser runnerIssues and PRs related to the browser runnerp3-minor-bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)
Description
Describe the bug
Format strings in console logs are not properly formatted.
From reproduction:
const barVar = 'World';
console.log('%s', barVar);
gives:
stdout | test/playwright/bar.test.ts > playwright test > behaves
%s World
A real-world example:
Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render MyParentComponent MyChildComponent MyChildComponent
Reproduction
https://github.com/h-chal/issue-MRE-vitest-playwright-format-string
cd basic
npm test
System Info
System:
OS: Linux 6.14 Ubuntu 24.04.3 LTS 24.04.3 LTS (Noble Numbat)
CPU: (16) x64 AMD Ryzen AI 7 PRO 350 w/ Radeon 860M
Memory: 76.06 GB / 86.07 GB
Container: Yes
Shell: 5.9 - /usr/bin/zsh
Binaries:
Node: 20.19.5 - /usr/bin/node
npm: 10.8.2 - /usr/bin/npm
Browsers:
Chrome: 141.0.7390.65
Firefox: 145.0
Firefox Developer Edition: 145.0
npmPackages:
@vitest/browser-playwright: ^4.0.9 => 4.0.9
@vitest/ui: latest => 4.0.9
vite: latest => 7.2.2
vitest: latest => 4.0.9Used Package Manager
npm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Metadata
Metadata
Assignees
Labels
feat: browserIssues and PRs related to the browser runnerIssues and PRs related to the browser runnerp3-minor-bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)
Type
Projects
Status
Approved