From c87b863a3b7a1a48c943d09a1ee65d14dacffccf Mon Sep 17 00:00:00 2001 From: Alexander Brown <448862+DrJKL@users.noreply.github.com> Date: Sat, 31 Jan 2026 13:22:15 -0800 Subject: [PATCH] Use named imports. --- browser_tests/fixtures/ComfyPage.ts | 4 ++-- browser_tests/fixtures/helpers/WorkflowHelper.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/browser_tests/fixtures/ComfyPage.ts b/browser_tests/fixtures/ComfyPage.ts index 9696fe4f6..06d37d22b 100644 --- a/browser_tests/fixtures/ComfyPage.ts +++ b/browser_tests/fixtures/ComfyPage.ts @@ -1,7 +1,7 @@ import type { APIRequestContext, Locator, Page } from '@playwright/test' import { test as base, expect } from '@playwright/test' import dotenv from 'dotenv' -import * as fs from 'fs' +import { readFileSync } from 'fs' import type { KeyCombo } from '../../src/platform/keybindings' import { TestIds } from './selectors' @@ -550,7 +550,7 @@ export class ComfyPage { // Dropping a file from the filesystem if (fileName) { const filePath = this.assetPath(fileName) - const buffer = fs.readFileSync(filePath) + const buffer = readFileSync(filePath) const getFileType = (fileName: string) => { if (fileName.endsWith('.png')) return 'image/png' diff --git a/browser_tests/fixtures/helpers/WorkflowHelper.ts b/browser_tests/fixtures/helpers/WorkflowHelper.ts index 49142c503..440ed1c97 100644 --- a/browser_tests/fixtures/helpers/WorkflowHelper.ts +++ b/browser_tests/fixtures/helpers/WorkflowHelper.ts @@ -1,4 +1,4 @@ -import * as fs from 'fs' +import { readFileSync } from 'fs' import type { ComfyPage } from '../ComfyPage' @@ -15,7 +15,7 @@ export class WorkflowHelper { for (const [key, value] of Object.entries(structure)) { if (typeof value === 'string') { const filePath = this.comfyPage.assetPath(value) - result[key] = fs.readFileSync(filePath, 'utf-8') + result[key] = readFileSync(filePath, 'utf-8') } else { result[key] = this.convertLeafToContent(value) }