@@ -91,6 +91,7 @@ function pluginTester({
91
91
fixture,
92
92
testFilepath : testFilename = fixture || filename ,
93
93
} = mergeWith ( { } , testerConfig , toTestConfig ( testConfig ) , mergeCustomizer )
94
+
94
95
assert (
95
96
( ! skip && ! only ) || skip !== only ,
96
97
'Cannot enable both skip and only on a test' ,
@@ -300,7 +301,13 @@ const createFixtureTests = (fixturesDir, options) => {
300
301
return
301
302
}
302
303
303
- it ( blockTitle , async ( ) => {
304
+ const { only, skip, title} = localFixtureOptions
305
+
306
+ assert (
307
+ ( ! skip && ! only ) || skip !== only ,
308
+ 'Cannot enable both skip and only on a test' ,
309
+ )
310
+ ; ( only ? it . only : skip ? it . skip : it ) ( title || blockTitle , async ( ) => {
304
311
const {
305
312
plugin,
306
313
pluginOptions,
@@ -311,9 +318,11 @@ const createFixtureTests = (fixturesDir, options) => {
311
318
...rest
312
319
} = options
313
320
314
- const hasBabelrc = [ '.babelrc' , '.babelrc.js' , '.babelrc.cjs' ] . some (
315
- babelrc => fs . existsSync ( path . join ( fixtureDir , babelrc ) ) ,
316
- )
321
+ const hasBabelrc = [
322
+ '.babelrc' ,
323
+ '.babelrc.js' ,
324
+ '.babelrc.cjs' ,
325
+ ] . some ( babelrc => fs . existsSync ( path . join ( fixtureDir , babelrc ) ) )
317
326
318
327
const { babelOptions} = mergeWith (
319
328
{ } ,
0 commit comments