Skip to content

Commit 731d325

Browse files
authored
Refactor and add tests (#17)
* Refactor and add tests * Add `index.js` to `exports` in `package.json` * Add Actions workflow for testing
1 parent 6f7bebd commit 731d325

File tree

8 files changed

+6255
-104
lines changed

8 files changed

+6255
-104
lines changed

.github/workflows/node-test.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Test Node.js project with Jest"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: "18.x"
19+
- run: npm ci
20+
- run: npm test

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# imsosorrybutinjs
2+
23
Sometimes it can be necessary to call upon the ancient arts... But in JS!

jsconfig.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"compilerOptions": {
3+
"checkJs": true,
4+
"lib": ["esnext"]
5+
}
6+
}

0 commit comments

Comments
 (0)