Skip to content

Commit

Permalink
Hide Pug debug logs during testing
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed Jun 24, 2024
1 parent c5eed72 commit 96d9d18
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/plugins.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,12 +476,11 @@ for (const group of tests) {
}

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

let plugins = [
...group.plugins.map((name) => require.resolve(name)),
Expand Down

0 comments on commit 96d9d18

Please sign in to comment.