-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
vitestRelating to the Workers Vitest integrationRelating to the Workers Vitest integration
Description
Describe the solution
Currently, the @cloudflare/vitest-pool-workers package has the log level hardcoded to VERBOSE link:
const log = new Log(LogLevel.VERBOSE, { prefix: "vpw" });This results in [vpw:debug] and [vpw:info] messages being printed on every test run, which adds noise to test output:
[vpw:debug] Adding `enable_nodejs_tty_module` compatibility flag...
[vpw:debug] Adding `enable_nodejs_fs_module` compatibility flag...
[vpw:info] Starting isolated runtimes for vitest.config.ts...
Requested feature:
Add a configuration option to control the log level, e.g.:
export default defineWorkersConfig({
test: {
poolOptions: {
workers: {
logLevel: 'warn', // or 'none', 'error', 'info', 'debug', 'verbose'
},
},
},
});Cleaner test output in CI/CD pipelines and local development, especially when running large test suites.
Metadata
Metadata
Assignees
Labels
vitestRelating to the Workers Vitest integrationRelating to the Workers Vitest integration
Type
Projects
Status
Backlog