Skip to content

Commit

Permalink
update to ember-qunit 5
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerturdenpants committed May 20, 2021
1 parent 56de61b commit e3c1000
Show file tree
Hide file tree
Showing 4 changed files with 2,140 additions and 171 deletions.
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,34 +42,36 @@
},
"devDependencies": {
"@ember/optional-features": "^2.0.0",
"@ember/test-helpers": "~2.2.1",
"@html-next/flexi-default-styles": "^2.2.0",
"babel-eslint": "^10.1.0",
"broccoli-asset-rev": "^3.0.0",
"ember-cli": "~3.26.1",
"ember-cli-dependency-checker": "^3.2.0",
"ember-cli-github-pages": "^0.2.2",
"ember-cli-inject-live-reload": "^2.0.2",
"ember-cli-sri": "^2.1.1",
"ember-cli-uglify": "^3.0.0",
"ember-cli": "~3.26.1",
"ember-disable-prototype-extensions": "^1.1.3",
"ember-export-application-global": "^2.0.1",
"ember-load-initializers": "^2.1.2",
"ember-maybe-import-regenerator": "^0.1.6",
"ember-power-select": "^4.1.2",
"ember-qunit": "^4.6.0",
"ember-qunit": "~5.1.3",
"ember-raf-test-waiter": "^0.1.0",
"ember-resolver": "^8.0.2",
"ember-source": "~3.27.1",
"ember-source-channel-url": "^3.0.0",
"ember-source": "~3.27.1",
"ember-try": "^1.4.0",
"eslint": "^7.26.0",
"eslint-plugin-ember": "^9.6.0",
"eslint-plugin-node": "^11.1.0",
"eslint": "^7.26.0",
"flexi": "^2.1.0",
"loader.js": "^4.7.0",
"qunit": "~2.14.0",
"qunit-dom": "^1.6.0",
"release-it": "^14.6.2",
"release-it-lerna-changelog": "^3.1.0"
"release-it-lerna-changelog": "^3.1.0",
"release-it": "^14.6.2"
},
"resolutions": {
"@embroider/util": "^0.40.0",
Expand Down
7 changes: 7 additions & 0 deletions tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@
{{content-for "body"}}
{{content-for "test-body"}}

<div id="qunit"></div>
<div id="qunit-fixture">
<div id="ember-testing-container">
<div id="ember-testing"></div>
</div>
</div>

<script src="/testem.js" integrity=""></script>
<script src="{{rootURL}}assets/vendor.js"></script>
<script src="{{rootURL}}assets/test-support.js"></script>
Expand Down
7 changes: 6 additions & 1 deletion tests/test-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@ import { registerWaiter } from 'ember-raf-test-waiter';
import config from '../config/environment';
import { setApplication } from '@ember/test-helpers';
import { start } from 'ember-qunit';
import * as QUnit from 'qunit';
import { setup } from 'qunit-dom';

registerWaiter();

setup(QUnit.assert);

setApplication(Application.create(config.APP));

registerWaiter();

start();
Loading

0 comments on commit e3c1000

Please sign in to comment.