From a0360161475a349f5e49722116d4d4a48aa2ce4b Mon Sep 17 00:00:00 2001 From: Steve Calvert Date: Tue, 20 Oct 2020 10:36:25 -0700 Subject: [PATCH] Adding documentation for the new API --- README.md | 17 ++++++++++++++++- lib/qunit-dom-modules.ts | 5 ++--- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2b8025953..ed26c9602 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,22 @@ or using [`yarn`](https://yarnpkg.com/): yarn add --dev qunit-dom ``` -(This is the recommended method for Ember projects.) +This is the recommended method for Ember projects using `ember-qunit` < 5.*. + +### Ember projects using `ember-qunit` >= 5.* + +Import and run the `setup` function in your `test-helper.js` file. + +```js +// tests/test-helper.js +import { setup } from 'qunit-dom'; + +//... + +setup(QUnit.assert); + +//... +``` ### `