@@ -2,7 +2,7 @@ import { pickObj } from '@zardoy/utils'
2
2
import type { } from 'vitest/globals'
3
3
import _ from 'lodash'
4
4
import { isGoodPositionMethodCompletion } from '../src/completions/isGoodPositionMethodCompletion'
5
- import { findChildContainingExactPosition } from '../src/utils'
5
+ import { findChildContainingExactPosition , isTs5 } from '../src/utils'
6
6
import handleCommand from '../src/specialCommands/handle'
7
7
import constructMethodSnippet from '../src/constructMethodSnippet'
8
8
import { defaultConfigFunc , entrypoint , settingsOverride , sharedLanguageService } from './shared'
@@ -462,8 +462,9 @@ test('Fix properties sorting', () => {
462
462
settingsOverride . fixSuggestionsSorting = false
463
463
} )
464
464
465
- // ts 5
466
- test . todo ( 'Change to function kind' , ( ) => {
465
+ const testTs5 = isTs5 ( ) ? test : test . todo
466
+
467
+ testTs5 ( 'Change to function kind' , ( ) => {
467
468
settingsOverride [ 'experiments.changeKindToFunction' ] = true
468
469
overrideSettings ( {
469
470
'experiments.changeKindToFunction' : true ,
@@ -484,12 +485,12 @@ test.todo('Change to function kind', () => {
484
485
settingsOverride [ 'experiments.changeKindToFunction' ] = false
485
486
} )
486
487
487
- // ts 5
488
- test . todo ( 'Filter JSX Components' , ( ) => {
488
+ testTs5 ( 'Filter JSX Components' , ( ) => {
489
489
const tester = fourslashLikeTester ( /* ts */ `
490
490
const a = () => {}
491
491
a/*1*/
492
492
` )
493
+ // TODO
493
494
} )
494
495
495
496
test ( 'Omit<..., ""> suggestions' , ( ) => {
0 commit comments