Skip to content

Commit b54c8cc

Browse files
authored
fix(dev-deps): updated mocha, standard, & tsd (#43)
* fix(ci): accidentally forgot the pull_request trigger * fix(dev-deps): updated mocha, standard, & tsd
1 parent 30cca1f commit b54c8cc

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Test
22
on:
3+
pull_request:
34
push:
45
branches:
56
- main

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
},
2828
"scripts": {
2929
"test": "mocha && tsd",
30+
"test:types": "tsd",
3031
"lint": "standard",
3132
"debug": "mocha --inspect --inspect-brk --timeout=0",
3233
"prepublishOnly": "npm t",
@@ -41,10 +42,10 @@
4142
},
4243
"devDependencies": {
4344
"gen-esm-wrapper": "^1.1.0",
44-
"mocha": "^9.1.3",
45-
"standard": "^16.0.4",
45+
"mocha": "^9.2.2",
46+
"standard": "^17.1.2",
4647
"standard-version": "^9.3.2",
47-
"tsd": "^0.19.0"
48+
"tsd": "^0.27.0"
4849
},
4950
"bin": {
5051
"nv": "./bin/nv"

test/cli.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ const cwd = path.join(__dirname, '..')
99

1010
suite('nv cli', () => {
1111
test('should contain help information', () => {
12-
const result = execFileSync(nv, ['--help'], { cwd: cwd }).toString()
12+
const result = execFileSync(nv, ['--help'], { cwd }).toString()
1313
assert.ok(result.includes('List Node.js versions'))
1414
})
1515

1616
test('should contain information about version 8', () => {
17-
const result = JSON.parse(execFileSync(nv, ['ls', '8'], { cwd: cwd }).toString())
17+
const result = JSON.parse(execFileSync(nv, ['ls', '8'], { cwd }).toString())
1818
assert.strictEqual(result.codename, 'carbon')
1919
})
2020
test('should contain output newline json', () => {
21-
const result = execFileSync(nv, ['ls', '8.x', '--no-pretty-json'], { cwd: cwd })
21+
const result = execFileSync(nv, ['ls', '8.x', '--no-pretty-json'], { cwd })
2222
.toString().trim().split('\n')
2323
.map((line) => JSON.parse(line))
2424

@@ -28,7 +28,7 @@ suite('nv cli', () => {
2828
})
2929
})
3030
test('should only contain the latest of each major', () => {
31-
const result = execFileSync(nv, ['ls', '16.x || 18.x', '--no-pretty-json', '--latest-of-major-only'], { cwd: cwd })
31+
const result = execFileSync(nv, ['ls', '16.x || 18.x', '--no-pretty-json', '--latest-of-major-only'], { cwd })
3232
.toString().trim().split('\n')
3333
.map((line) => JSON.parse(line))
3434

0 commit comments

Comments
 (0)