You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use mowatch to test a TypeScript project (with *.ts files).
The mocha command I use is mocha --recursive --compilers ts:ts-node/register src, so that node uses ts-node to import TypeScript files and so that Mocha discovers .ts files.
However, mowatch hard codes the .js extension into globberFactory, so it doesn't find the source files and throws an error:
Error: Error: ENOENT: no such file or directory, stat 'src/**/*.spec.ts'
at fatal (/Users/janslow/dev/cfl/cfl-npm/generator-npm/node_modules/mowatch/bin/mowatch.js:34:9)
at /Users/janslow/dev/test/node_modules/mowatch/bin/mowatch.js:46:16
at /Users/janslow/dev/test/node_modules/async/lib/async.js:52:16
at /Users/janslow/dev/test/node_modules/async/lib/async.js:361:13
at /Users/janslow/dev/test/node_modules/async/lib/async.js:52:16
at done (/Users/janslow/dev/test/node_modules/async/lib/async.js:241:17)
at /Users/janslow/dev/test/node_modules/async/lib/async.js:44:16
at /Users/janslow/dev/test/node_modules/async/lib/async.js:358:17
at /Users/janslow/dev/test/node_modules/mowatch/lib/index.js:54:16
at /Users/janslow/dev/test/node_modules/async/lib/async.js:52:16
It would be useful if the --compilers (and probably --watch-extensions) was used to build the glob.
The text was updated successfully, but these errors were encountered:
I'm trying to use
mowatch
to test a TypeScript project (with *.ts files).The mocha command I use is
mocha --recursive --compilers ts:ts-node/register src
, so that node usests-node
to import TypeScript files and so that Mocha discovers.ts
files.However, mowatch hard codes the
.js
extension intoglobberFactory
, so it doesn't find the source files and throws an error:It would be useful if the
--compilers
(and probably--watch-extensions
) was used to build the glob.The text was updated successfully, but these errors were encountered: