Skip to content

Commit 322889a

Browse files
committed
Use power-assert on non-testing code with ts-node
1 parent f940e40 commit 322889a

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ npm install
1111
## Usage
1212

1313
``` sh
14+
npm start
1415
npm test
1516
```
1617

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Example project of power-assert in TypeScript and Node.js",
55
"main": "src/index.ts",
66
"scripts": {
7+
"start": "ts-node --require ./tsnodeconfig src/index.ts",
78
"test": "mocha --require espower-typescript/guess \"test/**/*.ts\""
89
},
910
"directories": {

Diff for: src/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import assert = require('assert')
2+
3+
assert(['a','b','c'].join(':') === 'a:b:c:')

Diff for: tsnodeconfig.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
require('espower-typescript')({
2+
pattern: 'src/**/*',
3+
});

0 commit comments

Comments
 (0)