Skip to content

Commit 16218b3

Browse files
committed
feat(tests): add jest for unit testing & tests
1 parent 7caa676 commit 16218b3

File tree

7 files changed

+6617
-64
lines changed

7 files changed

+6617
-64
lines changed

.gitlab-ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
stages:
2+
- install
3+
- lint
4+
- test
5+
6+
default:
7+
cache: &global_cache # Cache modules in between jobs
8+
key: $CI_COMMIT_REF_SLUG
9+
policy: pull
10+
paths:
11+
- node_modules/
12+
13+
install:
14+
stage: install
15+
image: node:16-alpine
16+
cache:
17+
<<: *global_cache
18+
policy: pull-push
19+
script:
20+
- npm ci
21+
22+
unit_test:
23+
stage: test
24+
image: node:16
25+
needs:
26+
- install
27+
script:
28+
- npm run test

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
examples/
22
.vscode/
3-
43
.editorconfig

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"printWidth": 120,
5+
"tabWidth": 4
6+
}

0 commit comments

Comments
 (0)