@@ -2,7 +2,7 @@ import { pickObj } from '@zardoy/utils'
22import type { } from 'vitest/globals'
33import _ from 'lodash'
44import { isGoodPositionMethodCompletion } from '../src/completions/isGoodPositionMethodCompletion'
5- import { findChildContainingExactPosition } from '../src/utils'
5+ import { findChildContainingExactPosition , isTs5 } from '../src/utils'
66import handleCommand from '../src/specialCommands/handle'
77import constructMethodSnippet from '../src/constructMethodSnippet'
88import { defaultConfigFunc , entrypoint , settingsOverride , sharedLanguageService } from './shared'
@@ -462,8 +462,9 @@ test('Fix properties sorting', () => {
462462 settingsOverride . fixSuggestionsSorting = false
463463} )
464464
465- // ts 5
466- test . todo ( 'Change to function kind' , ( ) => {
465+ const testTs5 = isTs5 ( ) ? test : test . todo
466+
467+ testTs5 ( 'Change to function kind' , ( ) => {
467468 settingsOverride [ 'experiments.changeKindToFunction' ] = true
468469 overrideSettings ( {
469470 'experiments.changeKindToFunction' : true ,
@@ -484,12 +485,12 @@ test.todo('Change to function kind', () => {
484485 settingsOverride [ 'experiments.changeKindToFunction' ] = false
485486} )
486487
487- // ts 5
488- test . todo ( 'Filter JSX Components' , ( ) => {
488+ testTs5 ( 'Filter JSX Components' , ( ) => {
489489 const tester = fourslashLikeTester ( /* ts */ `
490490 const a = () => {}
491491 a/*1*/
492492 ` )
493+ // TODO
493494} )
494495
495496test ( 'Omit<..., ""> suggestions' , ( ) => {
0 commit comments