Whether `source`, imported in a file of `language`, is an ES module specifier written as a name, not a path.
(source: string, language: Language)
| 3707 | |
| 3708 | /** Whether `source`, imported in a file of `language`, is an ES module specifier written as a name, not a path. */ |
| 3709 | function isBareModuleSpecifier(source: string, language: Language): boolean { |
| 3710 | return ESM_IMPORT_LANGUAGES.has(language) && !source.startsWith('.') && !source.startsWith('/'); |
| 3711 | } |
| 3712 | |
| 3713 | /** |
| 3714 | * Whether `specifier`, resolving to `file` from `ref`'s file, names a module of |
no test coverage detected