Skip to content

Commit b772deb

Browse files
fix: test updates
1 parent d09338b commit b772deb

File tree

6 files changed

+134
-14
lines changed

6 files changed

+134
-14
lines changed

.github/workflows/tests.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,33 @@
1-
name: Test
1+
name: Tests
22

33
on:
44
pull_request:
55
branches: [main]
6+
push:
7+
branches: [main]
68

79
jobs:
810
test:
9-
name: Run Tests
1011
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
pull-requests: read
15+
1116
steps:
1217
- uses: actions/checkout@v4
1318

19+
- name: Setup pnpm
20+
uses: pnpm/action-setup@v4
21+
with:
22+
version: 9
23+
1424
- name: Setup Node.js
1525
uses: actions/setup-node@v4
1626
with:
17-
node-version: "20.x"
27+
node-version: 20
1828
cache: "pnpm"
1929

20-
- name: Install pnpm
21-
uses: pnpm/action-setup@v3
22-
with:
23-
version: 8.x
24-
run_install: true
25-
26-
- name: Install dependencies
30+
- name: Install Dependencies
2731
run: pnpm install --frozen-lockfile
2832
working-directory: ./claim-db-worker
2933

claim-db-worker/__tests__/claim.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import ClaimPage from "../app/claim/page";
66

77
// This test does not check the actual claim flow, but rather the claim page functionality and claim flow logic.
88
// It mocks the fetch API and window.open to simulate the claim flow,
9-
// so long as the Management API is funtioning properly, this should be as well.
9+
// so long as the Management API is functioning properly, this should be as well.
1010

1111
const mockFetch = vi.fn();
1212
global.fetch = mockFetch;

claim-db-worker/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"noEmit": true,
99
"esModuleInterop": true,
1010
"module": "esnext",
11-
"moduleResolution": "node",
11+
"moduleResolution": "bundler",
1212
"resolveJsonModule": true,
1313
"isolatedModules": true,
1414
"jsx": "preserve",

create-db/__tests__/utils.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
2-
import { getCommandName, isOffline } from "../index.js";
2+
import { getCommandName } from "../index.js";
33

44
describe("utils", () => {
55
describe("getCommandName()", () => {

create-db/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"analytics.js"
4949
],
5050
"devDependencies": {
51+
"execa": "^9.6.0",
5152
"vitest": "^3.2.4"
5253
}
5354
}

0 commit comments

Comments
 (0)