Currently, I'm developing an NPM module using TypeScript without the use of Webpack for compiling scripts.
I need some guidance on configuring Jest to properly run tests with TypeScript files. Any recommendations?
// test.spec.ts
import {calc} from './index'
test('shoud...', () => {
expect(calc()).toBeDefined()
})
// index.ts
import {calc} from './index'
const calc = (a, b) => {
return a + b
}
Encountered this error message:
testMatch: /__tests__//*.js?(x),**/?(*.)+(spec|test).js?(x) - 0 matches testPathIgnorePatterns: /node_modules/ - 9 matches