0.0.2 #4
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/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: 58.811226, 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: 43.913625, 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: 47.866741, 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: 42.2782, 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 module
|
test (18)
Process completed with exit code 1.
|
test (20)
The job was canceled because "_18" 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/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: 45.532093, 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.d
|
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: 42.878103, 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: 36.180068, 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: 36.188414, 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.
|