Skip to content

0.0.3

0.0.3 #6

Triggered via push June 7, 2024 07:13
Status Failure
Total duration 29s
Artifacts

test.yml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

11 errors
test/cli.test.ts > CLI > should replace text in files using regex: test/cli.test.ts#L19
ExecaError: Command failed with exit code 1: node /home/runner/work/replace-regex/replace-regex/cli.js '--from=test' '--to=TEST' /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt node:internal/modules/esm/resolve:265 throw new ERR_MODULE_NOT_FOUND( ^ Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/runner/work/replace-regex/replace-regex/dist/index.js' imported from /home/runner/work/replace-regex/replace-regex/cli.js 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 ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12) at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25) at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:227:38) at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:87:39) at link (node:internal/modules/esm/module_job:86:36) { code: 'ERR_MODULE_NOT_FOUND', url: 'file:///home/runner/work/replace-regex/replace-regex/dist/index.js' } Node.js v20.14.0 ❯ getFinalError node_modules/execa/lib/return/final-error.js:6:9 ❯ makeError node_modules/execa/lib/return/result.js:108:16 ❯ getAsyncResult node_modules/execa/lib/methods/main-async.js:174:4 ❯ handlePromise node_modules/execa/lib/methods/main-async.js:157:17 ❯ test/cli.test.ts:19:32 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 1: node /home/runner/work/replace-regex/replace-regex/cli.js \'--from=test\' \'--to=TEST\' /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt', command: 'node /home/runner/work/replace-regex/replace-regex/cli.js --from=test --to=TEST /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt', escapedCommand: 'node /home/runner/work/replace-regex/replace-regex/cli.js \'--from=test\' \'--to=TEST\' /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt', cwd: '/home/runner/work/replace-regex/replace-regex', durationMs: 50.86596, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 1, stdout: '', stderr: 'node:internal/modules/esm/resolve:265\n throw new ERR_MODULE_NOT_FOUND(\n ^\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'/home/runner/work/replace-regex/replace-regex/dist/index.js\' imported from /home/runner/work/replace-regex/replace-regex/cli.js\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 ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12)\n at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25)\n at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:227:38)\n at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:87:39)\n at link (node:internal/modules/esm/module_job:86:36) {\n code: \'ERR_MODULE_NOT_FOUND\',\n url: \'file:///home/runner/work/replace-regex/replace-regex/dist/index.js\'\n}\n\nNode.js v20.14.0', stdio: [ undefined, '', 'node:internal/modules/esm/resolve:265\n throw new ERR_MODULE_NOT_FOUND(\n ^\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'/home/runner/work/replace-regex/replace-regex/dist/index.js\' imported from /home/runner/work/replace-regex/replace-regex/cli.js\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 ModuleLoader.de
test/cli.test.ts > CLI > should support dry mode: test/cli.test.ts#L34
ExecaError: Command failed with exit code 1: node /home/runner/work/replace-regex/replace-regex/cli.js '--from=test' '--to=TEST' --dry /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt node:internal/modules/esm/resolve:265 throw new ERR_MODULE_NOT_FOUND( ^ Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/runner/work/replace-regex/replace-regex/dist/index.js' imported from /home/runner/work/replace-regex/replace-regex/cli.js 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 ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12) at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25) at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:227:38) at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:87:39) at link (node:internal/modules/esm/module_job:86:36) { code: 'ERR_MODULE_NOT_FOUND', url: 'file:///home/runner/work/replace-regex/replace-regex/dist/index.js' } Node.js v20.14.0 ❯ getFinalError node_modules/execa/lib/return/final-error.js:6:9 ❯ makeError node_modules/execa/lib/return/result.js:108:16 ❯ getAsyncResult node_modules/execa/lib/methods/main-async.js:174:4 ❯ handlePromise node_modules/execa/lib/methods/main-async.js:157:17 ❯ test/cli.test.ts:34:24 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 1: node /home/runner/work/replace-regex/replace-regex/cli.js \'--from=test\' \'--to=TEST\' --dry /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt', command: 'node /home/runner/work/replace-regex/replace-regex/cli.js --from=test --to=TEST --dry /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt', escapedCommand: 'node /home/runner/work/replace-regex/replace-regex/cli.js \'--from=test\' \'--to=TEST\' --dry /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt', cwd: '/home/runner/work/replace-regex/replace-regex', durationMs: 46.266671, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 1, stdout: '', stderr: 'node:internal/modules/esm/resolve:265\n throw new ERR_MODULE_NOT_FOUND(\n ^\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'/home/runner/work/replace-regex/replace-regex/dist/index.js\' imported from /home/runner/work/replace-regex/replace-regex/cli.js\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 ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12)\n at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25)\n at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:227:38)\n at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:87:39)\n at link (node:internal/modules/esm/module_job:86:36) {\n code: \'ERR_MODULE_NOT_FOUND\',\n url: \'file:///home/runner/work/replace-regex/replace-regex/dist/index.js\'\n}\n\nNode.js v20.14.0', stdio: [ undefined, '', 'node:internal/modules/esm/resolve:265\n throw new ERR_MODULE_NOT_FOUND(\n ^\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'/home/runner/work/replace-regex/replace-regex/dist/index.js\' imported from /home/runner/work/replace-regex/replace-regex/cli.js\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
test/cli.test.ts > CLI > should handle no matches: test/cli.test.ts#L50
ExecaError: Command failed with exit code 1: node /home/runner/work/replace-regex/replace-regex/cli.js '--from=nonexistent' '--to=TEST' /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt node:internal/modules/esm/resolve:265 throw new ERR_MODULE_NOT_FOUND( ^ Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/runner/work/replace-regex/replace-regex/dist/index.js' imported from /home/runner/work/replace-regex/replace-regex/cli.js 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 ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12) at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25) at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:227:38) at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:87:39) at link (node:internal/modules/esm/module_job:86:36) { code: 'ERR_MODULE_NOT_FOUND', url: 'file:///home/runner/work/replace-regex/replace-regex/dist/index.js' } Node.js v20.14.0 ❯ getFinalError node_modules/execa/lib/return/final-error.js:6:9 ❯ makeError node_modules/execa/lib/return/result.js:108:16 ❯ getAsyncResult node_modules/execa/lib/methods/main-async.js:174:4 ❯ handlePromise node_modules/execa/lib/methods/main-async.js:157:17 ❯ test/cli.test.ts:50:24 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 1: node /home/runner/work/replace-regex/replace-regex/cli.js \'--from=nonexistent\' \'--to=TEST\' /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt', command: 'node /home/runner/work/replace-regex/replace-regex/cli.js --from=nonexistent --to=TEST /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt', escapedCommand: 'node /home/runner/work/replace-regex/replace-regex/cli.js \'--from=nonexistent\' \'--to=TEST\' /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt', cwd: '/home/runner/work/replace-regex/replace-regex', durationMs: 35.929787, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 1, stdout: '', stderr: 'node:internal/modules/esm/resolve:265\n throw new ERR_MODULE_NOT_FOUND(\n ^\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'/home/runner/work/replace-regex/replace-regex/dist/index.js\' imported from /home/runner/work/replace-regex/replace-regex/cli.js\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 ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12)\n at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25)\n at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:227:38)\n at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:87:39)\n at link (node:internal/modules/esm/module_job:86:36) {\n code: \'ERR_MODULE_NOT_FOUND\',\n url: \'file:///home/runner/work/replace-regex/replace-regex/dist/index.js\'\n}\n\nNode.js v20.14.0', stdio: [ undefined, '', 'node:internal/modules/esm/resolve:265\n throw new ERR_MODULE_NOT_FOUND(\n ^\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'/home/runner/work/replace-regex/replace-regex/dist/index.js\' imported from /home/runner/work/replace-regex/replace-regex/cli.js\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:115
test/cli.test.ts > CLI > should handle ignore-case flag: test/cli.test.ts#L65
ExecaError: Command failed with exit code 1: node /home/runner/work/replace-regex/replace-regex/cli.js '--from=Test' '--to=TEST' --ignore-case /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt node:internal/modules/esm/resolve:265 throw new ERR_MODULE_NOT_FOUND( ^ Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/runner/work/replace-regex/replace-regex/dist/index.js' imported from /home/runner/work/replace-regex/replace-regex/cli.js 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 ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12) at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25) at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:227:38) at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:87:39) at link (node:internal/modules/esm/module_job:86:36) { code: 'ERR_MODULE_NOT_FOUND', url: 'file:///home/runner/work/replace-regex/replace-regex/dist/index.js' } Node.js v20.14.0 ❯ getFinalError node_modules/execa/lib/return/final-error.js:6:9 ❯ makeError node_modules/execa/lib/return/result.js:108:16 ❯ getAsyncResult node_modules/execa/lib/methods/main-async.js:174:4 ❯ handlePromise node_modules/execa/lib/methods/main-async.js:157:17 ❯ test/cli.test.ts:65:24 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 1: node /home/runner/work/replace-regex/replace-regex/cli.js \'--from=Test\' \'--to=TEST\' --ignore-case /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt', command: 'node /home/runner/work/replace-regex/replace-regex/cli.js --from=Test --to=TEST --ignore-case /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt', escapedCommand: 'node /home/runner/work/replace-regex/replace-regex/cli.js \'--from=Test\' \'--to=TEST\' --ignore-case /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt', cwd: '/home/runner/work/replace-regex/replace-regex', durationMs: 35.701897, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 1, stdout: '', stderr: 'node:internal/modules/esm/resolve:265\n throw new ERR_MODULE_NOT_FOUND(\n ^\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'/home/runner/work/replace-regex/replace-regex/dist/index.js\' imported from /home/runner/work/replace-regex/replace-regex/cli.js\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 ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12)\n at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25)\n at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:227:38)\n at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:87:39)\n at link (node:internal/modules/esm/module_job:86:36) {\n code: \'ERR_MODULE_NOT_FOUND\',\n url: \'file:///home/runner/work/replace-regex/replace-regex/dist/index.js\'\n}\n\nNode.js v20.14.0', stdio: [ undefined, '', 'node:internal/modules/esm/resolve:265\n throw new ERR_MODULE_NOT_FOUND(\n ^\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'/home/runner/work/replace-regex/replace-regex/dist/index.js\' imported from /home/runner/work/replace-regex/replace-regex/cli.js\n at finalizeResolution (node:internal/modules/esm/resolve:265:11)\n at moduleResolve (node:internal/modules/esm/resolve:933:10)\n at defaultResolve (node:inte
test (20)
Process completed with exit code 1.
test (18)
The job was canceled because "_20" failed.
test/cli.test.ts > CLI > should replace text in files using regex: test/cli.test.ts#L19
ExecaError: Command failed with exit code 1: node /home/runner/work/replace-regex/replace-regex/cli.js '--from=test' '--to=TEST' /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt node:internal/errors:496 ErrorCaptureStackTrace(err); ^ Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/runner/work/replace-regex/replace-regex/dist/index.js' imported from /home/runner/work/replace-regex/replace-regex/cli.js at new NodeError (node:internal/errors:405:5) at finalizeResolution (node:internal/modules/esm/resolve:327:11) at moduleResolve (node:internal/modules/esm/resolve:980:10) at defaultResolve (node:internal/modules/esm/resolve:1193:11) at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:404:12) at ModuleLoader.resolve (node:internal/modules/esm/loader:373:25) at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:250:38) at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:39) at link (node:internal/modules/esm/module_job:75:36) { url: 'file:///home/runner/work/replace-regex/replace-regex/dist/index.js', code: 'ERR_MODULE_NOT_FOUND' } Node.js v18.20.3 ❯ getFinalError node_modules/execa/lib/return/final-error.js:6:9 ❯ makeError node_modules/execa/lib/return/result.js:108:16 ❯ getAsyncResult node_modules/execa/lib/methods/main-async.js:174:4 ❯ handlePromise node_modules/execa/lib/methods/main-async.js:157:17 ❯ test/cli.test.ts:19:32 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 1: node /home/runner/work/replace-regex/replace-regex/cli.js \'--from=test\' \'--to=TEST\' /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt', command: 'node /home/runner/work/replace-regex/replace-regex/cli.js --from=test --to=TEST /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt', escapedCommand: 'node /home/runner/work/replace-regex/replace-regex/cli.js \'--from=test\' \'--to=TEST\' /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt', cwd: '/home/runner/work/replace-regex/replace-regex', durationMs: 51.801563, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 1, stdout: '', stderr: 'node:internal/errors:496\n ErrorCaptureStackTrace(err);\n ^\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'/home/runner/work/replace-regex/replace-regex/dist/index.js\' imported from /home/runner/work/replace-regex/replace-regex/cli.js\n at new NodeError (node:internal/errors:405:5)\n at finalizeResolution (node:internal/modules/esm/resolve:327:11)\n at moduleResolve (node:internal/modules/esm/resolve:980:10)\n at defaultResolve (node:internal/modules/esm/resolve:1193:11)\n at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:404:12)\n at ModuleLoader.resolve (node:internal/modules/esm/loader:373:25)\n at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:250:38)\n at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:39)\n at link (node:internal/modules/esm/module_job:75:36) {\n url: \'file:///home/runner/work/replace-regex/replace-regex/dist/index.js\',\n code: \'ERR_MODULE_NOT_FOUND\'\n}\n\nNode.js v18.20.3', stdio: [ undefined, '', 'node:internal/errors:496\n ErrorCaptureStackTrace(err);\n ^\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'/home/runner/work/replace-regex/replace-regex/dist/index.js\' imported from /home/runner/work/replace-regex/replace-regex/cli.js\n at new NodeError (node:internal/errors:405:5)\n at finalizeResolution (node:internal/modules/esm/resolve:327:11)\n at moduleResolve (node:internal/modules/esm/resolve:980:10)\n
test/cli.test.ts > CLI > should support dry mode: test/cli.test.ts#L34
ExecaError: Command failed with exit code 1: node /home/runner/work/replace-regex/replace-regex/cli.js '--from=test' '--to=TEST' --dry /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt node:internal/errors:496 ErrorCaptureStackTrace(err); ^ Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/runner/work/replace-regex/replace-regex/dist/index.js' imported from /home/runner/work/replace-regex/replace-regex/cli.js at new NodeError (node:internal/errors:405:5) at finalizeResolution (node:internal/modules/esm/resolve:327:11) at moduleResolve (node:internal/modules/esm/resolve:980:10) at defaultResolve (node:internal/modules/esm/resolve:1193:11) at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:404:12) at ModuleLoader.resolve (node:internal/modules/esm/loader:373:25) at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:250:38) at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:39) at link (node:internal/modules/esm/module_job:75:36) { url: 'file:///home/runner/work/replace-regex/replace-regex/dist/index.js', code: 'ERR_MODULE_NOT_FOUND' } Node.js v18.20.3 ❯ getFinalError node_modules/execa/lib/return/final-error.js:6:9 ❯ makeError node_modules/execa/lib/return/result.js:108:16 ❯ getAsyncResult node_modules/execa/lib/methods/main-async.js:174:4 ❯ handlePromise node_modules/execa/lib/methods/main-async.js:157:17 ❯ test/cli.test.ts:34:24 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 1: node /home/runner/work/replace-regex/replace-regex/cli.js \'--from=test\' \'--to=TEST\' --dry /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt', command: 'node /home/runner/work/replace-regex/replace-regex/cli.js --from=test --to=TEST --dry /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt', escapedCommand: 'node /home/runner/work/replace-regex/replace-regex/cli.js \'--from=test\' \'--to=TEST\' --dry /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt', cwd: '/home/runner/work/replace-regex/replace-regex', durationMs: 47.60569, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 1, stdout: '', stderr: 'node:internal/errors:496\n ErrorCaptureStackTrace(err);\n ^\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'/home/runner/work/replace-regex/replace-regex/dist/index.js\' imported from /home/runner/work/replace-regex/replace-regex/cli.js\n at new NodeError (node:internal/errors:405:5)\n at finalizeResolution (node:internal/modules/esm/resolve:327:11)\n at moduleResolve (node:internal/modules/esm/resolve:980:10)\n at defaultResolve (node:internal/modules/esm/resolve:1193:11)\n at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:404:12)\n at ModuleLoader.resolve (node:internal/modules/esm/loader:373:25)\n at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:250:38)\n at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:39)\n at link (node:internal/modules/esm/module_job:75:36) {\n url: \'file:///home/runner/work/replace-regex/replace-regex/dist/index.js\',\n code: \'ERR_MODULE_NOT_FOUND\'\n}\n\nNode.js v18.20.3', stdio: [ undefined, '', 'node:internal/errors:496\n ErrorCaptureStackTrace(err);\n ^\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'/home/runner/work/replace-regex/replace-regex/dist/index.js\' imported from /home/runner/work/replace-regex/replace-regex/cli.js\n at new NodeError (node:internal/errors:405:5)\n at finalizeResolution (node:internal/modules/esm/resolve:327:11)\n at moduleResolve (node:internal/modules/
test/cli.test.ts > CLI > should handle no matches: test/cli.test.ts#L50
ExecaError: Command failed with exit code 1: node /home/runner/work/replace-regex/replace-regex/cli.js '--from=nonexistent' '--to=TEST' /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt node:internal/errors:496 ErrorCaptureStackTrace(err); ^ Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/runner/work/replace-regex/replace-regex/dist/index.js' imported from /home/runner/work/replace-regex/replace-regex/cli.js at new NodeError (node:internal/errors:405:5) at finalizeResolution (node:internal/modules/esm/resolve:327:11) at moduleResolve (node:internal/modules/esm/resolve:980:10) at defaultResolve (node:internal/modules/esm/resolve:1193:11) at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:404:12) at ModuleLoader.resolve (node:internal/modules/esm/loader:373:25) at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:250:38) at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:39) at link (node:internal/modules/esm/module_job:75:36) { url: 'file:///home/runner/work/replace-regex/replace-regex/dist/index.js', code: 'ERR_MODULE_NOT_FOUND' } Node.js v18.20.3 ❯ getFinalError node_modules/execa/lib/return/final-error.js:6:9 ❯ makeError node_modules/execa/lib/return/result.js:108:16 ❯ getAsyncResult node_modules/execa/lib/methods/main-async.js:174:4 ❯ handlePromise node_modules/execa/lib/methods/main-async.js:157:17 ❯ test/cli.test.ts:50:24 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 1: node /home/runner/work/replace-regex/replace-regex/cli.js \'--from=nonexistent\' \'--to=TEST\' /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt', command: 'node /home/runner/work/replace-regex/replace-regex/cli.js --from=nonexistent --to=TEST /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt', escapedCommand: 'node /home/runner/work/replace-regex/replace-regex/cli.js \'--from=nonexistent\' \'--to=TEST\' /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt', cwd: '/home/runner/work/replace-regex/replace-regex', durationMs: 44.161745, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 1, stdout: '', stderr: 'node:internal/errors:496\n ErrorCaptureStackTrace(err);\n ^\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'/home/runner/work/replace-regex/replace-regex/dist/index.js\' imported from /home/runner/work/replace-regex/replace-regex/cli.js\n at new NodeError (node:internal/errors:405:5)\n at finalizeResolution (node:internal/modules/esm/resolve:327:11)\n at moduleResolve (node:internal/modules/esm/resolve:980:10)\n at defaultResolve (node:internal/modules/esm/resolve:1193:11)\n at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:404:12)\n at ModuleLoader.resolve (node:internal/modules/esm/loader:373:25)\n at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:250:38)\n at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:39)\n at link (node:internal/modules/esm/module_job:75:36) {\n url: \'file:///home/runner/work/replace-regex/replace-regex/dist/index.js\',\n code: \'ERR_MODULE_NOT_FOUND\'\n}\n\nNode.js v18.20.3', stdio: [ undefined, '', 'node:internal/errors:496\n ErrorCaptureStackTrace(err);\n ^\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'/home/runner/work/replace-regex/replace-regex/dist/index.js\' imported from /home/runner/work/replace-regex/replace-regex/cli.js\n at new NodeError (node:internal/errors:405:5)\n at finalizeResolution (node:internal/modules/esm/resolve:327:11)\n at moduleResolve (node:internal/mod
test/cli.test.ts > CLI > should handle ignore-case flag: test/cli.test.ts#L65
ExecaError: Command failed with exit code 1: node /home/runner/work/replace-regex/replace-regex/cli.js '--from=Test' '--to=TEST' --ignore-case /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt node:internal/errors:496 ErrorCaptureStackTrace(err); ^ Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/runner/work/replace-regex/replace-regex/dist/index.js' imported from /home/runner/work/replace-regex/replace-regex/cli.js at new NodeError (node:internal/errors:405:5) at finalizeResolution (node:internal/modules/esm/resolve:327:11) at moduleResolve (node:internal/modules/esm/resolve:980:10) at defaultResolve (node:internal/modules/esm/resolve:1193:11) at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:404:12) at ModuleLoader.resolve (node:internal/modules/esm/loader:373:25) at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:250:38) at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:39) at link (node:internal/modules/esm/module_job:75:36) { url: 'file:///home/runner/work/replace-regex/replace-regex/dist/index.js', code: 'ERR_MODULE_NOT_FOUND' } Node.js v18.20.3 ❯ getFinalError node_modules/execa/lib/return/final-error.js:6:9 ❯ makeError node_modules/execa/lib/return/result.js:108:16 ❯ getAsyncResult node_modules/execa/lib/methods/main-async.js:174:4 ❯ handlePromise node_modules/execa/lib/methods/main-async.js:157:17 ❯ test/cli.test.ts:65:24 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { shortMessage: 'Command failed with exit code 1: node /home/runner/work/replace-regex/replace-regex/cli.js \'--from=Test\' \'--to=TEST\' --ignore-case /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt', command: 'node /home/runner/work/replace-regex/replace-regex/cli.js --from=Test --to=TEST --ignore-case /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt', escapedCommand: 'node /home/runner/work/replace-regex/replace-regex/cli.js \'--from=Test\' \'--to=TEST\' --ignore-case /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file1.txt /home/runner/work/replace-regex/replace-regex/test/helpers/cli/file2.txt', cwd: '/home/runner/work/replace-regex/replace-regex', durationMs: 43.262291, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 1, stdout: '', stderr: 'node:internal/errors:496\n ErrorCaptureStackTrace(err);\n ^\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'/home/runner/work/replace-regex/replace-regex/dist/index.js\' imported from /home/runner/work/replace-regex/replace-regex/cli.js\n at new NodeError (node:internal/errors:405:5)\n at finalizeResolution (node:internal/modules/esm/resolve:327:11)\n at moduleResolve (node:internal/modules/esm/resolve:980:10)\n at defaultResolve (node:internal/modules/esm/resolve:1193:11)\n at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:404:12)\n at ModuleLoader.resolve (node:internal/modules/esm/loader:373:25)\n at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:250:38)\n at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:39)\n at link (node:internal/modules/esm/module_job:75:36) {\n url: \'file:///home/runner/work/replace-regex/replace-regex/dist/index.js\',\n code: \'ERR_MODULE_NOT_FOUND\'\n}\n\nNode.js v18.20.3', stdio: [ undefined, '', 'node:internal/errors:496\n ErrorCaptureStackTrace(err);\n ^\n\nError [ERR_MODULE_NOT_FOUND]: Cannot find module \'/home/runner/work/replace-regex/replace-regex/dist/index.js\' imported from /home/runner/work/replace-regex/replace-regex/cli.js\n at new NodeError (node:internal/errors:405:5)\n at finalizeResolution (node:internal/modules/esm/resolve:327:11)\n at modu
test (18)
Process completed with exit code 1.