Skip to content

Commit

Permalink
chore(test): skip console messages containing 'deprecated' (#1709)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Mayer authored Jan 5, 2023
1 parent 7e06b47 commit 2a06b6a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,14 @@ export default defineConfig({
reporter: ['clover', 'cobertura', 'lcov', 'text'],
include: ['src'],
},
onConsoleLog(log, type) {
if (
type === 'stderr' &&
log.includes('[@faker-js/faker]:') &&
log.includes('deprecated')
) {
return false;
}
},
},
});

0 comments on commit 2a06b6a

Please sign in to comment.