Skip to content

Commit 4f4fc2b

Browse files
committed
add unit testing
1 parent 5701db1 commit 4f4fc2b

File tree

11 files changed

+5274
-580
lines changed

11 files changed

+5274
-580
lines changed

.babelrc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
plugins: ['@babel/plugin-proposal-class-properties'],
3+
presets: ['@babel/preset-env', '@babel/preset-typescript']
4+
};

.circleci/config.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,20 @@ jobs:
3333
paths:
3434
- node_modules
3535

36+
test:
37+
<<: *container-config
38+
steps:
39+
- checkout
40+
- *load-cache
41+
- run:
42+
name: Test
43+
command: npm test
44+
- store_artifacts:
45+
path: coverage
46+
- run:
47+
name: Send coverage to Codecov
48+
command: npm run codecov
49+
3650
publish:
3751
<<: *container-config
3852
steps:
@@ -54,12 +68,12 @@ workflows:
5468
filters:
5569
tags:
5670
only: /.*/
57-
# - test:
58-
# requires:
59-
# - install
60-
# filters:
61-
# tags:
62-
# only: /.*/
71+
- test:
72+
requires:
73+
- install
74+
filters:
75+
tags:
76+
only: /.*/
6377
# TODO add a dry-run step to non-tagged changes
6478
# - publish-dry-run:
6579
# requires:

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# compiled code
22
dist
3-
*.js
43

54
# Logs
65
logs

.npmignore

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
.circleci/
2+
.dependabot/
3+
.nyc_output/
4+
coverage/
5+
dist/mock-data/
6+
dist/*.test*
7+
examples/
28
src/
39
.prettierrc.yml
410
.gitignore
511
.npmignore
612
.publishrc
7-
tsconfig.json
8-
tsconfig.build.json
13+
cucumber.js
14+
tsconfig.*json

.nycrc.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
all: true
2+
cache: false
3+
4+
exclude:
5+
- '**/*.js'
6+
- '**/*/mock-data'
7+
- '**/*test.ts'
8+
- '**/*index.ts'
9+
- dist
10+
- coverage
11+
- examples
12+
13+
extension:
14+
- .ts

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html)
66

7-
<!-- ## [1.0.0]&nbsp;&nbsp;(2019-09-01) -->
7+
## [1.0.0]&nbsp;&nbsp;(2019-09-01)
8+
9+
### Changed
10+
11+
- Modified how common code is handled (responses, logging, tagging)
812

913
## 0.3.9&nbsp;&nbsp;(2019-09-01)
1014

0 commit comments

Comments
 (0)