File tree 4 files changed +339
-219
lines changed
test/shared-workers/workers-are-loaded-once/fixtures 4 files changed +339
-219
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import process from 'node:process';
2
2
import { pathToFileURL } from 'node:url' ;
3
3
4
4
import Emittery from 'emittery' ;
5
- import matcher from 'matcher' ;
5
+ import { matcher } from 'matcher' ;
6
6
7
7
import ContextRef from './context-ref.js' ;
8
8
import createChain from './create-chain.js' ;
@@ -110,7 +110,7 @@ export default class Runner extends Emittery {
110
110
}
111
111
112
112
// --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 ) {
114
114
metadata . exclusive = true ;
115
115
this . runOnlyExclusive = true ;
116
116
}
@@ -160,7 +160,7 @@ export default class Runner extends Emittery {
160
160
if ( metadata . type === 'test' ) {
161
161
if ( this . match . length > 0 ) {
162
162
// --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 ;
164
164
}
165
165
166
166
if ( task . metadata . exclusive ) {
You can’t perform that action at this time.
0 commit comments