feat!: start migrating to typescript #144
Annotations
4 errors
test/cherry.test.js > cherry > explains the usage:
test/cherry.test.js#L8
AssertionError: expected 'node:internal/modules/cjs/loader:1093…' to contain 'Usage: cherry [options] [command]'
- Expected
+ Received
- Usage: cherry [options] [command]
+ node:internal/modules/cjs/loader:1093
+ throw err;
+ ^
+
+ Error: Cannot find module '/home/runner/work/cherry-cli/cherry-cli/bin/cherry.js'
+ at Module._resolveFilename (node:internal/modules/cjs/loader:1090:15)
+ at Module._load (node:internal/modules/cjs/loader:934:27)
+ at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
+ at node:internal/main/run_main_module:23:47 {
+ code: 'MODULE_NOT_FOUND',
+ requireStack: []
+ }
+
+ Node.js v19.7.0
+
❯ test/cherry.test.js:8:26
|
test/cherry_diff.test.js > cherry diff > should exit with an error if --metric is missing:
test/cherry_diff.test.js#L29
AssertionError: expected 'node:internal/modules/cjs/loader:1093…' to contain 'required option \'--metric <metric>\'…'
- Expected
+ Received
- required option '--metric <metric>' not specified
+ node:internal/modules/cjs/loader:1093
+ throw err;
+ ^
+
+ Error: Cannot find module '/home/runner/work/cherry-cli/cherry-cli/bin/cherry.js'
+ at Module._resolveFilename (node:internal/modules/cjs/loader:1090:15)
+ at Module._load (node:internal/modules/cjs/loader:934:27)
+ at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
+ at node:internal/main/run_main_module:23:47 {
+ code: 'MODULE_NOT_FOUND',
+ requireStack: []
+ }
+
+ Node.js v19.7.0
+
❯ test/cherry_diff.test.js:29:26
|
test/cherry_diff.test.js > cherry diff > requires to commit changes before running cherry diff:
test/cherry_diff.test.js#L41
AssertionError: expected 'node:internal/modules/cjs/loader:1093…' to contain 'Please commit your changes before run…'
- Expected
+ Received
- Please commit your changes before running cherry diff
+ node:internal/modules/cjs/loader:1093
+ throw err;
+ ^
+
+ Error: Cannot find module '/home/runner/work/cherry-cli/cherry-cli/bin/cherry.js'
+ at Module._resolveFilename (node:internal/modules/cjs/loader:1090:15)
+ at Module._load (node:internal/modules/cjs/loader:934:27)
+ at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
+ at node:internal/main/run_main_module:23:47 {
+ code: 'MODULE_NOT_FOUND',
+ requireStack: []
+ }
+
+ Node.js v19.7.0
+
❯ test/cherry_diff.test.js:41:26
|
test
Process completed with exit code 1.
|