Skip to content

Commit 0771e7f

Browse files
committed
fix type errors
1 parent 2597eea commit 0771e7f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"start:dist": "node dist/index.js",
2626
"fetch-api": "curl https://artifacts.codacy.com/api/codacy-api/50.7.17/apiv3-bundled.yaml -o ./api-v3/api-swagger.yaml --create-dirs",
2727
"generate-api": "rm -rf ./src/api/client && openapi --input ./api-v3/api-swagger.yaml --output ./src/api/client --useUnionTypes --indent 2 --client fetch",
28-
"update-api": "npm run fetch-api && npm run generate-api"
28+
"update-api": "npm run fetch-api && npm run generate-api",
29+
"check-types": "tsc --noEmit"
2930
},
3031
"keywords": [
3132
"codacy",

src/commands/login.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ function createProgram(): Command {
2323
}
2424

2525
const mockUser = {
26+
id: 1,
2627
name: "Test User",
2728
mainEmail: "test@example.com",
2829
otherEmails: [],
2930
isAdmin: false,
3031
isActive: true,
32+
created: "2024-01-01",
3133
};
3234

3335
describe("login command", () => {

0 commit comments

Comments
 (0)