Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4828

Replace mirage with real database

$
0
0

@ondrejsevcik wrote:

Hi, I would like to replace mirage with a real database connection. The problem is setting up test data. I don’t want to create them upfront in the database, because it’s very fragile and tends to get obsolete very fast. I would like to keep all my test data within the test.

I had an idea that I would call a CLI command before every test to reset the database and populate it with test data from the test. Is something like that possible using ember-cli?

I know that the tests run inside the browser which obviously can’t call any CLI command but during the compilation step, it should be possible to run some CLI commands as it runs inside the node, right?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles