feat: add GET /api/commit endpoint and improve git API response formats #355
Annotations
4 errors and 1 warning
|
test
Process completed with exit code 1.
|
|
src/features/git/listCommitsApi.test.ts > searchCommits > repository lookup > should work end-to-end with repository lookup:
packages/web/src/features/git/listCommitsApi.test.ts#L583
AssertionError: expected { Object (commits, totalCount) } to deeply equal { Object (commits, totalCount) }
- Expected
+ Received
Object {
"commits": Array [
Object {
- "authorEmail": "dev@example.com",
- "authorName": "Developer",
+ "authorEmail": undefined,
+ "authorName": undefined,
"body": "Added new functionality",
"date": "2024-06-20T10:00:00Z",
"hash": "xyz789",
"message": "feat: new feature",
"refs": "main",
},
],
"totalCount": 1,
}
❯ src/features/git/listCommitsApi.test.ts:583:28
|
|
src/features/git/listCommitsApi.test.ts > searchCommits > integration scenarios > should handle a typical commit search with filters:
packages/web/src/features/git/listCommitsApi.test.ts#L480
AssertionError: expected { Object (commits, totalCount) } to deeply equal { Object (commits, totalCount) }
- Expected
+ Received
Object {
"commits": Array [
Object {
- "authorEmail": "security@example.com",
- "authorName": "Security Team",
+ "authorEmail": undefined,
+ "authorName": undefined,
"body": "Fixed issue with JWT token validation",
"date": "2024-06-10T14:30:00Z",
"hash": "abc123",
"message": "fix: resolve authentication bug",
"refs": "HEAD -> main",
},
],
"totalCount": 1,
}
❯ src/features/git/listCommitsApi.test.ts:480:28
|
|
src/features/git/listCommitsApi.test.ts > searchCommits > successful responses > should return commits and totalCount from git log:
packages/web/src/features/git/listCommitsApi.test.ts#L345
AssertionError: expected { …(2) } to deeply equal { …(2) }
- Expected
+ Received
Object {
"commits": Array [
Object {
- "authorEmail": "john@example.com",
- "authorName": "John Doe",
+ "authorEmail": undefined,
+ "authorName": undefined,
"body": "",
"date": "2024-06-15",
"hash": "abc123",
"message": "feat: add feature",
"refs": "HEAD -> main",
},
Object {
- "authorEmail": "jane@example.com",
- "authorName": "Jane Smith",
+ "authorEmail": undefined,
+ "authorName": undefined,
"body": "",
"date": "2024-06-14",
"hash": "def456",
"message": "fix: bug fix",
"refs": "",
},
],
"totalCount": 2,
}
❯ src/features/git/listCommitsApi.test.ts:345:28
|
|
test
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|