Skip to content

Commit f334202

Browse files
Copilottaylortom
andcommitted
Add unit tests, test infrastructure, and GitHub workflow
Co-authored-by: taylortom <1059083+taylortom@users.noreply.github.com>
1 parent d54ccf3 commit f334202

File tree

7 files changed

+353
-35
lines changed

7 files changed

+353
-35
lines changed

.github/workflows/tests.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Tests
2+
on: push
3+
jobs:
4+
default:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@master
8+
- uses: actions/setup-node@master
9+
with:
10+
node-version: 'lts/*'
11+
cache: 'npm'
12+
- run: npm ci
13+
- run: npm test

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
npm-debug.log
3+
.DS_Store

package-lock.json

Lines changed: 16 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
"semantic-release": "^25.0.2",
2020
"standard": "^17.1.0"
2121
},
22+
"scripts": {
23+
"test": "node tests/index.js"
24+
},
2225
"release": {
2326
"plugins": [
2427
[

0 commit comments

Comments
 (0)