1
- /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
2
-
3
1
import {
4
2
setupApplicationTest as upstreamSetupApplicationTest ,
5
3
setupRenderingTest as upstreamSetupRenderingTest ,
6
4
setupTest as upstreamSetupTest ,
5
+ type SetupTestOptions ,
7
6
} from 'ember-qunit' ;
8
7
9
8
// This file exists to provide wrappers around ember-qunit's
10
9
// test setup functions. This way, you can easily extend the setup that is
11
10
// needed per test type.
12
11
13
- function setupApplicationTest ( hooks , options ) {
12
+ function setupApplicationTest ( hooks : NestedHooks , options ?: SetupTestOptions ) {
14
13
upstreamSetupApplicationTest ( hooks , options ) ;
15
14
16
15
// Additional setup for application tests can be done here.
@@ -29,13 +28,13 @@ function setupApplicationTest(hooks, options) {
29
28
// setupMirage(hooks); // ember-cli-mirage
30
29
}
31
30
32
- function setupRenderingTest ( hooks , options ) {
31
+ function setupRenderingTest ( hooks : NestedHooks , options ?: SetupTestOptions ) {
33
32
upstreamSetupRenderingTest ( hooks , options ) ;
34
33
35
34
// Additional setup for rendering tests can be done here.
36
35
}
37
36
38
- function setupTest ( hooks , options ) {
37
+ function setupTest ( hooks : NestedHooks , options ?: SetupTestOptions ) {
39
38
upstreamSetupTest ( hooks , options ) ;
40
39
41
40
// Additional setup for unit tests can be done here.
0 commit comments