piotrwitek / ts-mocha

Mocha thin wrapper that allows running TypeScript tests with TypeScript runtime (ts-node) to get rid of compilation complexity
MIT License
190 stars 25 forks source link

Runner ignores js spec files #73

Open ssipos90 opened 2 years ago

ssipos90 commented 2 years ago

Hi,

We're slowly migrating our codebase to TS and have specs in both JS and TS. Using this command, JS tests seem to be skipped ts-mocha -p tsconfig.json src/**/*.spec.[jt]s.

Is this intentional?

piotrwitek commented 2 years ago

Hi, If that's supported by mocha then definitely should work... could you add a test case in the PR so we can debug it and fix? Take a look at existing tests should be straight forward to add a new one. Thanks