Skip to content

Commit

Permalink
🐛 fix(eslint/tests): try to fix testing config on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pauliesnug committed Jun 14, 2024
1 parent 39ac65d commit 6bfdb5f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/eslint-config/test/fixtures.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { join, resolve } from 'node:path';
import process from 'node:process';
import { afterAll, beforeAll, it } from 'vitest';
import fs from 'fs-extra';
import { execa } from 'execa';
Expand Down Expand Up @@ -102,7 +103,9 @@ export default petal(
);
`, 'utf-8');

await execa({ stdio: 'pipe', cwd: target })`pnpm -c dlx eslint --config ./eslint.config.js . --fix`;
if (process.platform === 'win32')
await execa({ stdio: 'pipe', cwd: target })`npx eslint . --fix`;

Check failure on line 107 in packages/eslint-config/test/fixtures.test.ts

View workflow job for this annotation

GitHub Actions / Build and Test: windows-latest (node@lts/*)

test/fixtures.test.ts > js

ExecaError: Command failed with exit code 2: npx eslint . --fix Oops! Something went wrong! :( ESLint: 9.4.0 Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'D:\a\petal\petal\node_modules\@flowr\eslint-config\dist\index.js' imported from D:\a\petal\petal\eslint.config.ts at finalizeResolution (node:internal/modules/esm/resolve:265:11) at moduleResolve (node:internal/modules/esm/resolve:933:10) at defaultResolve (node:internal/modules/esm/resolve:1157:11) at nextResolve (node:internal/modules/esm/hooks:866:28) at resolve (file:///D:/a/petal/petal/node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337530095:2:3893) at nextResolve (node:internal/modules/esm/hooks:866:28) at Hooks.resolve (node:internal/modules/esm/hooks:304:30) at handleMessage (node:internal/modules/esm/worker:196:24) at Immediate.checkForMessages (node:internal/modules/esm/worker:138:28) at process.processImmediate (node:internal/timers:478:21) ❯ resolve ../../node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337530095:2:3893 ❯ getFinalError ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/return/final-error.js:6:9 ❯ makeError ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/return/result.js:108:16 ❯ getAsyncResult ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/main-async.js:174:4 ❯ handlePromise ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/main-async.js:157:17 ❯ test/fixtures.test.ts:107:4 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 2: npx eslint . --fix', command: 'npx eslint . --fix', escapedCommand: 'npx eslint . --fix', cwd: 'D:\a\petal\petal\packages\eslint-config\_fixtures\js', durationMs: 11120.4689, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 2, stdout: '', stderr: '\nOops! Something went wrong! :(\n\nESLint: 9.4.0\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'D:\a\petal\petal\node_modules\@flowr\eslint-config\dist\index.js\' imported from D:\a\petal\petal\eslint.config.ts\n at finalizeResolution (node:internal/modules/esm/resolve:265:11)\n at moduleResolve (node:internal/modules/esm/resolve:933:10)\n at defaultResolve (node:internal/modules/esm/resolve:1157:11)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at resolve (file:///D:/a/petal/petal/node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337530095:2:3893)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at Hooks.resolve (node:internal/modules/esm/hooks:304:30)\n at handleMessage (node:internal/modules/esm/worker:196:24)\n at Immediate.checkForMessages (node:internal/modules/esm/worker:138:28)\n at process.processImmediate (node:internal/timers:478:21)', stdio: [ undefined, '', '\nOops! Something went wrong! :(\n\nESLint: 9.4.0\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'D:\a\petal\petal\node_modules\@flowr\eslint-config\dist\index.js\' imported from D:\a\petal\petal\eslint.config.ts\n at finalizeResolution (node:internal/modules/esm/resolve:265:11)\n at moduleResolve (node:internal/modules/esm/resolve:933:10)\n at defaultResolve (node:internal/modules/esm/resolve:1157:11)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at resolve (file:///D:/a/petal/petal/node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337530095:2:3893)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at Hooks.resolve (node:internal/modules/esm/hooks:304:30)\n at handleMessage (node:internal/modules/esm/worker:196:24)\n at Immediate.checkForMessages (node:internal/modules/esm/worker:138:28)\n at process.processImmediate (node:internal/timers:478:21)' ], ipcOutput: [], pipedFrom: [] }

Check failure on line 107 in packages/eslint-config/test/fixtures.test.ts

View workflow job for this annotation

GitHub Actions / Build and Test: windows-latest (node@lts/*)

test/fixtures.test.ts > all

ExecaError: Command failed with exit code 2: npx eslint . --fix Oops! Something went wrong! :( ESLint: 9.4.0 Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'D:\a\petal\petal\node_modules\@flowr\eslint-config\dist\index.js' imported from D:\a\petal\petal\eslint.config.ts at finalizeResolution (node:internal/modules/esm/resolve:265:11) at moduleResolve (node:internal/modules/esm/resolve:933:10) at defaultResolve (node:internal/modules/esm/resolve:1157:11) at nextResolve (node:internal/modules/esm/hooks:866:28) at resolve (file:///D:/a/petal/petal/node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337530084:2:3893) at nextResolve (node:internal/modules/esm/hooks:866:28) at Hooks.resolve (node:internal/modules/esm/hooks:304:30) at handleMessage (node:internal/modules/esm/worker:196:24) at Immediate.checkForMessages (node:internal/modules/esm/worker:138:28) at process.processImmediate (node:internal/timers:478:21) ❯ resolve ../../node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337530084:2:3893 ❯ getFinalError ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/return/final-error.js:6:9 ❯ makeError ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/return/result.js:108:16 ❯ getAsyncResult ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/main-async.js:174:4 ❯ handlePromise ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/main-async.js:157:17 ❯ test/fixtures.test.ts:107:4 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 2: npx eslint . --fix', command: 'npx eslint . --fix', escapedCommand: 'npx eslint . --fix', cwd: 'D:\a\petal\petal\packages\eslint-config\_fixtures\all', durationMs: 11099.8058, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 2, stdout: '', stderr: '\nOops! Something went wrong! :(\n\nESLint: 9.4.0\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'D:\a\petal\petal\node_modules\@flowr\eslint-config\dist\index.js\' imported from D:\a\petal\petal\eslint.config.ts\n at finalizeResolution (node:internal/modules/esm/resolve:265:11)\n at moduleResolve (node:internal/modules/esm/resolve:933:10)\n at defaultResolve (node:internal/modules/esm/resolve:1157:11)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at resolve (file:///D:/a/petal/petal/node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337530084:2:3893)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at Hooks.resolve (node:internal/modules/esm/hooks:304:30)\n at handleMessage (node:internal/modules/esm/worker:196:24)\n at Immediate.checkForMessages (node:internal/modules/esm/worker:138:28)\n at process.processImmediate (node:internal/timers:478:21)', stdio: [ undefined, '', '\nOops! Something went wrong! :(\n\nESLint: 9.4.0\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'D:\a\petal\petal\node_modules\@flowr\eslint-config\dist\index.js\' imported from D:\a\petal\petal\eslint.config.ts\n at finalizeResolution (node:internal/modules/esm/resolve:265:11)\n at moduleResolve (node:internal/modules/esm/resolve:933:10)\n at defaultResolve (node:internal/modules/esm/resolve:1157:11)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at resolve (file:///D:/a/petal/petal/node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337530084:2:3893)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at Hooks.resolve (node:internal/modules/esm/hooks:304:30)\n at handleMessage (node:internal/modules/esm/worker:196:24)\n at Immediate.checkForMessages (node:internal/modules/esm/worker:138:28)\n at process.processImmediate (node:internal/timers:478:21)' ], ipcOutput: [], pipedFrom: [] }

Check failure on line 107 in packages/eslint-config/test/fixtures.test.ts

View workflow job for this annotation

GitHub Actions / Build and Test: windows-latest (node@lts/*)

test/fixtures.test.ts > no-style

ExecaError: Command failed with exit code 2: npx eslint . --fix Oops! Something went wrong! :( ESLint: 9.4.0 Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'D:\a\petal\petal\node_modules\@flowr\eslint-config\dist\index.js' imported from D:\a\petal\petal\eslint.config.ts at finalizeResolution (node:internal/modules/esm/resolve:265:11) at moduleResolve (node:internal/modules/esm/resolve:933:10) at defaultResolve (node:internal/modules/esm/resolve:1157:11) at nextResolve (node:internal/modules/esm/hooks:866:28) at resolve (file:///D:/a/petal/petal/node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337530011:2:3893) at nextResolve (node:internal/modules/esm/hooks:866:28) at Hooks.resolve (node:internal/modules/esm/hooks:304:30) at handleMessage (node:internal/modules/esm/worker:196:24) at Immediate.checkForMessages (node:internal/modules/esm/worker:138:28) at process.processImmediate (node:internal/timers:478:21) ❯ resolve ../../node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337530011:2:3893 ❯ getFinalError ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/return/final-error.js:6:9 ❯ makeError ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/return/result.js:108:16 ❯ getAsyncResult ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/main-async.js:174:4 ❯ handlePromise ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/main-async.js:157:17 ❯ test/fixtures.test.ts:107:4 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 2: npx eslint . --fix', command: 'npx eslint . --fix', escapedCommand: 'npx eslint . --fix', cwd: 'D:\a\petal\petal\packages\eslint-config\_fixtures\no-style', durationMs: 11077.926, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 2, stdout: '', stderr: '\nOops! Something went wrong! :(\n\nESLint: 9.4.0\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'D:\a\petal\petal\node_modules\@flowr\eslint-config\dist\index.js\' imported from D:\a\petal\petal\eslint.config.ts\n at finalizeResolution (node:internal/modules/esm/resolve:265:11)\n at moduleResolve (node:internal/modules/esm/resolve:933:10)\n at defaultResolve (node:internal/modules/esm/resolve:1157:11)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at resolve (file:///D:/a/petal/petal/node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337530011:2:3893)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at Hooks.resolve (node:internal/modules/esm/hooks:304:30)\n at handleMessage (node:internal/modules/esm/worker:196:24)\n at Immediate.checkForMessages (node:internal/modules/esm/worker:138:28)\n at process.processImmediate (node:internal/timers:478:21)', stdio: [ undefined, '', '\nOops! Something went wrong! :(\n\nESLint: 9.4.0\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'D:\a\petal\petal\node_modules\@flowr\eslint-config\dist\index.js\' imported from D:\a\petal\petal\eslint.config.ts\n at finalizeResolution (node:internal/modules/esm/resolve:265:11)\n at moduleResolve (node:internal/modules/esm/resolve:933:10)\n at defaultResolve (node:internal/modules/esm/resolve:1157:11)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at resolve (file:///D:/a/petal/petal/node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337530011:2:3893)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at Hooks.resolve (node:internal/modules/esm/hooks:304:30)\n at handleMessage (node:internal/modules/esm/worker:196:24)\n at Immediate.checkForMessages (node:internal/modules/esm/worker:138:28)\n at process.processImmediate (node:internal/timers:478:21)' ], ipcOutput: [], pipedFrom: [] }

Check failure on line 107 in packages/eslint-config/test/fixtures.test.ts

View workflow job for this annotation

GitHub Actions / Build and Test: windows-latest (node@lts/*)

test/fixtures.test.ts > tab-double-quotes

ExecaError: Command failed with exit code 2: npx eslint . --fix Oops! Something went wrong! :( ESLint: 9.4.0 Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'D:\a\petal\petal\node_modules\@flowr\eslint-config\dist\index.js' imported from D:\a\petal\petal\eslint.config.ts at finalizeResolution (node:internal/modules/esm/resolve:265:11) at moduleResolve (node:internal/modules/esm/resolve:933:10) at defaultResolve (node:internal/modules/esm/resolve:1157:11) at nextResolve (node:internal/modules/esm/hooks:866:28) at resolve (file:///D:/a/petal/petal/node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337530417:2:3893) at nextResolve (node:internal/modules/esm/hooks:866:28) at Hooks.resolve (node:internal/modules/esm/hooks:304:30) at handleMessage (node:internal/modules/esm/worker:196:24) at Immediate.checkForMessages (node:internal/modules/esm/worker:138:28) at process.processImmediate (node:internal/timers:478:21) ❯ resolve ../../node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337530417:2:3893 ❯ getFinalError ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/return/final-error.js:6:9 ❯ makeError ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/return/result.js:108:16 ❯ getAsyncResult ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/main-async.js:174:4 ❯ handlePromise ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/main-async.js:157:17 ❯ test/fixtures.test.ts:107:4 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 2: npx eslint . --fix', command: 'npx eslint . --fix', escapedCommand: 'npx eslint . --fix', cwd: 'D:\a\petal\petal\packages\eslint-config\_fixtures\tab-double-quotes', durationMs: 11245.2552, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 2, stdout: '', stderr: '\nOops! Something went wrong! :(\n\nESLint: 9.4.0\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'D:\a\petal\petal\node_modules\@flowr\eslint-config\dist\index.js\' imported from D:\a\petal\petal\eslint.config.ts\n at finalizeResolution (node:internal/modules/esm/resolve:265:11)\n at moduleResolve (node:internal/modules/esm/resolve:933:10)\n at defaultResolve (node:internal/modules/esm/resolve:1157:11)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at resolve (file:///D:/a/petal/petal/node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337530417:2:3893)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at Hooks.resolve (node:internal/modules/esm/hooks:304:30)\n at handleMessage (node:internal/modules/esm/worker:196:24)\n at Immediate.checkForMessages (node:internal/modules/esm/worker:138:28)\n at process.processImmediate (node:internal/timers:478:21)', stdio: [ undefined, '', '\nOops! Something went wrong! :(\n\nESLint: 9.4.0\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'D:\a\petal\petal\node_modules\@flowr\eslint-config\dist\index.js\' imported from D:\a\petal\petal\eslint.config.ts\n at finalizeResolution (node:internal/modules/esm/resolve:265:11)\n at moduleResolve (node:internal/modules/esm/resolve:933:10)\n at defaultResolve (node:internal/modules/esm/resolve:1157:11)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at resolve (file:///D:/a/petal/petal/node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337530417:2:3893)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at Hooks.resolve (node:internal/modules/esm/hooks:304:30)\n at handleMessage (node:internal/modules/esm/worker:196:24)\n at Immediate.checkForMessages (node:internal/modules/esm/worker:138:28)\n at process.processImmediate (node:internal/timers:478:21)' ], ipcOutput: [], pipedFrom: [] }

Check failure on line 107 in packages/eslint-config/test/fixtures.test.ts

View workflow job for this annotation

GitHub Actions / Build and Test: windows-latest (node@lts/*)

test/fixtures.test.ts > ts-override

ExecaError: Command failed with exit code 2: npx eslint . --fix Oops! Something went wrong! :( ESLint: 9.4.0 Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'D:\a\petal\petal\node_modules\@flowr\eslint-config\dist\index.js' imported from D:\a\petal\petal\eslint.config.ts at finalizeResolution (node:internal/modules/esm/resolve:265:11) at moduleResolve (node:internal/modules/esm/resolve:933:10) at defaultResolve (node:internal/modules/esm/resolve:1157:11) at nextResolve (node:internal/modules/esm/hooks:866:28) at resolve (file:///D:/a/petal/petal/node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337529987:2:3893) at nextResolve (node:internal/modules/esm/hooks:866:28) at Hooks.resolve (node:internal/modules/esm/hooks:304:30) at handleMessage (node:internal/modules/esm/worker:196:24) at Immediate.checkForMessages (node:internal/modules/esm/worker:138:28) at process.processImmediate (node:internal/timers:478:21) ❯ resolve ../../node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337529987:2:3893 ❯ getFinalError ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/return/final-error.js:6:9 ❯ makeError ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/return/result.js:108:16 ❯ getAsyncResult ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/main-async.js:174:4 ❯ handlePromise ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/main-async.js:157:17 ❯ test/fixtures.test.ts:107:4 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 2: npx eslint . --fix', command: 'npx eslint . --fix', escapedCommand: 'npx eslint . --fix', cwd: 'D:\a\petal\petal\packages\eslint-config\_fixtures\ts-override', durationMs: 11067.3657, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 2, stdout: '', stderr: '\nOops! Something went wrong! :(\n\nESLint: 9.4.0\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'D:\a\petal\petal\node_modules\@flowr\eslint-config\dist\index.js\' imported from D:\a\petal\petal\eslint.config.ts\n at finalizeResolution (node:internal/modules/esm/resolve:265:11)\n at moduleResolve (node:internal/modules/esm/resolve:933:10)\n at defaultResolve (node:internal/modules/esm/resolve:1157:11)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at resolve (file:///D:/a/petal/petal/node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337529987:2:3893)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at Hooks.resolve (node:internal/modules/esm/hooks:304:30)\n at handleMessage (node:internal/modules/esm/worker:196:24)\n at Immediate.checkForMessages (node:internal/modules/esm/worker:138:28)\n at process.processImmediate (node:internal/timers:478:21)', stdio: [ undefined, '', '\nOops! Something went wrong! :(\n\nESLint: 9.4.0\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'D:\a\petal\petal\node_modules\@flowr\eslint-config\dist\index.js\' imported from D:\a\petal\petal\eslint.config.ts\n at finalizeResolution (node:internal/modules/esm/resolve:265:11)\n at moduleResolve (node:internal/modules/esm/resolve:933:10)\n at defaultResolve (node:internal/modules/esm/resolve:1157:11)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at resolve (file:///D:/a/petal/petal/node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337529987:2:3893)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at Hooks.resolve (node:internal/modules/esm/hooks:304:30)\n at handleMessage (node:internal/modules/esm/worker:196:24)\n at Immediate.checkForMessages (node:internal/modules/esm/worker:138:28)\n at process.processImmediate (node:internal/timers:478:21)' ], ipcOutput: [], pipedFrom: [] }

Check failure on line 107 in packages/eslint-config/test/fixtures.test.ts

View workflow job for this annotation

GitHub Actions / Build and Test: windows-latest (node@lts/*)

test/fixtures.test.ts > with-formatters

ExecaError: Command failed with exit code 2: npx eslint . --fix Oops! Something went wrong! :( ESLint: 9.4.0 Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'D:\a\petal\petal\node_modules\@flowr\eslint-config\dist\index.js' imported from D:\a\petal\petal\eslint.config.ts at finalizeResolution (node:internal/modules/esm/resolve:265:11) at moduleResolve (node:internal/modules/esm/resolve:933:10) at defaultResolve (node:internal/modules/esm/resolve:1157:11) at nextResolve (node:internal/modules/esm/hooks:866:28) at resolve (file:///D:/a/petal/petal/node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337532015:2:3893) at nextResolve (node:internal/modules/esm/hooks:866:28) at Hooks.resolve (node:internal/modules/esm/hooks:304:30) at handleMessage (node:internal/modules/esm/worker:196:24) at Immediate.checkForMessages (node:internal/modules/esm/worker:138:28) at process.processImmediate (node:internal/timers:478:21) ❯ resolve ../../node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337532015:2:3893 ❯ getFinalError ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/return/final-error.js:6:9 ❯ makeError ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/return/result.js:108:16 ❯ getAsyncResult ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/main-async.js:174:4 ❯ handlePromise ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/main-async.js:157:17 ❯ test/fixtures.test.ts:107:4 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 2: npx eslint . --fix', command: 'npx eslint . --fix', escapedCommand: 'npx eslint . --fix', cwd: 'D:\a\petal\petal\packages\eslint-config\_fixtures\with-formatters', durationMs: 1709.0962, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 2, stdout: '', stderr: '\nOops! Something went wrong! :(\n\nESLint: 9.4.0\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'D:\a\petal\petal\node_modules\@flowr\eslint-config\dist\index.js\' imported from D:\a\petal\petal\eslint.config.ts\n at finalizeResolution (node:internal/modules/esm/resolve:265:11)\n at moduleResolve (node:internal/modules/esm/resolve:933:10)\n at defaultResolve (node:internal/modules/esm/resolve:1157:11)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at resolve (file:///D:/a/petal/petal/node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337532015:2:3893)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at Hooks.resolve (node:internal/modules/esm/hooks:304:30)\n at handleMessage (node:internal/modules/esm/worker:196:24)\n at Immediate.checkForMessages (node:internal/modules/esm/worker:138:28)\n at process.processImmediate (node:internal/timers:478:21)', stdio: [ undefined, '', '\nOops! Something went wrong! :(\n\nESLint: 9.4.0\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'D:\a\petal\petal\node_modules\@flowr\eslint-config\dist\index.js\' imported from D:\a\petal\petal\eslint.config.ts\n at finalizeResolution (node:internal/modules/esm/resolve:265:11)\n at moduleResolve (node:internal/modules/esm/resolve:933:10)\n at defaultResolve (node:internal/modules/esm/resolve:1157:11)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at resolve (file:///D:/a/petal/petal/node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337532015:2:3893)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at Hooks.resolve (node:internal/modules/esm/hooks:304:30)\n at handleMessage (node:internal/modules/esm/worker:196:24)\n at Immediate.checkForMessages (node:internal/modules/esm/worker:138:28)\n at process.processImmediate (node:internal/timers:478:21)' ], ipcOutput: [], pipedFrom: [] }

Check failure on line 107 in packages/eslint-config/test/fixtures.test.ts

View workflow job for this annotation

GitHub Actions / Build and Test: windows-latest (node@lts/*)

test/fixtures.test.ts > no-markdown-with-formatters

ExecaError: Command failed with exit code 2: npx eslint . --fix Oops! Something went wrong! :( ESLint: 9.4.0 Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'D:\a\petal\petal\node_modules\@flowr\eslint-config\dist\index.js' imported from D:\a\petal\petal\eslint.config.ts at finalizeResolution (node:internal/modules/esm/resolve:265:11) at moduleResolve (node:internal/modules/esm/resolve:933:10) at defaultResolve (node:internal/modules/esm/resolve:1157:11) at nextResolve (node:internal/modules/esm/hooks:866:28) at resolve (file:///D:/a/petal/petal/node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337532014:2:3893) at nextResolve (node:internal/modules/esm/hooks:866:28) at Hooks.resolve (node:internal/modules/esm/hooks:304:30) at handleMessage (node:internal/modules/esm/worker:196:24) at Immediate.checkForMessages (node:internal/modules/esm/worker:138:28) at process.processImmediate (node:internal/timers:478:21) ❯ resolve ../../node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337532014:2:3893 ❯ getFinalError ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/return/final-error.js:6:9 ❯ makeError ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/return/result.js:108:16 ❯ getAsyncResult ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/main-async.js:174:4 ❯ handlePromise ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/main-async.js:157:17 ❯ test/fixtures.test.ts:107:4 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 2: npx eslint . --fix', command: 'npx eslint . --fix', escapedCommand: 'npx eslint . --fix', cwd: 'D:\a\petal\petal\packages\eslint-config\_fixtures\no-markdown-with-formatters', durationMs: 1689.1874, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 2, stdout: '', stderr: '\nOops! Something went wrong! :(\n\nESLint: 9.4.0\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'D:\a\petal\petal\node_modules\@flowr\eslint-config\dist\index.js\' imported from D:\a\petal\petal\eslint.config.ts\n at finalizeResolution (node:internal/modules/esm/resolve:265:11)\n at moduleResolve (node:internal/modules/esm/resolve:933:10)\n at defaultResolve (node:internal/modules/esm/resolve:1157:11)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at resolve (file:///D:/a/petal/petal/node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337532014:2:3893)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at Hooks.resolve (node:internal/modules/esm/hooks:304:30)\n at handleMessage (node:internal/modules/esm/worker:196:24)\n at Immediate.checkForMessages (node:internal/modules/esm/worker:138:28)\n at process.processImmediate (node:internal/timers:478:21)', stdio: [ undefined, '', '\nOops! Something went wrong! :(\n\nESLint: 9.4.0\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'D:\a\petal\petal\node_modules\@flowr\eslint-config\dist\index.js\' imported from D:\a\petal\petal\eslint.config.ts\n at finalizeResolution (node:internal/modules/esm/resolve:265:11)\n at moduleResolve (node:internal/modules/esm/resolve:933:10)\n at defaultResolve (node:internal/modules/esm/resolve:1157:11)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at resolve (file:///D:/a/petal/petal/node_modules/.pnpm/tsx@4.15.4/node_modules/tsx/dist/esm/index.mjs?1718337532014:2:3893)\n at nextResolve (node:internal/modules/esm/hooks:866:28)\n at Hooks.resolve (node:internal/modules/esm/hooks:304:30)\n at handleMessage (node:internal/modules/esm/worker:196:24)\n at Immediate.checkForMessages (node:internal/modules/esm/worker:138:28)\n at process.processImmediate (node:internal/timers:478:21)' ], ipcOutput: [], pipedFrom: [] }
else await execa({ stdio: 'pipe', cwd: target })`pnpm -c dlx eslint --config ./eslint.config.js . --fix`;

Check failure on line 108 in packages/eslint-config/test/fixtures.test.ts

View workflow job for this annotation

GitHub Actions / Build and Test: ubuntu-latest (node@lts/*)

test/fixtures.test.ts > js

ExecaError: Command failed with exit code 254: pnpm -c dlx eslint --config ./eslint.config.js . --fix Progress: resolved 1, reused 0, downloaded 0, added 0 Progress: resolved 31, reused 30, downloaded 1, added 0 Packages: +89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Progress: resolved 89, reused 88, downloaded 1, added 6 Progress: resolved 89, reused 88, downloaded 1, added 89, done \u2009ENOENT\u2009 ENOENT: no such file or directory, unlink '/home/runner/.cache/pnpm/dlx/dauhb4ieh4uuhxvfogmrqnncoe/pkg' pnpm: ENOENT: no such file or directory, unlink '/home/runner/.cache/pnpm/dlx/dauhb4ieh4uuhxvfogmrqnncoe/pkg' at async Object.unlink (node:internal/fs/promises:1063:10) at async forceSymlink (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.3.0/node_modules/pnpm/dist/pnpm.cjs:104665:7) at async Object.handler [as dlx] (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.3.0/node_modules/pnpm/dist/pnpm.cjs:220490:9) at async /home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.3.0/node_modules/pnpm/dist/pnpm.cjs:229946:21 at async main (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.3.0/node_modules/pnpm/dist/pnpm.cjs:229909:34) at async runPnpm (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.3.0/node_modules/pnpm/dist/pnpm.cjs:230161:5) at async /home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.3.0/node_modules/pnpm/dist/pnpm.cjs:230153:7 ❯ forceSymlink ../../../../../setup-pnpm/node_modules/.pnpm/pnpm@9.3.0/node_modules/pnpm/dist/pnpm.cjs:104665:7 ❯ Object.handler [as dlx] ../../../../../setup-pnpm/node_modules/.pnpm/pnpm@9.3.0/node_modules/pnpm/dist/pnpm.cjs:220490:9 ❯ ../../async /home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.3.0/node_modules/pnpm/dist/pnpm.cjs:229946:21 ❯ main ../../../../../setup-pnpm/node_modules/.pnpm/pnpm@9.3.0/node_modules/pnpm/dist/pnpm.cjs:229909:34 ❯ runPnpm ../../../../../setup-pnpm/node_modules/.pnpm/pnpm@9.3.0/node_modules/pnpm/dist/pnpm.cjs:230161:5 ❯ ../../async /home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.3.0/node_modules/pnpm/dist/pnpm.cjs:230153:7 ❯ getFinalError ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/return/final-error.js:6:9 ❯ makeError ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/return/result.js:108:16 ❯ getAsyncResult ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/main-async.js:174:4 ❯ handlePromise ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/main-async.js:157:17 ❯ test/fixtures.test.ts:108:8 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 254: pnpm -c dlx eslint --config ./eslint.config.js . --fix', command: 'pnpm -c dlx eslint --config ./eslint.config.js . --fix', escapedCommand: 'pnpm -c dlx eslint --config ./eslint.config.js . --fix', cwd: '/home/runner/work/petal/petal/packages/eslint-config/_fixtures/js', durationMs: 4106.885718, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 254, stdout: '', stderr: 'Progress: resolved 1, reused 0, downloaded 0, added 0\nProgress: resolved 31, reused 30, downloaded 1, added 0\nPackages: +89\n++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\nProgress: resolved 89, reused 88, downloaded 1, added 6\nProgress: resolved 89, reused 88, downloaded 1, added 89, done\n ENOENT  ENOENT: no such file or directory, unlink \'/home/runner/.cache/pnpm/dlx/dauhb4ieh4uuhxvfogmrqnncoe/pkg\'\n\npnpm: ENOENT: no such file or directory, unlink \'/home/runner/.cache/pnpm/dlx/dauhb4ieh4uuhxvfogmrqnncoe/pkg\'\n at async Object.unlink (node:internal/fs/promises:1063:10)\n at async forceSymlink (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.3.0/node_modules/pnpm/dist/pnpm.cjs:104665:7)\n at async Object.handler [as dlx] (/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.3.0/node_modules/pnpm/dist/pnpm.cjs:220490:9)\n at async /home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.3.0/node_modules

const files = await fg('**/*', {
ignore: [
Expand Down

0 comments on commit 6bfdb5f

Please sign in to comment.