
committed by
Igor Minar

parent
83c1383701
commit
83d207d0a7
@ -91,7 +91,8 @@ describe('Symbols', () => {
|
||||
});
|
||||
|
||||
it('should be able to resolve any symbol in core global scope', () => {
|
||||
const core = program.getSourceFiles().find(source => source.fileName.endsWith('lib.d.ts'));
|
||||
const core = (program.getSourceFiles() as ts.SourceFile[])
|
||||
.find(source => source.fileName.endsWith('lib.d.ts'));
|
||||
expect(core).toBeDefined();
|
||||
const visit = (node: ts.Node): boolean => {
|
||||
switch (node.kind) {
|
||||
|
Reference in New Issue
Block a user