Skip to content

Commit 96d9d18

Browse files
committed
Hide Pug debug logs during testing
1 parent c5eed72 commit 96d9d18

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/plugins.test.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -476,12 +476,11 @@ for (const group of tests) {
476476
}
477477

478478
test(`parsing ${parser} works with: ${name}`, async ({ expect }) => {
479-
// This segaults node
480-
// I guess the noise is fine for now
481-
// if (parser === 'pug') {
482-
// let pug = await import('@prettier/plugin-pug')
483-
// pug.logger.level = 'off'
484-
// }
479+
// Hide logs from Pug's prettier plugin
480+
if (parser === 'pug') {
481+
let pug = await import('@prettier/plugin-pug')
482+
pug.logger.level = 'off'
483+
}
485484

486485
let plugins = [
487486
...group.plugins.map((name) => require.resolve(name)),

0 commit comments

Comments
 (0)