Skip to content

Commit

Permalink
Add test to pages setup and break a test
Browse files Browse the repository at this point in the history
  • Loading branch information
simonkellly committed May 20, 2024
1 parent c303058 commit 80f6a87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Test
run: bun test
- name: Build
run: bun run build
- name: Setup Pages
Expand Down
5 changes: 5 additions & 0 deletions tests/example.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { expect, test } from 'bun:test';

test('Failing test', () => {
expect(1).toBe(2);

Check failure on line 4 in tests/example.test.ts

View workflow job for this annotation

GitHub Actions / deploy

error: expect(received).toBe(expected)

Expected: 2 Received: 1 at /home/runner/work/bld-ninja/bld-ninja/tests/example.test.ts:4:3
})

0 comments on commit 80f6a87

Please sign in to comment.