Skip to content

Commit 5309f5c

Browse files
authored
Merge pull request #152 from embroider-build/addsetupEmberOnerrorValidation
Add a default test so that the test command pasess in new projects
2 parents c65a471 + a08982e commit 5309f5c

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
node_modules/
1+
node_modules/
2+
# for local testing in the same directory
3+
my-app/

files-override/js/tests/test-helper.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ import config from '<%= name %>/config/environment';
33
import * as QUnit from 'qunit';
44
import { setApplication } from '@ember/test-helpers';
55
import { setup } from 'qunit-dom';
6-
import { start as qunitStart } from 'ember-qunit';
6+
import { start as qunitStart, setupEmberOnerrorValidation } from 'ember-qunit';
77

88
export function start() {
99
setApplication(Application.create(config.APP));
1010

1111
setup(QUnit.assert);
12+
setupEmberOnerrorValidation();
1213

1314
qunitStart({ loadTests: false });
1415
}

files-override/ts/tests/test-helper.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ import config from '<%= name %>/config/environment';
33
import * as QUnit from 'qunit';
44
import { setApplication } from '@ember/test-helpers';
55
import { setup } from 'qunit-dom';
6-
import { start as qunitStart } from 'ember-qunit';
6+
import { start as qunitStart, setupEmberOnerrorValidation } from 'ember-qunit';
77

88
export function start() {
99
setApplication(Application.create(config.APP));
1010

1111
setup(QUnit.assert);
12+
setupEmberOnerrorValidation();
1213

1314
qunitStart();
1415
}

0 commit comments

Comments
 (0)