Skip to content

Commit

Permalink
test(ssr): fix tests broken by merge (#4836)
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson authored Nov 12, 2024
1 parent 5065c28 commit f65e6bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@lwc/ssr-compiler/src/__tests__/fixtures.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ async function compileFixture({ input, dirname }: { input: string; dirname: stri
modules: [{ dir: modulesDir }],
}),
],
onwarn({ message, code, names = [] }) {
onwarn({ message, code }) {
if (
code === 'CIRCULAR_DEPENDENCY' ||
// TODO [#4793]: fix unused imports
(code === 'UNUSED_EXTERNAL_IMPORT' && !names.includes('htmlEscape'))
code === 'UNUSED_EXTERNAL_IMPORT'
) {
return;
}
Expand Down

0 comments on commit f65e6bd

Please sign in to comment.