Within a certain namespace, I have created a method like so:
// main.ts
namespace testControl {
export const isInternalLink = (link: string) => {
return true;
}
}
I also have a jest spec as shown below:
// main.spec.ts
test('should return false when provided with an external link', () => {
// How can I utilize testControl.isInternalLink within this test?
});
I attempted to add the following:
/// <reference path="./main.ts"/>
I also tried enclosing the test within the same namespace