File tree Expand file tree Collapse file tree 1 file changed +23
-21
lines changed Expand file tree Collapse file tree 1 file changed +23
-21
lines changed Original file line number Diff line number Diff line change @@ -1272,29 +1272,31 @@ const { defaultFilesFactory, createPage } = require('./testsTools.js');
1272
1272
}
1273
1273
1274
1274
1275
- test ( 'should properly handle search string in path' , async ( ) => {
1275
+ if ( vueTarget === 3 ) { // no point in testing it for vue2
1276
+ test ( 'should properly handle search string in path' , async ( ) => {
1276
1277
1277
- const { page, output } = await createPage ( {
1278
- files : {
1279
- ...files ,
1280
- '/components/comp1.vue' : `
1281
- <template>1</template>
1282
- ` ,
1283
- '/components/comp2.vue' : `
1284
- <template>2</template>
1285
- ` ,
1286
- '/main.vue' : `
1287
- <script setup>
1288
- import comp1 from './components/comp1.vue?a=1.txt'
1289
- import comp2 from './components/comp2.vue?a=/2'
1290
- </script>
1291
- <template><comp1/><comp2/></template>
1292
- ` ,
1293
- }
1294
- } ) ;
1278
+ const { page, output } = await createPage ( {
1279
+ files : {
1280
+ ...files ,
1281
+ '/components/comp1.vue' : `
1282
+ <template>1</template>
1283
+ ` ,
1284
+ '/components/comp2.vue' : `
1285
+ <template>2</template>
1286
+ ` ,
1287
+ '/main.vue' : `
1288
+ <script setup>
1289
+ import comp1 from './components/comp1.vue?a=1.txt'
1290
+ import comp2 from './components/comp2.vue?a=/2'
1291
+ </script>
1292
+ <template><comp1/><comp2/></template>
1293
+ ` ,
1294
+ }
1295
+ } ) ;
1295
1296
1296
- await expect ( page . $eval ( '#app' , el => el . textContent . trim ( ) ) ) . resolves . toBe ( '12' ) ;
1297
- } ) ;
1297
+ await expect ( page . $eval ( '#app' , el => el . textContent . trim ( ) ) ) . resolves . toBe ( '12' ) ;
1298
+ } ) ;
1299
+ }
1298
1300
1299
1301
1300
1302
You can’t perform that action at this time.
0 commit comments