I'm encountering a strange error while attempting to write a jest test.
TypeError: jest_1.it is not a function
9 |
10 | describe('Health check', () => {
> 11 | it('GET works', async () => {
Instead of displaying all the different configuration files, I'll focus on the specific components being used: serverless framework with serverless-plugin-typescript plugin, typescript, jest, ts-jest.
My understanding is that ts-jest should handle TS compilation and hand it over to Jest. However, since serverless has its own opinionated TS configuration, it might be conflicting with ts-jest.
Any suggestions on what I should investigate further?
Edit: code block formatting adjustment