-
-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Called start() outside of a test context #143
Comments
Having the same problem after I upgraded to ember-cli 0.2.0 and ember 1.10. |
This happened to me upgrading ember-cli from 0.1.12 to 0.2.0. Same results with 0.2.1. My tests will intermittently fail. Either they fail because my requests haven't resolved yet and the callback in Here are a few other discussions about this issue: Any suggestions? |
More followup: I've moved all existing tests out of my project except for a single acceptance test and am still (intermittently) getting the same error. |
Just want to post this, in case anyone else has this problem. If you are using CoffeeScript, you must return null from # tests/unit/index-test.coffee
`
import Ember from 'ember'
import { module, test } from 'qunit'
import startApp from '../helpers/start-app'
`
App = null
module 'index',
beforeEach: ->
App = startApp()
null
afterEach: ->
Ember.run(App, App.destroy)
null
test "true is true", (assert)->
assert.expect(1)
visit('/')
andThen ->
assert.equal(true, true, "true is true") Without returning null, you will get an error like: ✘ Promise rejected during true is true: Called start() outside of a test context while already started
Error: assertion outside test context, in at http://localhost:7357/assets/test-support.js:3708
at http://localhost:7357/assets/test-support.js:3733
at http://localhost:7357/assets/test-support.js:4370 while running your tests. |
Yep, exactly. |
We too have this issue. I'm not sure if we have a lingering timer, or are doing some wrong, or what. But I've not had any luck tracing this down. Any suggestions? |
I just started coming across this as well. |
If it helps anyone, we just started having this issue and in our case it was caused by ember-cli-blanket which is currently broken with qunit >= 2.2.2. See the blanket issue for details. This issue was also hiding/breaking the "Module" dropdown on the The temporary solution, as an alternative to removing blanket entirely, is to change |
@dknutsen Man, thank you for that. You just saved me hours of digging. |
@workmanw yeah it took me a long time to narrow it down, glad I could spare someone else that pain |
closing due to inactivity |
Not sure if this belongs here or somewhere else, but I'm running into this error while using ember-qunit 0.2.8. When running tests in ember-cli, I'm getting a JSHint global error:
Any suggestions for troubleshooting this?
The text was updated successfully, but these errors were encountered: