Skip to content

Commit b92b04f

Browse files
committed
feat: add tests with mocha
1 parent 8cb6d70 commit b92b04f

File tree

6 files changed

+1343
-15
lines changed

6 files changed

+1343
-15
lines changed

.github/workflows/test.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths-ignore:
8+
- '**.md'
9+
pull_request:
10+
paths-ignore:
11+
- '**.md'
12+
workflow_dispatch:
13+
14+
jobs:
15+
tests:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
21+
- name: Set Node.js 16.x
22+
uses: actions/[email protected]
23+
with:
24+
node-version: 16.x
25+
26+
- name: Install dependencies
27+
run: npm ci
28+
29+
- name: Run tests
30+
run: |
31+
npm test

.mocharc.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extension": [
3+
"ts"
4+
],
5+
"spec": "src/**/*.spec.ts",
6+
"require": "ts-node/register"
7+
}

0 commit comments

Comments
 (0)