Snippet.ts
export class Snippet {
public async processData(data): Promise<any> {
//processing logic
}
}
Snippet.spec.ts
//correctly imported Snippet class
describe('testing', async () =>{
it('ProcessData test call', async ()=>{
let result = await Snippet.processData(data:any) //this line shows error as processData does not exist on type 'typeof SnippetService'
});
});
Although the Snippet class has been imported correctly, there seems to be an issue with calling the function within the Snippet.spec.ts.