Skip to content

Commit 3ed887b

Browse files
committed
Update dev-dependencies
1 parent c389feb commit 3ed887b

File tree

12 files changed

+75
-66
lines changed

12 files changed

+75
-66
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"devDependencies": {
5555
"@types/extend": "^3.0.0",
5656
"@types/parse-json": "^4.0.0",
57-
"c8": "^9.0.0",
57+
"c8": "^10.0.0",
5858
"prettier": "^3.0.0",
5959
"remark": "^15.0.0",
6060
"remark-cli": "^12.0.0",
@@ -66,7 +66,7 @@
6666
"unified": "^11.0.0",
6767
"vfile-reporter-json": "^4.0.0",
6868
"vfile-reporter-pretty": "^7.0.0",
69-
"xo": "^0.58.0"
69+
"xo": "^0.59.0"
7070
},
7171
"scripts": {
7272
"build": "tsc --build --clean && tsc --build && type-coverage",

test/completers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import assert from 'node:assert/strict'
66
import fs from 'node:fs/promises'
7-
import {sep} from 'node:path'
7+
import path from 'node:path'
88
import test from 'node:test'
99
import {promisify} from 'node:util'
1010
import {engine} from 'unified-engine'
@@ -129,6 +129,6 @@ test('completers', async function (t) {
129129

130130
assert.equal(code, 0)
131131
assert.equal(document, '')
132-
assert.equal(stderr(), 'foo.txt > nested' + sep + 'foo.txt: written\n')
132+
assert.equal(stderr(), 'foo.txt > nested' + path.sep + 'foo.txt: written\n')
133133
})
134134
})

test/configuration-plugins.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import assert from 'node:assert/strict'
2-
import {sep} from 'node:path'
2+
import path from 'node:path'
33
import test from 'node:test'
44
import {promisify} from 'node:util'
55
import {engine} from 'unified-engine'
@@ -27,7 +27,7 @@ test('configuration (plugins)', async function (t) {
2727
})
2828

2929
assert.equal(code, 0)
30-
assert.equal(stderr(), 'nested' + sep + 'one.txt: no issues found\n')
30+
assert.equal(stderr(), 'nested' + path.sep + 'one.txt: no issues found\n')
3131
assert.equal(globalThis.unifiedEngineTestCalls, 1)
3232
})
3333

test/configuration.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import assert from 'node:assert/strict'
2-
import {sep} from 'node:path'
2+
import path from 'node:path'
33
import test from 'node:test'
44
import {promisify} from 'node:util'
55
import {engine} from 'unified-engine'
@@ -258,8 +258,8 @@ test('configuration', async function (t) {
258258
0,
259259
4,
260260
[
261-
'nested' + sep + 'four.txt: no issues found',
262-
'nested' + sep + 'three.txt: no issues found',
261+
'nested' + path.sep + 'four.txt: no issues found',
262+
'nested' + path.sep + 'three.txt: no issues found',
263263
'one.txt: no issues found',
264264
'two.txt: no issues found',
265265
''
@@ -323,8 +323,8 @@ test('configuration', async function (t) {
323323
0,
324324
4,
325325
[
326-
'nested' + sep + 'four.txt: no issues found',
327-
'nested' + sep + 'three.txt: no issues found',
326+
'nested' + path.sep + 'four.txt: no issues found',
327+
'nested' + path.sep + 'three.txt: no issues found',
328328
'one.txt: no issues found',
329329
'two.txt: no issues found',
330330
''
@@ -351,8 +351,8 @@ test('configuration', async function (t) {
351351
[
352352
0,
353353
[
354-
'nested' + sep + 'three.txt: no issues found',
355-
'nested' + sep + 'two.txt: no issues found',
354+
'nested' + path.sep + 'three.txt: no issues found',
355+
'nested' + path.sep + 'two.txt: no issues found',
356356
'one.txt: no issues found',
357357
''
358358
].join('\n')
@@ -419,7 +419,7 @@ test('configuration', async function (t) {
419419
[
420420
1,
421421
[
422-
'packages' + sep + 'deep' + sep + 'one.txt',
422+
'packages' + path.sep + 'deep' + path.sep + 'one.txt',
423423
' error Cannot process file',
424424
' [cause]:',
425425
' Error: Cannot parse file `package.json`'

test/file-path.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import assert from 'node:assert/strict'
22
import fs from 'node:fs/promises'
3-
import {sep} from 'node:path'
3+
import path from 'node:path'
44
import {PassThrough} from 'node:stream'
55
import test from 'node:test'
66
import {promisify} from 'node:util'
@@ -40,7 +40,7 @@ test('file-path', async function (t) {
4040

4141
const code = await run({
4242
cwd,
43-
filePath: 'foo' + sep + 'bar.baz',
43+
filePath: 'foo' + path.sep + 'bar.baz',
4444
processor: noop,
4545
streamError: stderr.stream,
4646
streamIn: stream,
@@ -49,7 +49,7 @@ test('file-path', async function (t) {
4949

5050
assert.equal(code, 0)
5151
assert.equal(stdout(), '1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n')
52-
assert.equal(stderr(), 'foo' + sep + 'bar.baz: no issues found\n')
52+
assert.equal(stderr(), 'foo' + path.sep + 'bar.baz: no issues found\n')
5353

5454
function send() {
5555
if (++index > 10) {

test/fixtures/config-default/test-defaults.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
const assert = require('node:assert/strict')
55

6+
module.exports = check
7+
68
/**
79
* @this {Processor}
810
* Processor.
@@ -11,7 +13,7 @@ const assert = require('node:assert/strict')
1113
* @returns {undefined}
1214
* Nothing.
1315
*/
14-
module.exports = function (options) {
16+
function check(options) {
1517
assert(typeof globalThis.unifiedEngineTestCalls === 'number')
1618
assert(globalThis.unifiedEngineTestValues)
1719
globalThis.unifiedEngineTestCalls++

test/fixtures/config-default/test-found.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
const assert = require('node:assert/strict')
55

6+
module.exports = check
7+
68
/**
79
* @this {Processor}
810
* Processor.
@@ -11,7 +13,7 @@ const assert = require('node:assert/strict')
1113
* @returns {undefined}
1214
* Nothing.
1315
*/
14-
module.exports = function (options) {
16+
function check(options) {
1517
assert(typeof globalThis.unifiedEngineTestCalls === 'number')
1618
assert(globalThis.unifiedEngineTestValues)
1719
globalThis.unifiedEngineTestCalls++
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
const assert = require('node:assert/strict')
22

3-
module.exports = function () {
3+
module.exports = check
4+
5+
function check() {
46
assert(typeof globalThis.unifiedEngineTestCalls === 'number')
57
globalThis.unifiedEngineTestCalls++
68
}

test/fixtures/config-transform/test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
const assert = require('node:assert/strict')
22

3+
module.exports = check
4+
35
/**
46
* @param {unknown} [options]
57
* Options.
68
* @returns {undefined}
79
* Nothing.
810
*/
9-
module.exports = function (options) {
11+
function check(options) {
1012
assert(typeof globalThis.unifiedEngineTestCalls === 'number')
1113
globalThis.unifiedEngineTestCalls++
1214
globalThis.unifiedEngineTestValues = options

test/ignore.js

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import assert from 'node:assert/strict'
22
import fs from 'node:fs/promises'
33
import {fileURLToPath} from 'node:url'
4-
import {join, relative, sep} from 'node:path'
4+
import path from 'node:path'
55
import test from 'node:test'
66
import {promisify} from 'node:util'
77
import {engine} from 'unified-engine'
@@ -61,7 +61,7 @@ test('ignore', async function (t) {
6161
assert.equal(
6262
stderr(),
6363
[
64-
'nested' + sep + 'three.txt: no issues found',
64+
'nested' + path.sep + 'three.txt: no issues found',
6565
'one.txt: no issues found',
6666
''
6767
].join('\n')
@@ -86,7 +86,7 @@ test('ignore', async function (t) {
8686
assert.equal(
8787
stderr(),
8888
[
89-
'nested' + sep + 'three.txt: no issues found',
89+
'nested' + path.sep + 'three.txt: no issues found',
9090
'one.txt: no issues found',
9191
''
9292
].join('\n')
@@ -108,7 +108,7 @@ test('ignore', async function (t) {
108108
assert.equal(
109109
stderr(),
110110
[
111-
'.hidden' + sep + 'two.txt: no issues found',
111+
'.hidden' + path.sep + 'two.txt: no issues found',
112112
'one.txt: no issues found',
113113
''
114114
].join('\n')
@@ -147,7 +147,7 @@ test('ignore', async function (t) {
147147
assert.equal(
148148
stderr(),
149149
[
150-
'node_modules' + sep + 'two.txt: no issues found',
150+
'node_modules' + path.sep + 'two.txt: no issues found',
151151
'one.txt: no issues found',
152152
''
153153
].join('\n')
@@ -172,8 +172,8 @@ test('ignore', async function (t) {
172172
assert.equal(
173173
stderr(),
174174
[
175-
'nested' + sep + 'three.txt: no issues found',
176-
'nested' + sep + 'two.txt: no issues found',
175+
'nested' + path.sep + 'three.txt: no issues found',
176+
'nested' + path.sep + 'two.txt: no issues found',
177177
'one.txt: no issues found',
178178
''
179179
].join('\n')
@@ -226,7 +226,7 @@ test('ignore', async function (t) {
226226
cwd: new URL('sibling-ignore/', fixtures),
227227
extensions: ['txt'],
228228
files: ['.'],
229-
ignorePath: join('deep', 'ignore'),
229+
ignorePath: path.join('deep', 'ignore'),
230230
ignorePatterns: ['files/two.txt'],
231231
processor: noop,
232232
streamError: stderr.stream
@@ -236,8 +236,8 @@ test('ignore', async function (t) {
236236
assert.equal(
237237
stderr(),
238238
[
239-
join('deep', 'files', 'two.txt') + ': no issues found',
240-
join('files', 'one.txt') + ': no issues found',
239+
path.join('deep', 'files', 'two.txt') + ': no issues found',
240+
path.join('files', 'one.txt') + ': no issues found',
241241
''
242242
].join('\n')
243243
)
@@ -251,7 +251,7 @@ test('ignore', async function (t) {
251251
cwd: new URL('sibling-ignore/', fixtures),
252252
extensions: ['txt'],
253253
files: ['.'],
254-
ignorePath: join('deep', 'ignore'),
254+
ignorePath: path.join('deep', 'ignore'),
255255
ignorePathResolveFrom: 'cwd',
256256
processor: noop,
257257
streamError: stderr.stream
@@ -261,9 +261,9 @@ test('ignore', async function (t) {
261261
assert.equal(
262262
stderr(),
263263
[
264-
join('deep', 'files', 'one.txt') + ': no issues found',
265-
join('deep', 'files', 'two.txt') + ': no issues found',
266-
join('files', 'two.txt') + ': no issues found',
264+
path.join('deep', 'files', 'one.txt') + ': no issues found',
265+
path.join('deep', 'files', 'two.txt') + ': no issues found',
266+
path.join('files', 'two.txt') + ': no issues found',
267267
''
268268
].join('\n')
269269
)
@@ -288,7 +288,8 @@ test('ignore', async function (t) {
288288
assert.equal(code, 0)
289289
assert.equal(
290290
stderr(),
291-
relative(fileURLToPath(cwd), fileURLToPath(url)) + ': no issues found\n'
291+
path.relative(fileURLToPath(cwd), fileURLToPath(url)) +
292+
': no issues found\n'
292293
)
293294
})
294295
})

0 commit comments

Comments
 (0)