Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
Also remove it-first dependency.
  • Loading branch information
novemberborn committed Nov 1, 2021
1 parent dc405ef commit a7737cd
Show file tree
Hide file tree
Showing 4 changed files with 339 additions and 219 deletions.
6 changes: 3 additions & 3 deletions lib/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import process from 'node:process';
import {pathToFileURL} from 'node:url';

import Emittery from 'emittery';
import matcher from 'matcher';
import {matcher} from 'matcher';

import ContextRef from './context-ref.js';
import createChain from './create-chain.js';
Expand Down Expand Up @@ -110,7 +110,7 @@ export default class Runner extends Emittery {
}

// --match selects TODO tests.
if (this.match.length > 0 && matcher([title.value], this.match).length === 1) {
if (this.match.length > 0 && matcher(title.value, this.match).length === 1) {
metadata.exclusive = true;
this.runOnlyExclusive = true;
}
Expand Down Expand Up @@ -160,7 +160,7 @@ export default class Runner extends Emittery {
if (metadata.type === 'test') {
if (this.match.length > 0) {
// --match overrides .only()
task.metadata.exclusive = matcher([title.value], this.match).length === 1;
task.metadata.exclusive = matcher(title.value, this.match).length === 1;
}

if (task.metadata.exclusive) {
Expand Down
Loading

0 comments on commit a7737cd

Please sign in to comment.