It might be worth documenting this as a way of installing in an ember-cli app's test-helper.js
Excessive perhaps, but does the localStorage gets reset if you forget to add this to each test file?
setupWindowMock(QUnit.hooks)
These were added in QUnit 2.18, so relatively recent.
It might be worth documenting this as a way of installing in an ember-cli app's test-helper.js Excessive perhaps, but does the localStorage gets reset if you forget to add this to each test file?
setupWindowMock(QUnit.hooks)
These were added in QUnit 2.18, so relatively recent.
https://api.qunitjs.com/QUnit/hooks/ https://github.com/qunitjs/qunit/releases/tag/2.18.0