1
- import { appScenarios , baseAddon } from './scenarios' ;
1
+ import { baseAddon , tsAppScenarios } from './scenarios' ;
2
2
import type { PreparedApp } from 'scenario-tester' ;
3
3
import QUnit from 'qunit' ;
4
4
import fetch from 'node-fetch' ;
@@ -7,7 +7,7 @@ import { setupAuditTest } from '@embroider/test-support/audit-assertions';
7
7
8
8
const { module : Qmodule , test } = QUnit ;
9
9
10
- appScenarios
10
+ tsAppScenarios
11
11
. only ( 'release' )
12
12
. map ( 'vite-internals' , app => {
13
13
// These are for a custom testem setup that will let us do runtime tests
@@ -54,10 +54,19 @@ appScenarios
54
54
55
55
app : {
56
56
components : {
57
- 'alpha.js ' : `
57
+ 'fancy-gts.gts ' : `
58
58
import Component from '@glimmer/component';
59
59
export default class extends Component {
60
- message = "alpha";
60
+ message: string = "fancy gts";
61
+ <template>
62
+ <div class="fancy-gts">{{this.message}}</div>
63
+ </template>
64
+ }
65
+ ` ,
66
+ 'alpha.ts' : `
67
+ import Component from '@glimmer/component';
68
+ export default class extends Component {
69
+ message: string = "alpha";
61
70
}
62
71
` ,
63
72
'alpha.hbs' : `
@@ -80,7 +89,7 @@ appScenarios
80
89
import Component from '@glimmer/component';
81
90
export default class extends Component {
82
91
message = "delta";
83
- }
92
+ }
84
93
` ,
85
94
} ,
86
95
templates : {
@@ -90,6 +99,7 @@ appScenarios
90
99
` ,
91
100
'index.hbs' : `
92
101
<FancyButton />
102
+ <FancyGts />
93
103
<WelcomePage />
94
104
` ,
95
105
} ,
@@ -109,12 +119,13 @@ appScenarios
109
119
components : {
110
120
'example-test.js' : `
111
121
import { module, test } from 'qunit';
112
- import { setupRenderingTest } from 'app-template/tests/helpers';
122
+ import { setupRenderingTest } from 'ts- app-template/tests/helpers';
113
123
import { render } from '@ember/test-helpers';
114
124
import { hbs } from 'ember-cli-htmlbars';
115
- import { appLibOne as libOneViaAddon, appLibTwo as libTwoViaAddon } from 'app-template/v1-example-addon';
116
- import appLibOne from 'app-template/lib/app-lib-one';
117
- import appLibTwo from 'app-template/lib/app-lib-two';
125
+ import { appLibOne as libOneViaAddon, appLibTwo as libTwoViaAddon } from 'ts-app-template/v1-example-addon';
126
+ import appLibOne from 'ts-app-template/lib/app-lib-one';
127
+ import appLibTwo from 'ts-app-template/lib/app-lib-two';
128
+
118
129
119
130
module('Integration | Component | example', function (hooks) {
120
131
setupRenderingTest(hooks);
@@ -187,7 +198,7 @@ appScenarios
187
198
app : {
188
199
'v1-example-addon.js' : `
189
200
import appLibOne from './lib/app-lib-one';
190
- import appLibTwo from 'app-template/lib/app-lib-two';
201
+ import appLibTwo from 'ts- app-template/lib/app-lib-two';
191
202
export { appLibOne, appLibTwo };
192
203
` ,
193
204
templates : {
@@ -240,7 +251,7 @@ appScenarios
240
251
. module ( './index.html' )
241
252
. resolves ( / \/ i n d e x .h t m l .* / ) // in-html app-boot script
242
253
. toModule ( )
243
- . resolves ( / \/ a p p \. j s .* / )
254
+ . resolves ( / \/ a p p \. t s .* / )
244
255
. toModule ( )
245
256
. resolves ( / .* \/ - e m b r o i d e r - e n t r y p o i n t .j s / )
246
257
. toModule ( )
0 commit comments