Skip to content

Commit 42f4647

Browse files
authored
Fix null export when requests have no response; add test suite (#108)
Adds Jest test suite and CI workflow. Guards enrichWithResponse against null/undefined from getResponse() (#69), and filters undefined parsed entries from the export request list (#106).
1 parent 318321e commit 42f4647

7 files changed

Lines changed: 3816 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
3+
name: Test
4+
5+
on:
6+
push:
7+
branches: ['**']
8+
pull_request:
9+
10+
jobs:
11+
test:
12+
name: Run tests
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Run tests
26+
run: npm test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
lib/*.js
2+
node_modules/

0 commit comments

Comments
 (0)