In Typescript it is possible to specify that something is only a "type" import - that is it gets elided at runtime, which means that the code below is an error:
import type { TestFunc } from '../types';
describe(TestFunc, () => {});
since TestFunc is just a type and can't be used as a value. But prefer-describe-function-title insists on converting the string TestFunc into an identifier:
import type { TestFunc } from '../types';
describe('TestFunc', () => {}); // is highlighted as an error
In Typescript it is possible to specify that something is only a "type" import - that is it gets elided at runtime, which means that the code below is an error:
since
TestFuncis just a type and can't be used as a value. Butprefer-describe-function-titleinsists on converting the stringTestFuncinto an identifier: