Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 93db47b

Browse files
committed
Merge pull request #20 from jeffbcross/developer-docs
docs(developer): add docs for contributors
2 parents 0568af1 + d6e8bea commit 93db47b

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

DEVELOPER.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## Unit Tests
2+
3+
### Write Unit Tests
4+
5+
Write tests alongside components and services, as `<thing>.spec.ts`:
6+
```
7+
components/
8+
- About.ts
9+
- About.spec.ts
10+
```
11+
12+
### Run Tests with Karma
13+
```
14+
$ npm test
15+
```
16+
17+
Or
18+
19+
```
20+
$ npm install -g karma
21+
$ karma start
22+
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"test": "karma start"
88
},
99
"author": "",
1010
"license": "MIT",

0 commit comments

Comments
 (0)