Skip to content

Commit

Permalink
chore(engine-server): run fixtures concurrently (#4690)
Browse files Browse the repository at this point in the history
  • Loading branch information
cardoso authored Oct 24, 2024
1 parent 41d223c commit 3ee2b6d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions packages/@lwc/engine-server/src/__tests__/fixtures.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,15 @@ vi.setConfig({ testTimeout: 10_000 /* 10 seconds */ });

vi.mock('lwc', async () => {
const lwcEngineServer = await import('../index');
lwcEngineServer!.setHooks({
sanitizeHtmlContent(content: unknown) {
return content as string;
},
});
try {
lwcEngineServer!.setHooks({
sanitizeHtmlContent(content: unknown) {
return content as string;
},
});
} catch (_err) {
// Ignore error if the hook is already overridden
}
return lwcEngineServer;
});

Expand Down Expand Up @@ -120,6 +124,6 @@ function testFixtures() {
);
}

describe('fixtures', () => {
describe.concurrent('fixtures', () => {
testFixtures();
});

0 comments on commit 3ee2b6d

Please sign in to comment.