Using this script:
"test": "./node_modules/mocha/bin/mocha --recursive --require ts-node/register ./test/**/*.spec.ts --opts ./test/mocha.opts",
I've tried to load some test files inside the tree:
.
├── controllers
│ ├── admin
│ │ └── users.spec.ts
│ ├── authentications.spec.ts
The authentications.spec.ts test file gets loaded but the users.spec.ts doesn't.
My mocha.opts file looks like just:
I've also tried to remove the --recursive flag and just have a glob but it doesn't work.
I can't work out whether the problem is with ts-node or with mocha?
Any ideas?
Using this script:
I've tried to load some test files inside the tree:
The
authentications.spec.tstest file gets loaded but theusers.spec.tsdoesn't.My mocha.opts file looks like just:
I've also tried to remove the
--recursiveflag and just have a glob but it doesn't work.I can't work out whether the problem is with
ts-nodeor withmocha?Any ideas?