Add comprehensive test coverage for 10 additional modules #12
ci.yml
on: push
Matrix: Run CI Pipeline / 🧪 Test Matrix / test-matrix
Run CI Pipeline
/
...
/
Run Lint Check
20s
Run CI Pipeline
/
...
/
Run Type Check
22s
Run CI Pipeline
/
📊 Coverage Report
32s
Run CI Pipeline
/
✅ CI Summary
2s
Annotations
71 errors
|
test/registry/git.test.ts > git > getChangedFiles > should handle files with spaces in names (quoted):
test/registry/git.test.ts#L231
AssertionError: expected 0 to be greater than 0
❯ test/registry/git.test.ts:231:29
|
|
test/registry/git.test.ts > git > getChangedFiles > should handle string stdout (not Buffer):
test/registry/git.test.ts#L219
AssertionError: expected [] to deeply equal [ 'file.ts' ]
- Expected
+ Received
- [
- "file.ts",
- ]
+ []
❯ test/registry/git.test.ts:219:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should not cache when cache option is false:
test/registry/git.test.ts#L205
AssertionError: expected [] to deeply equal [ 'file1.ts' ]
- Expected
+ Received
- [
- "file1.ts",
- ]
+ []
❯ test/registry/git.test.ts:205:23
|
|
test/registry/git.test.ts > git > getChangedFiles > should cache results by default:
test/registry/git.test.ts#L184
AssertionError: expected [] to deeply equal [ 'file.ts' ]
- Expected
+ Received
- [
- "file.ts",
- ]
+ []
❯ test/registry/git.test.ts:184:23
|
|
test/registry/git.test.ts > git > getChangedFiles > should strip ANSI codes from output:
test/registry/git.test.ts#L164
AssertionError: expected [] to deeply equal [ 'file.ts' ]
- Expected
+ Received
- [
- "file.ts",
- ]
+ []
❯ test/registry/git.test.ts:164:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should handle custom cwd option:
test/registry/git.test.ts#L128
AssertionError: expected "spy" to be called with arguments: [ 'git', …(2) ]
Number of calls: 0
❯ test/registry/git.test.ts:128:21
|
|
test/registry/git.test.ts > git > getChangedFiles > should return absolute paths when absolute option is true:
test/registry/git.test.ts#L115
AssertionError: expected 0 to be greater than 0
❯ test/registry/git.test.ts:115:29
|
|
test/registry/git.test.ts > git > getChangedFiles > should handle various porcelain status codes:
test/registry/git.test.ts#L98
AssertionError: expected [] to deeply equal [ 'modified.ts', 'added.ts', …(3) ]
- Expected
+ Received
- [
- "modified.ts",
- "added.ts",
- "staged-and-modified.ts",
- "deleted.ts",
- "untracked.ts",
- ]
+ []
❯ test/registry/git.test.ts:98:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should return list of changed files from porcelain output:
test/registry/git.test.ts#L85
AssertionError: expected [] to deeply equal [ 'file1.ts', 'file2.ts', 'file3.ts' ]
- Expected
+ Received
- [
- "file1.ts",
- "file2.ts",
- "file3.ts",
- ]
+ []
❯ test/registry/git.test.ts:85:22
|
|
test/registry/git.test.ts > git > findGitRoot > should return original path if no .git found:
test/registry/git.test.ts#L66
AssertionError: expected '/home/runner/work/socket-lib/socket-l…' to be '/home/runner/work/socket-lib/socket-l…' // Object.is equality
Expected: "/home/runner/work/socket-lib/socket-lib/nonexistent/deep/path"
Received: "/home/runner/work/socket-lib/socket-lib"
❯ test/registry/git.test.ts:66:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should handle files with spaces in names (quoted):
test/registry/git.test.ts#L231
AssertionError: expected 0 to be greater than 0
❯ test/registry/git.test.ts:231:29
|
|
test/registry/git.test.ts > git > getChangedFiles > should handle string stdout (not Buffer):
test/registry/git.test.ts#L219
AssertionError: expected [] to deeply equal [ 'file.ts' ]
- Expected
+ Received
- [
- "file.ts",
- ]
+ []
❯ test/registry/git.test.ts:219:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should not cache when cache option is false:
test/registry/git.test.ts#L205
AssertionError: expected [] to deeply equal [ 'file1.ts' ]
- Expected
+ Received
- [
- "file1.ts",
- ]
+ []
❯ test/registry/git.test.ts:205:23
|
|
test/registry/git.test.ts > git > getChangedFiles > should cache results by default:
test/registry/git.test.ts#L184
AssertionError: expected [] to deeply equal [ 'file.ts' ]
- Expected
+ Received
- [
- "file.ts",
- ]
+ []
❯ test/registry/git.test.ts:184:23
|
|
test/registry/git.test.ts > git > getChangedFiles > should strip ANSI codes from output:
test/registry/git.test.ts#L164
AssertionError: expected [] to deeply equal [ 'file.ts' ]
- Expected
+ Received
- [
- "file.ts",
- ]
+ []
❯ test/registry/git.test.ts:164:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should handle custom cwd option:
test/registry/git.test.ts#L128
AssertionError: expected "spy" to be called with arguments: [ 'git', …(2) ]
Number of calls: 0
❯ test/registry/git.test.ts:128:21
|
|
test/registry/git.test.ts > git > getChangedFiles > should return absolute paths when absolute option is true:
test/registry/git.test.ts#L115
AssertionError: expected 0 to be greater than 0
❯ test/registry/git.test.ts:115:29
|
|
test/registry/git.test.ts > git > getChangedFiles > should handle various porcelain status codes:
test/registry/git.test.ts#L98
AssertionError: expected [] to deeply equal [ 'modified.ts', 'added.ts', …(3) ]
- Expected
+ Received
- [
- "modified.ts",
- "added.ts",
- "staged-and-modified.ts",
- "deleted.ts",
- "untracked.ts",
- ]
+ []
❯ test/registry/git.test.ts:98:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should return list of changed files from porcelain output:
test/registry/git.test.ts#L85
AssertionError: expected [] to deeply equal [ 'file1.ts', 'file2.ts', 'file3.ts' ]
- Expected
+ Received
- [
- "file1.ts",
- "file2.ts",
- "file3.ts",
- ]
+ []
❯ test/registry/git.test.ts:85:22
|
|
test/registry/git.test.ts > git > findGitRoot > should return original path if no .git found:
test/registry/git.test.ts#L66
AssertionError: expected '/home/runner/work/socket-lib/socket-l…' to be '/home/runner/work/socket-lib/socket-l…' // Object.is equality
Expected: "/home/runner/work/socket-lib/socket-lib/nonexistent/deep/path"
Received: "/home/runner/work/socket-lib/socket-lib"
❯ test/registry/git.test.ts:66:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should handle files with spaces in names (quoted):
test/registry/git.test.ts#L231
AssertionError: expected 0 to be greater than 0
❯ test/registry/git.test.ts:231:29
|
|
test/registry/git.test.ts > git > getChangedFiles > should handle string stdout (not Buffer):
test/registry/git.test.ts#L219
AssertionError: expected [] to deeply equal [ 'file.ts' ]
- Expected
+ Received
- [
- "file.ts",
- ]
+ []
❯ test/registry/git.test.ts:219:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should not cache when cache option is false:
test/registry/git.test.ts#L205
AssertionError: expected [] to deeply equal [ 'file1.ts' ]
- Expected
+ Received
- [
- "file1.ts",
- ]
+ []
❯ test/registry/git.test.ts:205:23
|
|
test/registry/git.test.ts > git > getChangedFiles > should cache results by default:
test/registry/git.test.ts#L184
AssertionError: expected [] to deeply equal [ 'file.ts' ]
- Expected
+ Received
- [
- "file.ts",
- ]
+ []
❯ test/registry/git.test.ts:184:23
|
|
test/registry/git.test.ts > git > getChangedFiles > should strip ANSI codes from output:
test/registry/git.test.ts#L164
AssertionError: expected [] to deeply equal [ 'file.ts' ]
- Expected
+ Received
- [
- "file.ts",
- ]
+ []
❯ test/registry/git.test.ts:164:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should handle custom cwd option:
test/registry/git.test.ts#L128
AssertionError: expected "spy" to be called with arguments: [ 'git', …(2) ]
Number of calls: 0
❯ test/registry/git.test.ts:128:21
|
|
test/registry/git.test.ts > git > getChangedFiles > should return absolute paths when absolute option is true:
test/registry/git.test.ts#L115
AssertionError: expected 0 to be greater than 0
❯ test/registry/git.test.ts:115:29
|
|
test/registry/git.test.ts > git > getChangedFiles > should handle various porcelain status codes:
test/registry/git.test.ts#L98
AssertionError: expected [] to deeply equal [ 'modified.ts', 'added.ts', …(3) ]
- Expected
+ Received
- [
- "modified.ts",
- "added.ts",
- "staged-and-modified.ts",
- "deleted.ts",
- "untracked.ts",
- ]
+ []
❯ test/registry/git.test.ts:98:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should return list of changed files from porcelain output:
test/registry/git.test.ts#L85
AssertionError: expected [] to deeply equal [ 'file1.ts', 'file2.ts', 'file3.ts' ]
- Expected
+ Received
- [
- "file1.ts",
- "file2.ts",
- "file3.ts",
- ]
+ []
❯ test/registry/git.test.ts:85:22
|
|
test/registry/git.test.ts > git > findGitRoot > should return original path if no .git found:
test/registry/git.test.ts#L66
AssertionError: expected '/home/runner/work/socket-lib/socket-l…' to be '/home/runner/work/socket-lib/socket-l…' // Object.is equality
Expected: "/home/runner/work/socket-lib/socket-lib/nonexistent/deep/path"
Received: "/home/runner/work/socket-lib/socket-lib"
❯ test/registry/git.test.ts:66:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should handle files with spaces in names (quoted):
test/registry/git.test.ts#L231
AssertionError: expected 0 to be greater than 0
❯ test/registry/git.test.ts:231:29
|
|
test/registry/git.test.ts > git > getChangedFiles > should handle string stdout (not Buffer):
test/registry/git.test.ts#L219
AssertionError: expected [] to deeply equal [ 'file.ts' ]
- Expected
+ Received
- [
- "file.ts",
- ]
+ []
❯ test/registry/git.test.ts:219:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should not cache when cache option is false:
test/registry/git.test.ts#L205
AssertionError: expected [] to deeply equal [ 'file1.ts' ]
- Expected
+ Received
- [
- "file1.ts",
- ]
+ []
❯ test/registry/git.test.ts:205:23
|
|
test/registry/git.test.ts > git > getChangedFiles > should cache results by default:
test/registry/git.test.ts#L184
AssertionError: expected [] to deeply equal [ 'file.ts' ]
- Expected
+ Received
- [
- "file.ts",
- ]
+ []
❯ test/registry/git.test.ts:184:23
|
|
test/registry/git.test.ts > git > getChangedFiles > should strip ANSI codes from output:
test/registry/git.test.ts#L164
AssertionError: expected [] to deeply equal [ 'file.ts' ]
- Expected
+ Received
- [
- "file.ts",
- ]
+ []
❯ test/registry/git.test.ts:164:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should handle custom cwd option:
test/registry/git.test.ts#L128
AssertionError: expected "spy" to be called with arguments: [ 'git', …(2) ]
Number of calls: 0
❯ test/registry/git.test.ts:128:21
|
|
test/registry/git.test.ts > git > getChangedFiles > should return absolute paths when absolute option is true:
test/registry/git.test.ts#L115
AssertionError: expected 0 to be greater than 0
❯ test/registry/git.test.ts:115:29
|
|
test/registry/git.test.ts > git > getChangedFiles > should handle various porcelain status codes:
test/registry/git.test.ts#L98
AssertionError: expected [] to deeply equal [ 'modified.ts', 'added.ts', …(3) ]
- Expected
+ Received
- [
- "modified.ts",
- "added.ts",
- "staged-and-modified.ts",
- "deleted.ts",
- "untracked.ts",
- ]
+ []
❯ test/registry/git.test.ts:98:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should return list of changed files from porcelain output:
test/registry/git.test.ts#L85
AssertionError: expected [] to deeply equal [ 'file1.ts', 'file2.ts', 'file3.ts' ]
- Expected
+ Received
- [
- "file1.ts",
- "file2.ts",
- "file3.ts",
- ]
+ []
❯ test/registry/git.test.ts:85:22
|
|
test/registry/git.test.ts > git > findGitRoot > should return original path if no .git found:
test/registry/git.test.ts#L66
AssertionError: expected 'D:\a\socket-lib\socket-lib' to be 'D:\a\socket-lib\socket-lib\nonexisten…' // Object.is equality
Expected: "D:\a\socket-lib\socket-lib\nonexistent\deep\path"
Received: "D:\a\socket-lib\socket-lib"
❯ test/registry/git.test.ts:66:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should handle files with spaces in names (quoted):
test/registry/git.test.ts#L231
AssertionError: expected 0 to be greater than 0
❯ test/registry/git.test.ts:231:29
|
|
test/registry/git.test.ts > git > getChangedFiles > should handle string stdout (not Buffer):
test/registry/git.test.ts#L219
AssertionError: expected [] to deeply equal [ 'file.ts' ]
- Expected
+ Received
- [
- "file.ts",
- ]
+ []
❯ test/registry/git.test.ts:219:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should not cache when cache option is false:
test/registry/git.test.ts#L205
AssertionError: expected [] to deeply equal [ 'file1.ts' ]
- Expected
+ Received
- [
- "file1.ts",
- ]
+ []
❯ test/registry/git.test.ts:205:23
|
|
test/registry/git.test.ts > git > getChangedFiles > should cache results by default:
test/registry/git.test.ts#L184
AssertionError: expected [] to deeply equal [ 'file.ts' ]
- Expected
+ Received
- [
- "file.ts",
- ]
+ []
❯ test/registry/git.test.ts:184:23
|
|
test/registry/git.test.ts > git > getChangedFiles > should strip ANSI codes from output:
test/registry/git.test.ts#L164
AssertionError: expected [] to deeply equal [ 'file.ts' ]
- Expected
+ Received
- [
- "file.ts",
- ]
+ []
❯ test/registry/git.test.ts:164:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should handle custom cwd option:
test/registry/git.test.ts#L128
AssertionError: expected "spy" to be called with arguments: [ 'git', …(2) ]
Number of calls: 0
❯ test/registry/git.test.ts:128:21
|
|
test/registry/git.test.ts > git > getChangedFiles > should return absolute paths when absolute option is true:
test/registry/git.test.ts#L115
AssertionError: expected 0 to be greater than 0
❯ test/registry/git.test.ts:115:29
|
|
test/registry/git.test.ts > git > getChangedFiles > should handle various porcelain status codes:
test/registry/git.test.ts#L98
AssertionError: expected [] to deeply equal [ 'modified.ts', 'added.ts', …(3) ]
- Expected
+ Received
- [
- "modified.ts",
- "added.ts",
- "staged-and-modified.ts",
- "deleted.ts",
- "untracked.ts",
- ]
+ []
❯ test/registry/git.test.ts:98:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should return list of changed files from porcelain output:
test/registry/git.test.ts#L85
AssertionError: expected [] to deeply equal [ 'file1.ts', 'file2.ts', 'file3.ts' ]
- Expected
+ Received
- [
- "file1.ts",
- "file2.ts",
- "file3.ts",
- ]
+ []
❯ test/registry/git.test.ts:85:22
|
|
test/registry/git.test.ts > git > findGitRoot > should return original path if no .git found:
test/registry/git.test.ts#L66
AssertionError: expected '/home/runner/work/socket-lib/socket-l…' to be '/home/runner/work/socket-lib/socket-l…' // Object.is equality
Expected: "/home/runner/work/socket-lib/socket-lib/nonexistent/deep/path"
Received: "/home/runner/work/socket-lib/socket-lib"
❯ test/registry/git.test.ts:66:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should handle files with spaces in names (quoted):
test/registry/git.test.ts#L231
AssertionError: expected 0 to be greater than 0
❯ test/registry/git.test.ts:231:29
|
|
test/registry/git.test.ts > git > getChangedFiles > should handle string stdout (not Buffer):
test/registry/git.test.ts#L219
AssertionError: expected [] to deeply equal [ 'file.ts' ]
- Expected
+ Received
- [
- "file.ts",
- ]
+ []
❯ test/registry/git.test.ts:219:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should not cache when cache option is false:
test/registry/git.test.ts#L205
AssertionError: expected [] to deeply equal [ 'file1.ts' ]
- Expected
+ Received
- [
- "file1.ts",
- ]
+ []
❯ test/registry/git.test.ts:205:23
|
|
test/registry/git.test.ts > git > getChangedFiles > should cache results by default:
test/registry/git.test.ts#L184
AssertionError: expected [] to deeply equal [ 'file.ts' ]
- Expected
+ Received
- [
- "file.ts",
- ]
+ []
❯ test/registry/git.test.ts:184:23
|
|
test/registry/git.test.ts > git > getChangedFiles > should strip ANSI codes from output:
test/registry/git.test.ts#L164
AssertionError: expected [] to deeply equal [ 'file.ts' ]
- Expected
+ Received
- [
- "file.ts",
- ]
+ []
❯ test/registry/git.test.ts:164:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should handle custom cwd option:
test/registry/git.test.ts#L128
AssertionError: expected "spy" to be called with arguments: [ 'git', …(2) ]
Number of calls: 0
❯ test/registry/git.test.ts:128:21
|
|
test/registry/git.test.ts > git > getChangedFiles > should return absolute paths when absolute option is true:
test/registry/git.test.ts#L115
AssertionError: expected 0 to be greater than 0
❯ test/registry/git.test.ts:115:29
|
|
test/registry/git.test.ts > git > getChangedFiles > should handle various porcelain status codes:
test/registry/git.test.ts#L98
AssertionError: expected [] to deeply equal [ 'modified.ts', 'added.ts', …(3) ]
- Expected
+ Received
- [
- "modified.ts",
- "added.ts",
- "staged-and-modified.ts",
- "deleted.ts",
- "untracked.ts",
- ]
+ []
❯ test/registry/git.test.ts:98:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should return list of changed files from porcelain output:
test/registry/git.test.ts#L85
AssertionError: expected [] to deeply equal [ 'file1.ts', 'file2.ts', 'file3.ts' ]
- Expected
+ Received
- [
- "file1.ts",
- "file2.ts",
- "file3.ts",
- ]
+ []
❯ test/registry/git.test.ts:85:22
|
|
test/registry/git.test.ts > git > findGitRoot > should return original path if no .git found:
test/registry/git.test.ts#L66
AssertionError: expected 'D:\a\socket-lib\socket-lib' to be 'D:\a\socket-lib\socket-lib\nonexisten…' // Object.is equality
Expected: "D:\a\socket-lib\socket-lib\nonexistent\deep\path"
Received: "D:\a\socket-lib\socket-lib"
❯ test/registry/git.test.ts:66:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should handle string stdout (not Buffer):
test/registry/git.test.ts#L219
AssertionError: expected [] to deeply equal [ 'file.ts' ]
- Expected
+ Received
- [
- "file.ts",
- ]
+ []
❯ test/registry/git.test.ts:219:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should not cache when cache option is false:
test/registry/git.test.ts#L205
AssertionError: expected [] to deeply equal [ 'file1.ts' ]
- Expected
+ Received
- [
- "file1.ts",
- ]
+ []
❯ test/registry/git.test.ts:205:23
|
|
test/registry/git.test.ts > git > getChangedFiles > should cache results by default:
test/registry/git.test.ts#L184
AssertionError: expected [] to deeply equal [ 'file.ts' ]
- Expected
+ Received
- [
- "file.ts",
- ]
+ []
❯ test/registry/git.test.ts:184:23
|
|
test/registry/git.test.ts > git > getChangedFiles > should strip ANSI codes from output:
test/registry/git.test.ts#L164
AssertionError: expected [] to deeply equal [ 'file.ts' ]
- Expected
+ Received
- [
- "file.ts",
- ]
+ []
❯ test/registry/git.test.ts:164:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should handle custom cwd option:
test/registry/git.test.ts#L128
AssertionError: expected "spy" to be called with arguments: [ 'git', …(2) ]
Number of calls: 0
❯ test/registry/git.test.ts:128:21
|
|
test/registry/git.test.ts > git > getChangedFiles > should return absolute paths when absolute option is true:
test/registry/git.test.ts#L115
AssertionError: expected 0 to be greater than 0
❯ test/registry/git.test.ts:115:29
|
|
test/registry/git.test.ts > git > getChangedFiles > should handle various porcelain status codes:
test/registry/git.test.ts#L98
AssertionError: expected [] to deeply equal [ 'modified.ts', 'added.ts', …(3) ]
- Expected
+ Received
- [
- "modified.ts",
- "added.ts",
- "staged-and-modified.ts",
- "deleted.ts",
- "untracked.ts",
- ]
+ []
❯ test/registry/git.test.ts:98:22
|
|
test/registry/git.test.ts > git > getChangedFiles > should return list of changed files from porcelain output:
test/registry/git.test.ts#L85
AssertionError: expected [] to deeply equal [ 'file1.ts', 'file2.ts', 'file3.ts' ]
- Expected
+ Received
- [
- "file1.ts",
- "file2.ts",
- "file3.ts",
- ]
+ []
❯ test/registry/git.test.ts:85:22
|
|
test/registry/git.test.ts > git > findGitRoot > should return original path if no .git found:
test/registry/git.test.ts#L66
AssertionError: expected 'D:\a\socket-lib\socket-lib' to be 'D:\a\socket-lib\socket-lib\nonexisten…' // Object.is equality
Expected: "D:\a\socket-lib\socket-lib\nonexistent\deep\path"
Received: "D:\a\socket-lib\socket-lib"
❯ test/registry/git.test.ts:66:22
|
|
test/registry/arrays.test.ts > arrays > joinAnd > should join two items with "and":
test/registry/arrays.test.ts#L140
Error: Test timed out in 5000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
❯ test/registry/arrays.test.ts:140:5
|
|
Run CI Pipeline / ✅ CI Summary
Process completed with exit code 1.
|