Skip to content

Commit 5ded9d9

Browse files
committed
fix: unit tests
1 parent 136d870 commit 5ded9d9

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.github/workflows/pr-builder.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ jobs:
170170
- name: 🧩 Install Dependencies
171171
id: install-dependencies
172172
run: pnpm install
173+
174+
- name: 🏗️ Build
175+
id: build
176+
run: pnpm build
173177

174178
- name: 🃏 Run Jest & Collect Coverage
175179
id: run-jest-test-and-coverage

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"fix:lint": "nx run-many --target=fix:lint --all --parallel",
2424
"lint": "nx run-many --target=lint --all --parallel",
2525
"publish:packages": "changeset publish",
26+
"test": "nx run-many --target=test --all --parallel",
2627
"version:packages": "changeset version && pnpm install --lockfile-only"
2728
},
2829
"devDependencies": {

packages/javascript/src/errors/__tests__/AsgardeoError.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe('AsgardeoError', (): void => {
4242
it('should format different SDK origins correctly', (): void => {
4343
const message: string = 'Test error message';
4444
const code: string = 'TEST_ERROR';
45-
const origins: string[] = ['react', 'next', 'javascript'];
45+
const origins: string[] = ['react', 'nextjs', 'javascript'];
4646
const expectedNames: string[] = [
4747
'Asgardeo - @asgardeo/react',
4848
'Asgardeo - @asgardeo/nextjs',

0 commit comments

Comments
 (0)