-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathtest-helper.__ext__
More file actions
35 lines (31 loc) · 867 Bytes
/
test-helper.__ext__
File metadata and controls
35 lines (31 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import EmberApp from 'ember-strict-application-resolver';
import EmberRouter from '@ember/routing/router';
import * as QUnit from 'qunit';
import { setApplication } from '@ember/test-helpers';
import { setup } from 'qunit-dom';
import { start as qunitStart, setupEmberOnerrorValidation } from 'ember-qunit';
import { setTesting } from '@embroider/macros';
class Router extends EmberRouter {
location = 'none';
rootURL = '/';
}
class TestApp extends EmberApp {
modules = {
'./router': Router,
// add any custom services here
// import.meta.glob('./services/*', { eager: true }),
};
}
Router.map(function () {});
export function start() {
setTesting(true);
setApplication(
TestApp.create({
autoboot: false,
rootElement: '#ember-testing',
}),
);
setup(QUnit.assert);
setupEmberOnerrorValidation();
qunitStart();
}