diff --git a/node/npm_dependencies.ts b/node/npm_dependencies.ts index 1f0e43a8..57eeb961 100644 --- a/node/npm_dependencies.ts +++ b/node/npm_dependencies.ts @@ -81,16 +81,19 @@ const safelyDetectTypes = async (packageJsonPath: string): Promise { try { const filePath = input === "one" ? 'file1.txt' : 'file2.txt' const fileContents = readFileSync(join(__dirname, "files", filePath)) - console.log(fileContents) + console.log(Buffer.from(fileContents).toString('utf-8')) } catch { // no-op } diff --git a/test/fixtures/tsx/functions/func1.tsx b/test/fixtures/tsx/functions/func1.tsx index da4935fa..6c650b80 100644 --- a/test/fixtures/tsx/functions/func1.tsx +++ b/test/fixtures/tsx/functions/func1.tsx @@ -1,10 +1,3 @@ import React from 'react' -export default () => { - try { - // this is expected to fail - process.env.FOO - } catch { - return new Response(

Hello World

) - } -} +export default () => new Response(

Hello World

)