Skip to content

Commit 508b40f

Browse files
CvXt-sauer
andcommitted
Don’t render the test app outside #ember-testing.
Co-authored-by: t-sauer <[email protected]>
1 parent 4a9c17b commit 508b40f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

config/environment.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ module.exports = function(environment) {
5555
ENV.APP.LOG_VIEW_LOOKUPS = false;
5656

5757
ENV.APP.rootElement = '#ember-testing';
58+
ENV.APP.autoboot = false;
5859
}
5960

6061
if (environment === 'production') {

tests/test-helper.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import Application from '../app';
2+
import config from '../config/environment';
23
import { setApplication } from '@ember/test-helpers';
34
import { start } from 'ember-qunit';
45
import loadEmberExam from 'ember-exam/test-support/load';
56

6-
setApplication(Application.create({ autoboot: false }));
7+
setApplication(Application.create(config.APP));
78

89
loadEmberExam();
910
start();

0 commit comments

Comments
 (0)