From 5a682458ae3a1c32eba8e3d6221b1a40deb13a81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ari=20Perkki=C3=B6?= Date: Fri, 7 Jan 2022 11:28:19 +0000 Subject: [PATCH] fix: fs import in ts configs - Do not require syntetic imports --- src/run-tester.ts | 2 +- test/run-tester.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/run-tester.ts b/src/run-tester.ts index 862fcb4..82b31d9 100644 --- a/src/run-tester.ts +++ b/src/run-tester.ts @@ -48,7 +48,7 @@ module.exports = { const CONFIGURATION_TEMPLATE_TS = (pathToUsersConfiguration: string) => `// Generated by eslint-remote-tester-run-action -import fs from 'fs'; +import * as fs from 'fs'; import type { Config } from 'eslint-remote-tester'; // Load user's eslint-remote-tester.config.ts diff --git a/test/run-tester.test.ts b/test/run-tester.test.ts index 7d8bf5e..8f14e21 100644 --- a/test/run-tester.test.ts +++ b/test/run-tester.test.ts @@ -105,7 +105,7 @@ describe('run-tester', () => { expect(sanitizeStackTrace(configContents)).toMatchInlineSnapshot(` "// Generated by eslint-remote-tester-run-action - import fs from 'fs'; + import * as fs from 'fs'; import type { Config } from 'eslint-remote-tester'; // Load user's eslint-remote-tester.config.ts