Skip to content

Commit

Permalink
QUnit: Add "Test helper logging" checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Nov 22, 2019
1 parent 06efcc2 commit 60cb2e5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ module.exports = function(defaults) {

app.import('node_modules/qunit/qunit/qunit.js', {
type: 'test',
prepend: true,
});

app.import('node_modules/qunit/qunit/qunit.css', {
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ module.exports = {
this._super.included.apply(this, arguments);

this.import('vendor/monkey-patches.js', { type: 'test' });
this.import('vendor/qunit-test-helper-logging-option.js', { type: 'test' });
},

treeForAddonTestSupport(tree) {
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@
}
},
"ember-addon": {
"configPath": "tests/dummy/config"
"configPath": "tests/dummy/config",
"after": [
"ember-qunit"
]
},
"release-it": {
"scripts": {
Expand Down
8 changes: 8 additions & 0 deletions vendor/qunit-test-helper-logging-option.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
(function() {
if (typeof QUnit !== 'undefined') {
QUnit.config.urlConfig.push({
id: 'testHelperLogging',
label: 'Log test helpers',
});
}
})();

0 comments on commit 60cb2e5

Please sign in to comment.