This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/tests/helpers
Robin Ward ef7d99b0a8 REFACTOR: Move test setup to a module
This is long overdue. We had a lot of (not linted) code to initialize
our test suite as part of the Ruby `test_helper.js` bundle.

This refactor moves that out to a `setup-tests` module, which imports
all the modules properly, rather than using `require`.

It also removes the global `server` variable which some tests were using
for pretender. Those tests are fixed, and in the case of widget tests,
support for a `pretend()` was added, which mimics our acceptance tests.

One problematic test was removed, which overwrites `/posts` - this could
break tons of other tests depending on order.
2020-10-08 15:11:51 -04:00
..
assertions.js REFACTOR: Move javascript tests inside discourse app 2020-10-02 11:29:36 -04:00
component-test.js REFACTOR: Import QUnit and related helpers rather than globals 2020-10-07 11:50:49 -04:00
create-pretender.js REFACTOR: Move test setup to a module 2020-10-08 15:11:51 -04:00
create-store.js REFACTOR: Move javascript tests inside discourse app 2020-10-02 11:29:36 -04:00
d-editor-helper.js REFACTOR: Move javascript tests inside discourse app 2020-10-02 11:29:36 -04:00
fixture-pretender.js REFACTOR: Move javascript tests inside discourse app 2020-10-02 11:29:36 -04:00
html-helper.js REFACTOR: Move javascript tests inside discourse app 2020-10-02 11:29:36 -04:00
qunit-helpers.js REFACTOR: Move test setup to a module 2020-10-08 15:11:51 -04:00
review-pretender.js REFACTOR: Move javascript tests inside discourse app 2020-10-02 11:29:36 -04:00
select-kit-helper.js REFACTOR: Import QUnit and related helpers rather than globals 2020-10-07 11:50:49 -04:00
site-settings.js REFACTOR: Removes Discourse.SiteSettings constant from tests 2020-10-05 13:52:13 -04:00
site.js REFACTOR: Move javascript tests inside discourse app 2020-10-02 11:29:36 -04:00
store-pretender.js REFACTOR: Move javascript tests inside discourse app 2020-10-02 11:29:36 -04:00
textarea-selection-helper.js REFACTOR: Move javascript tests inside discourse app 2020-10-02 11:29:36 -04:00
widget-test.js REFACTOR: Move test setup to a module 2020-10-08 15:11:51 -04:00