Skip to content

Commit 12acde4

Browse files
committed
fixed typings
1 parent cb20916 commit 12acde4

File tree

3 files changed

+38
-4
lines changed

3 files changed

+38
-4
lines changed

.github/workflows/publish-node.js.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Publish
5+
6+
on:
7+
release:
8+
types: [published]
9+
jobs:
10+
publish:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
with:
17+
ref: ${{ github.event.release.target_commitish }}
18+
- uses: actions/setup-node@v2
19+
with:
20+
node-version: 16
21+
cache: 'npm'
22+
- run: git config --global user.name "GitHub CD bot"
23+
- run: git config --global user.email "[email protected]"
24+
- run: npm version ${{ github.event.release.tag_name }}
25+
- uses: JS-DevTools/npm-publish@v1
26+
with:
27+
token: ${{ secrets.NPM_TOKEN }}
28+
29+
# push the version changes to GitHub
30+
- run: git push
31+
env:
32+
# The secret is passed automatically. Nothing to configure.
33+
github-token: ${{ secrets.GITHUB_TOKEN }}

helper.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,19 @@ class Helper {
5858

5959
/**
6060
* Hook executed before each test.
61-
* @param {Mocha.Test} test
61+
* @param {Mocha.Test} [test]
6262
* @protected
6363
*/
64-
_before(test) {
64+
_before(test = null) {
6565

6666
}
6767

6868
/**
6969
* Hook executed after each test
70+
* @param {Mocha.Test} [test]
7071
* @protected
7172
*/
72-
_after() {
73+
_after(test = null) {
7374

7475
}
7576

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codeceptjs/helper",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "Base class for CodeceptJS helpers",
55
"main": "helper.js",
66
"files": [

0 commit comments

Comments
 (0)