Skip to content

Commit 3a5a010

Browse files
committed
šŸ› Fix environment variables in node.js.yaml and update test assertion in repositories.test.ts
1 parent 31bbe13 commit 3a5a010

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

ā€Ž.github/workflows/node.js.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,8 @@ jobs:
2323
- run: pnpm run build --noEmit
2424
- run: pnpm run lint
2525
- run: pnpm run test run
26+
env:
27+
BITBUCKET_CLOUD_USERNAME: ${{ secrets.BITBUCKET_CLOUD_USERNAME }}
28+
BITBUCKET_CLOUD_APP_PASSWORD: ${{ secrets.BITBUCKET_CLOUD_APP_PASSWORD }}
29+
BITBUCKET_SERVER_URL: ${{ secrets.BITBUCKET_SERVER_URL }}
30+
BITBUCKET_SERVER_TOKEN: ${{ secrets.BITBUCKET_SERVER_TOKEN }}

ā€Žtests/server/repositories.test.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,5 @@ import { server } from "./client.js"
44
test("GET /api/latest/repos", async ({ expect }) => {
55
const got = await server.GET("/api/latest/repos")
66

7-
expect(got.data).toMatchObject({
8-
size: 1,
9-
})
7+
expect(got.data?.size).toBeTypeOf("number")
108
})

0 commit comments

Comments
Ā (0)