I am using ember-pouch as my adapter for an ember-cli app (v3.0.0).
For acceptance tests, I'd like to use the pouchDb adapter rather than mock everything. To implement this it seems the best strategy would be to:
1) create a new pouch-db instance at the start of each test and
2) destroy this instance at the end of each test
It seems like the best way to do it would be to use the beforeEach and afterEach hooks in the test. But I've been searching for two days and cannot find any useful documentation on how to implement this strategy.
Can somebody help me out with some pointers on how to implement this strategy on test setup?
Aucun commentaire:
Enregistrer un commentaire