Skip to content

Commit f4a2080

Browse files
add dom tests (#36)
* add tests for all blocktypes * remove jest * checkpoint * checkpoint * checkpoint * run test before build * checkpoint * migrate serialization test to vitest
1 parent cb106f5 commit f4a2080

File tree

13 files changed

+2229
-2721
lines changed

13 files changed

+2229
-2721
lines changed

.github/workflows/build.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@ jobs:
6565
- name: Generate types
6666
working-directory: ./typescript
6767
run: npm run generate-types
68+
69+
- name: Run tests
70+
working-directory: ./typescript
71+
run: npm test
6872

6973
- name: Build
7074
working-directory: ./typescript
7175
run: npm run build
7276

73-
- name: Run tests
74-
working-directory: ./typescript
75-
run: npm test
76-
7777
- name: Check linting
7878
working-directory: ./typescript
7979
run: npm run lint

.github/workflows/preview.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,16 @@ jobs:
2525
working-directory: ./typescript
2626
run: npm ci
2727

28+
- name: Run tests
29+
working-directory: ./typescript
30+
run: npm test
31+
2832
- name: Generate types and build package
2933
working-directory: ./typescript
3034
run: |
3135
npm run generate-types
3236
npm run build
3337
34-
- name: Run tests
35-
working-directory: ./typescript
36-
run: npm test
3738
3839
- name: Prepare package for publishing
3940
working-directory: ./typescript

.github/workflows/publish.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,15 @@ jobs:
9797
- name: Install dependencies
9898
working-directory: ./typescript
9999
run: npm ci
100-
100+
- name: Run tests
101+
working-directory: ./typescript
102+
run: npm test
101103
- name: Generate types and build package
102104
working-directory: ./typescript
103105
run: |
104106
npm run generate-types
105107
npm run build
106108
107-
- name: Run tests
108-
working-directory: ./typescript
109-
run: npm test
110109
111110
- name: Publish package to NPM
112111
working-directory: ./typescript

typescript/jest.config.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)