Skip to content

Commit e612edf

Browse files
committed
feat: add test reporter
1 parent 90ba417 commit e612edf

File tree

5 files changed

+67
-20
lines changed

5 files changed

+67
-20
lines changed

.github/workflows/ci.yml

+7
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ jobs:
1717
node-version: ${{ matrix.node-version }}
1818
- run: npm i
1919
- run: npm run ci
20+
- name: Test Report
21+
uses: dorny/test-reporter@v1
22+
if: success() || failure()
23+
with:
24+
name: JEST Tests
25+
path: reports/jest-*.xml
26+
reporter: jest-junit
2027
build:
2128
runs-on: ubuntu-latest
2229

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
- Fixed FS module not being available in the SDK.
11+
- Clarified some types in the input SDK.
12+
1013
## [0.0.3] - 2025-01-10
1114

1215
### Changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
**Please review USDR’s general guidelines for software & data, too: https://policies.usdigitalresponse.org/data-and-software-guidelines**
22

3-
[![Code of Conduct](https://img.shields.io/badge/%E2%9D%A4-code%20of%20conduct-blue.svg?style=flat)](./CODE_OF_CONDUCT.md)
3+
[![Code of Conduct](https://img.shields.io/badge/%E2%9D%A4-code%20of%20conduct-blue.svg?style=flat)](./CODE_OF_CONDUCT.md) ![Test and lint](https://github.com/usdigitalresponse/jest-environment-airtable-script/actions/workflows/ci.yml/badge.svg)
44

55
# Jest Airtable Script
66

package-lock.json

+45-17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+11-2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"build:package": "rollup -c rollup.config.mjs",
3535
"jest": "JEST_AIRTABLE_TS_DEV=true jest",
3636
"test": "run-s build:sdk jest",
37+
"test:ci": "run-s build:sdk jest --ci --reporters=default --reporters=jest-junit",
3738
"ci": "run-s lint test",
3839
"watch": "npm-watch test",
3940
"lint": "eslint ./src",
@@ -60,6 +61,7 @@
6061
"eslint": "^9.17.0",
6162
"husky": "^9.1.7",
6263
"jest": "^29.7.0",
64+
"jest-junit": "^16.0.0",
6365
"npm-run-all": "^4.1.5",
6466
"npm-watch": "^0.13.0",
6567
"rollup": "^4.29.1",
@@ -69,8 +71,15 @@
6971
"typescript-eslint": "^8.19.0"
7072
},
7173
"dependencies": {
72-
"camelize-ts": "^3.0.0",
73-
"detect-ts-node": "^1.0.5",
7474
"luxon": "^3.5.0"
75+
},
76+
"jest-junit": {
77+
"outputDirectory": "reports",
78+
"outputName": "jest-junit.xml",
79+
"ancestorSeparator": "",
80+
"uniqueOutputName": "false",
81+
"suiteNameTemplate": "{filepath}",
82+
"classNameTemplate": "{classname}",
83+
"titleTemplate": "{title}"
7584
}
7685
}

0 commit comments

Comments
 (0)