Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Commit

Permalink
update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent RENARD authored and Laurent RENARD committed Oct 31, 2019
1 parent d4c14bc commit 1772e45
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 17 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ A test being:

</details>

* Support esm module syntax with no extra bundling step (thanks to [esm module](https://www.npmjs.com/package/esm))
* Support esm module syntax with no extra bundling step (thanks to [esm module](https://www.npmjs.com/package/esm)) - we could eventually consider to remove it from the package and use node's require hook instead (``node -r esm myFile.js``), but for now using ESM syntax seems to be a common enough practice to embed esm as a dependency

* Effective reporters, perfect to find out about errors ("where", "what" and "why"). Not extra noise, fancy code highlights, etc ... straight to the point!

Expand Down Expand Up @@ -122,14 +122,20 @@ Example with [tap-mocha-reporter](https://www.npmjs.com/package/tap-mocha-report

``pta -r tap-indent | tap-mocha-reporter classic``

## Typescript

We recommend to use [ts-node](https://github.com/TypeStrong/ts-node)

``ts-node ./node_modules/.bin/pta [...args]``

## Code coverage

We recommend to use [c8](https://www.npmjs.com/package/c8):

``c8 pta``
``c8 pta [...args]``

## Watch mode

We recommend to use

``chokidar-cli "{src,test}/*.js" -c "pta"``
``chokidar-cli "{src,test}/*.js" -c "pta [...args]"``
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
"esm": "^3.2.25",
"fast-glob": "^3.1.0",
"kleur": "^3.0.3",
"zora": "^3.1.3"
"zora": "^3.1.4"
},
"devDependencies": {
"c8": "^6.0.0"
"c8": "^6.0.1"
}
}

0 comments on commit 1772e45

Please sign in to comment.