Even though the compiler accepts my current solution without any errors, the tests are still failing with the message "ReferenceError: myFunction is not defined".
I am interested in testing the functionality of the following module using TypeScript: File1.ts:
module MyModule {
export function myFunction(): string {
return "Hello, World!";
}
}
Here is how the test setup currently looks like: File1.test.ts:
module MyModule {
describe('Test1', () => {
test('equal', () => {
expect(myFunction()).toBe("Hello, World!");
});
});
}
Both files are included in the tsconfig.json file:
"files":[
"File1.test.ts",
"File1.ts"
]
I would appreciate any advice or assistance to resolve this issue. Thank you!