Skip to content

Commit c7c44de

Browse files
committed
fix(jest-runner-docs): handle errors in postHook
Signed-off-by: Charlike Mike Reagent <opensource@tunnckocore.com>
1 parent d3f910d commit c7c44de

33 files changed

Lines changed: 502 additions & 382 deletions

File tree

@tunnckocore/babel-preset/.verb.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
<!-- docks-start -->
22
<!-- docks-end -->
3+
4+

@tunnckocore/babel-preset/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ Project is [semantically](https://semver.org) versioned & automatically released
5656

5757
- [Install](#install)
5858
- [Contributing](#contributing)
59-
- [Guides and Community](#guides-and-community)
60-
- [Support the project](#support-the-project)
61-
- [OPEN Open Source](#open-open-source)
62-
- [Wonderful Contributors](#wonderful-contributors)
59+
* [Guides and Community](#guides-and-community)
60+
* [Support the project](#support-the-project)
61+
* [OPEN Open Source](#open-open-source)
62+
* [Wonderful Contributors](#wonderful-contributors)
6363
- [License](#license)
6464

6565
_(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_
@@ -140,6 +140,7 @@ Released under the [MPL-2.0 License][license-url].
140140

141141
[npmv-url]: https://www.npmjs.com/package/@tunnckocore/babel-preset
142142
[npmv-img]: https://badgen.net/npm/v/@tunnckocore/babel-preset?icon=npm
143+
143144
[nodejs-img]: https://badgen.net/npm/node/@tunnckocore/babel-preset
144145

145146
<!--
@@ -168,9 +169,11 @@ Released under the [MPL-2.0 License][license-url].
168169
[community-url]: https://github.com/tunnckocorehq/community
169170
[last-commit-img]: https://badgen.net/github/last-commit/tunnckoCore/opensource/master
170171
[last-commit-url]: https://github.com/tunnckoCore/opensource/commits/master
172+
171173
[downloads-weekly-img]: https://badgen.net/npm/dw/@tunnckocore/babel-preset?icon=npm
172174
[downloads-monthly-img]: https://badgen.net/npm/dm/@tunnckocore/babel-preset?icon=npm
173175
[downloads-total-img]: https://badgen.net/npm/dt/@tunnckocore/babel-preset?icon=npm
176+
174177
[renovateapp-url]: https://renovatebot.com
175178
[renovateapp-img]: https://badgen.net/badge/renovate/enabled/green
176179
[prs-welcome-img]: https://badgen.net/badge/PRs/welcome/green
@@ -208,3 +211,4 @@ Released under the [MPL-2.0 License][license-url].
208211
[tunnckocore_security]: https://badgen.net/https/liam-badge-daknys6gadky.runkit.sh/com/security/tunnckocore?label&color=ed1848&icon=https://svgshare.com/i/Dt6.svg
209212
[tunnckocore_opensource]: https://badgen.net/https/liam-badge-daknys6gadky.runkit.sh/com/opensource/tunnckocore?label&color=ff7a2f&icon=https://svgshare.com/i/Dt6.svg
210213
[tunnckocore_newsletter]: https://badgen.net/https/liam-badge-daknys6gadky.runkit.sh/com/newsletter/tunnckocore?label&color=5199FF&icon=https://svgshare.com/i/Dt6.svg
214+
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
<!-- docks-start -->
22
<!-- docks-end -->
3+
4+

@tunnckocore/browserslist-config/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ Project is [semantically](https://semver.org) versioned & automatically released
5656

5757
- [Install](#install)
5858
- [Contributing](#contributing)
59-
- [Guides and Community](#guides-and-community)
60-
- [Support the project](#support-the-project)
61-
- [OPEN Open Source](#open-open-source)
62-
- [Wonderful Contributors](#wonderful-contributors)
59+
* [Guides and Community](#guides-and-community)
60+
* [Support the project](#support-the-project)
61+
* [OPEN Open Source](#open-open-source)
62+
* [Wonderful Contributors](#wonderful-contributors)
6363
- [License](#license)
6464

6565
_(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_
@@ -140,6 +140,7 @@ Released under the [MPL-2.0 License][license-url].
140140

141141
[npmv-url]: https://www.npmjs.com/package/@tunnckocore/browserslist-config
142142
[npmv-img]: https://badgen.net/npm/v/@tunnckocore/browserslist-config?icon=npm
143+
143144
[nodejs-img]: https://badgen.net/npm/node/@tunnckocore/browserslist-config
144145

145146
<!--
@@ -168,9 +169,11 @@ Released under the [MPL-2.0 License][license-url].
168169
[community-url]: https://github.com/tunnckocorehq/community
169170
[last-commit-img]: https://badgen.net/github/last-commit/tunnckoCore/opensource/master
170171
[last-commit-url]: https://github.com/tunnckoCore/opensource/commits/master
172+
171173
[downloads-weekly-img]: https://badgen.net/npm/dw/@tunnckocore/browserslist-config?icon=npm
172174
[downloads-monthly-img]: https://badgen.net/npm/dm/@tunnckocore/browserslist-config?icon=npm
173175
[downloads-total-img]: https://badgen.net/npm/dt/@tunnckocore/browserslist-config?icon=npm
176+
174177
[renovateapp-url]: https://renovatebot.com
175178
[renovateapp-img]: https://badgen.net/badge/renovate/enabled/green
176179
[prs-welcome-img]: https://badgen.net/badge/PRs/welcome/green
@@ -208,3 +211,4 @@ Released under the [MPL-2.0 License][license-url].
208211
[tunnckocore_security]: https://badgen.net/https/liam-badge-daknys6gadky.runkit.sh/com/security/tunnckocore?label&color=ed1848&icon=https://svgshare.com/i/Dt6.svg
209212
[tunnckocore_opensource]: https://badgen.net/https/liam-badge-daknys6gadky.runkit.sh/com/opensource/tunnckocore?label&color=ff7a2f&icon=https://svgshare.com/i/Dt6.svg
210213
[tunnckocore_newsletter]: https://badgen.net/https/liam-badge-daknys6gadky.runkit.sh/com/newsletter/tunnckocore?label&color=5199FF&icon=https://svgshare.com/i/Dt6.svg
214+
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
<!-- docks-start -->
22
<!-- docks-end -->
3+
4+

@tunnckocore/create-jest-runner/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ Project is [semantically](https://semver.org) versioned & automatically released
5656

5757
- [Install](#install)
5858
- [Contributing](#contributing)
59-
- [Guides and Community](#guides-and-community)
60-
- [Support the project](#support-the-project)
61-
- [OPEN Open Source](#open-open-source)
62-
- [Wonderful Contributors](#wonderful-contributors)
59+
* [Guides and Community](#guides-and-community)
60+
* [Support the project](#support-the-project)
61+
* [OPEN Open Source](#open-open-source)
62+
* [Wonderful Contributors](#wonderful-contributors)
6363
- [License](#license)
6464

6565
_(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_
@@ -140,6 +140,7 @@ Released under the [MPL-2.0 License][license-url].
140140

141141
[npmv-url]: https://www.npmjs.com/package/@tunnckocore/create-jest-runner
142142
[npmv-img]: https://badgen.net/npm/v/@tunnckocore/create-jest-runner?icon=npm
143+
143144
[nodejs-img]: https://badgen.net/npm/node/@tunnckocore/create-jest-runner
144145

145146
<!--
@@ -168,9 +169,11 @@ Released under the [MPL-2.0 License][license-url].
168169
[community-url]: https://github.com/tunnckocorehq/community
169170
[last-commit-img]: https://badgen.net/github/last-commit/tunnckoCore/opensource/master
170171
[last-commit-url]: https://github.com/tunnckoCore/opensource/commits/master
172+
171173
[downloads-weekly-img]: https://badgen.net/npm/dw/@tunnckocore/create-jest-runner?icon=npm
172174
[downloads-monthly-img]: https://badgen.net/npm/dm/@tunnckocore/create-jest-runner?icon=npm
173175
[downloads-total-img]: https://badgen.net/npm/dt/@tunnckocore/create-jest-runner?icon=npm
176+
174177
[renovateapp-url]: https://renovatebot.com
175178
[renovateapp-img]: https://badgen.net/badge/renovate/enabled/green
176179
[prs-welcome-img]: https://badgen.net/badge/PRs/welcome/green
@@ -208,3 +211,4 @@ Released under the [MPL-2.0 License][license-url].
208211
[tunnckocore_security]: https://badgen.net/https/liam-badge-daknys6gadky.runkit.sh/com/security/tunnckocore?label&color=ed1848&icon=https://svgshare.com/i/Dt6.svg
209212
[tunnckocore_opensource]: https://badgen.net/https/liam-badge-daknys6gadky.runkit.sh/com/opensource/tunnckocore?label&color=ff7a2f&icon=https://svgshare.com/i/Dt6.svg
210213
[tunnckocore_newsletter]: https://badgen.net/https/liam-badge-daknys6gadky.runkit.sh/com/newsletter/tunnckocore?label&color=5199FF&icon=https://svgshare.com/i/Dt6.svg
214+
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
<!-- docks-start -->
22
<!-- docks-end -->
3+
4+

@tunnckocore/eslint-config/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ Project is [semantically](https://semver.org) versioned & automatically released
5656

5757
- [Install](#install)
5858
- [Contributing](#contributing)
59-
- [Guides and Community](#guides-and-community)
60-
- [Support the project](#support-the-project)
61-
- [OPEN Open Source](#open-open-source)
62-
- [Wonderful Contributors](#wonderful-contributors)
59+
* [Guides and Community](#guides-and-community)
60+
* [Support the project](#support-the-project)
61+
* [OPEN Open Source](#open-open-source)
62+
* [Wonderful Contributors](#wonderful-contributors)
6363
- [License](#license)
6464

6565
_(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_
@@ -140,6 +140,7 @@ Released under the [MPL-2.0 License][license-url].
140140

141141
[npmv-url]: https://www.npmjs.com/package/@tunnckocore/eslint-config
142142
[npmv-img]: https://badgen.net/npm/v/@tunnckocore/eslint-config?icon=npm
143+
143144
[nodejs-img]: https://badgen.net/npm/node/@tunnckocore/eslint-config
144145

145146
<!--
@@ -168,9 +169,11 @@ Released under the [MPL-2.0 License][license-url].
168169
[community-url]: https://github.com/tunnckocorehq/community
169170
[last-commit-img]: https://badgen.net/github/last-commit/tunnckoCore/opensource/master
170171
[last-commit-url]: https://github.com/tunnckoCore/opensource/commits/master
172+
171173
[downloads-weekly-img]: https://badgen.net/npm/dw/@tunnckocore/eslint-config?icon=npm
172174
[downloads-monthly-img]: https://badgen.net/npm/dm/@tunnckocore/eslint-config?icon=npm
173175
[downloads-total-img]: https://badgen.net/npm/dt/@tunnckocore/eslint-config?icon=npm
176+
174177
[renovateapp-url]: https://renovatebot.com
175178
[renovateapp-img]: https://badgen.net/badge/renovate/enabled/green
176179
[prs-welcome-img]: https://badgen.net/badge/PRs/welcome/green
@@ -208,3 +211,4 @@ Released under the [MPL-2.0 License][license-url].
208211
[tunnckocore_security]: https://badgen.net/https/liam-badge-daknys6gadky.runkit.sh/com/security/tunnckocore?label&color=ed1848&icon=https://svgshare.com/i/Dt6.svg
209212
[tunnckocore_opensource]: https://badgen.net/https/liam-badge-daknys6gadky.runkit.sh/com/opensource/tunnckocore?label&color=ff7a2f&icon=https://svgshare.com/i/Dt6.svg
210213
[tunnckocore_newsletter]: https://badgen.net/https/liam-badge-daknys6gadky.runkit.sh/com/newsletter/tunnckocore?label&color=5199FF&icon=https://svgshare.com/i/Dt6.svg
214+

@tunnckocore/execa/.verb.md

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ instead of in parallel which is the default behavior.
1717
**Signature**
1818

1919
```ts
20-
function(cmds, options)
20+
function(cmds, options)
2121
```
2222

2323
**Params**
@@ -27,7 +27,7 @@ function(cmds, options)
2727
- `returns` - resolved or rejected promises
2828

2929
> It also can accept array of multiple strings of commands that will be
30-
> executed in series or in parallel (default).
30+
executed in series or in parallel (default).
3131

3232
**Example**
3333

@@ -40,13 +40,10 @@ async function main() {
4040
await exec('echo "hello world"', { stdio: 'inherit' });
4141
4242
// executes in series (because `concurrency` option is set to `1`)
43-
await exec(
44-
[
45-
'prettier-eslint --write foobar.js',
46-
'eslint --format codeframe foobar.js --fix',
47-
],
48-
{ stdio: 'inherit', preferLocal: true, concurrency: 1 },
49-
);
43+
await exec([
44+
'prettier-eslint --write foobar.js',
45+
'eslint --format codeframe foobar.js --fix'
46+
], { stdio: 'inherit', preferLocal: true, concurrency: 1 });
5047
}
5148
5249
main();
@@ -59,7 +56,7 @@ Similar to `exec`, but also **can** access the system's environment variables fr
5956
**Signature**
6057

6158
```ts
62-
function(cmds, options)
59+
function(cmds, options)
6360
```
6461

6562
**Params**
@@ -68,6 +65,8 @@ function(cmds, options)
6865
- `options` - directly passed to `execa`
6966
- `returns` - resolved or rejected promises
7067

68+
69+
7170
**Example**
7271

7372
```js
@@ -77,13 +76,18 @@ import { shell } from '@tunnckocore/execa';
7776
7877
async function main() {
7978
// executes in series
80-
await shell(['echo unicorns', 'echo "foo-$HOME-bar"', 'echo dragons'], {
81-
stdio: 'inherit',
82-
});
79+
await shell([
80+
'echo unicorns',
81+
'echo "foo-$HOME-bar"',
82+
'echo dragons'
83+
], { stdio: 'inherit' });
8384
8485
// exits with code 3
8586
try {
86-
await shell(['exit 3', 'echo nah']);
87+
await shell([
88+
'exit 3',
89+
'echo nah'
90+
]);
8791
} catch (er) {
8892
console.error(er);
8993
// => {
@@ -110,7 +114,7 @@ Think of this as a mix of `child_process.execFile()` and `child_process.spawn()`
110114
**Signature**
111115

112116
```ts
113-
function(file, args, options)
117+
function(file, args, options)
114118
```
115119

116120
**Params**
@@ -119,10 +123,12 @@ function(file, args, options)
119123
- `args` - arguments / flags to be passed to `file`
120124
- `options` - optional options, passed to `child_process`'s methods
121125

126+
127+
122128
**Example**
123129

124130
```js
125-
import execa from '@tunnckocore/execa';
131+
import execa from '@tunnckocore/execa'
126132
// or
127133
// const execa = require('@tunnckocore/execa');
128134
@@ -134,3 +140,5 @@ main();
134140
```
135141

136142
<!-- docks-end -->
143+
144+

0 commit comments

Comments
 (0)