Component Test angular2-meteor

81 Views Asked by At

I use angular-meteor to create a web app, but I try to write some test functions to test the app. When I use the command meteor test --driver-package practicalmeteor:mocha, it doesn't run any test files, 0 failures.

Test Result

Does anybody know how to set it up and test both client?

1

There are 1 best solutions below

0
Henrik Kirk On

First the files should be named *.test[s].[js|ts]. Secondly the files should not be placed in a folder named /tests, since these files are not automaticly picked up.

See https://guide.meteor.com/testing.html for more.