Skip to content

Commit 5a21b03

Browse files
committed
fix(web): replace Array.from with spread operator for ESLint compliance
Fix unicorn/prefer-spread rule violation in apps/web/src/test/helpers/app-ready.ts:25 Change Array.from(document.querySelectorAll('script[src*="index-"]')) to [...document.querySelectorAll('script[src*="index-"]')]
1 parent e8c69e1 commit 5a21b03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/web/src/test/helpers/app-ready.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const waitForAppReady = async (page: Page, options?: WaitOptions): Promis
2222
// In CI, provide more diagnostic information if the app fails to load
2323
if (process.env.CI) {
2424
const diagnostics = await page.evaluate(() => {
25-
const scripts = Array.from(document.querySelectorAll('script[src*="index-"]'));
25+
const scripts = [...document.querySelectorAll('script[src*="index-"]')];
2626
const mainScript = scripts.find(s => (s as HTMLScriptElement).src.includes('index-'));
2727
const rootEl = document.querySelector('#root');
2828

0 commit comments

Comments
 (0)