Skip to content

Commit a7737cd

Browse files
committed
Update dependencies
Also remove it-first dependency.
1 parent dc405ef commit a7737cd

File tree

4 files changed

+339
-219
lines changed

4 files changed

+339
-219
lines changed

lib/runner.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import process from 'node:process';
22
import {pathToFileURL} from 'node:url';
33

44
import Emittery from 'emittery';
5-
import matcher from 'matcher';
5+
import {matcher} from 'matcher';
66

77
import ContextRef from './context-ref.js';
88
import createChain from './create-chain.js';
@@ -110,7 +110,7 @@ export default class Runner extends Emittery {
110110
}
111111

112112
// --match selects TODO tests.
113-
if (this.match.length > 0 && matcher([title.value], this.match).length === 1) {
113+
if (this.match.length > 0 && matcher(title.value, this.match).length === 1) {
114114
metadata.exclusive = true;
115115
this.runOnlyExclusive = true;
116116
}
@@ -160,7 +160,7 @@ export default class Runner extends Emittery {
160160
if (metadata.type === 'test') {
161161
if (this.match.length > 0) {
162162
// --match overrides .only()
163-
task.metadata.exclusive = matcher([title.value], this.match).length === 1;
163+
task.metadata.exclusive = matcher(title.value, this.match).length === 1;
164164
}
165165

166166
if (task.metadata.exclusive) {

0 commit comments

Comments
 (0)