Skip to content

Commit 4689d81

Browse files
committed
test(ui): name fixture scripts without lint suppression
1 parent ef52444 commit 4689d81

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎ui/src/test-helpers/mock-gateway-page.test-support.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ type MockGatewayPage = {
99
};
1010

1111
export const mockGatewayTest = it.extend<{ gatewayPage: MockGatewayPage }>({
12-
// oxlint-disable-next-line no-empty-pattern -- Vitest requires destructuring to discover fixture dependencies.
13-
gatewayPage: async ({}, use) => {
12+
gatewayPage: async ({ task }, use) => {
1413
const dom = new JSDOM("", { url: "http://mock-control-ui/", runScripts: "outside-only" });
1514
try {
1615
await use({
1716
window: dom.window,
1817
execute: (script) => {
19-
new Script(script).runInContext(dom.getInternalVMContext());
18+
new Script(script, { filename: `mock-gateway:${task.name}` }).runInContext(
19+
dom.getInternalVMContext(),
20+
);
2021
},
2122
close: () => dom.window.close(),
2223
});

0 commit comments

Comments
 (0)