Mohamed El Mahallawy
Mohamed El Mahallawy

Reputation: 13882

Ember-cli generate integration test for components as default

I have a project that was version 0.2.7 and generating component tests as unit tests. My new projects create integration tests by default. Is there a way to change it over?

Upvotes: 2

Views: 2035

Answers (1)

sbatson5
sbatson5

Reputation: 648

This is the default behavior now and as far as I know, can't be overwritten, as components should be run in isolation. However, you can simply generate a unit test with:

ember g component-test your-component -unit

If you want to read up on why you should try integration tests, I found this article helpful: http://alisdair.mcdiarmid.org/ember-component-integration-tests/

Upvotes: 6

Related Questions