@ryanto wrote:
Ember-cli lets you define your own express server in
server/index.js
, but this server is not loaded in when runningember test
.I’d love to have an express server when running my test suite, my thinking here is to setup an addon that uses the
testemMiddleware
to loadserver/index.js
. That way it’ll be available during ember-test commands.(Side note: here’s an addon that does something similar)
Another thought I had was to have
testemMiddleware
load aserver/test-index.js
file, specifically for testing purposes. However, if that file is only included intestemMiddleware
, it wouldn’t be available for users running ember-cli and visiting/tests
, which makes this approach seem bad?So, loading
server/index.js
duringtestemMiddleware
, thoughts?
Posts: 1
Participants: 1