Testing Troubles
I'm a beginner in the world of testing and I'm facing some challenges. Despite going through all the documentation on jest, I couldn't find information specific to TypeScript cases. Currently, I'm on a quest to figure things out and learn as much as I can. My goal is to create a simple test to verify if my code functions as expected.
jest.mock('moment', () => {
return {
toLocaleString: jest.fn().mockReturnValue('test')
}
});
...
The issue I'm encountering can be seen https://i.stack.imgur.com/JzlTp.png
I'm determined to unravel this puzzle and improve my understanding of testing methodologies and best practices.