diff --git a/tests/scenarios/vite-internals-test.ts b/tests/scenarios/vite-internals-test.ts index 60cb58542..b87ea8c53 100644 --- a/tests/scenarios/vite-internals-test.ts +++ b/tests/scenarios/vite-internals-test.ts @@ -1,4 +1,4 @@ -import { appScenarios, baseAddon } from './scenarios'; +import { baseAddon, tsAppScenarios } from './scenarios'; import type { PreparedApp } from 'scenario-tester'; import QUnit from 'qunit'; import fetch from 'node-fetch'; @@ -7,7 +7,7 @@ import { setupAuditTest } from '@embroider/test-support/audit-assertions'; const { module: Qmodule, test } = QUnit; -appScenarios +tsAppScenarios .only('release') .map('vite-internals', app => { // These are for a custom testem setup that will let us do runtime tests @@ -54,10 +54,10 @@ appScenarios app: { components: { - 'alpha.js': ` + 'alpha.ts': ` import Component from '@glimmer/component'; export default class extends Component { - message = "alpha"; + message: string = "alpha"; } `, 'alpha.hbs': ` @@ -76,6 +76,15 @@ appScenarios `, 'epsilon.hbs': `
Epsilon
`, 'fancy-button.hbs': `

I'm fancy

`, + 'fancy-gts.gts': ` + import Component from '@glimmer/component'; + export default class extends Component { + message: string = "gts"; + + } + `, }, templates: { 'application.hbs': ` @@ -84,6 +93,7 @@ appScenarios `, 'index.hbs': ` + `, }, @@ -103,12 +113,13 @@ appScenarios components: { 'example-test.js': ` import { module, test } from 'qunit'; - import { setupRenderingTest } from 'app-template/tests/helpers'; + import { setupRenderingTest } from 'ts-app-template/tests/helpers'; import { render } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; - import { appLibOne as libOneViaAddon, appLibTwo as libTwoViaAddon } from 'app-template/v1-example-addon'; - import appLibOne from 'app-template/lib/app-lib-one'; - import appLibTwo from 'app-template/lib/app-lib-two'; + import { appLibOne as libOneViaAddon, appLibTwo as libTwoViaAddon } from 'ts-app-template/v1-example-addon'; + import appLibOne from 'ts-app-template/lib/app-lib-one'; + import appLibTwo from 'ts-app-template/lib/app-lib-two'; + module('Integration | Component | example', function (hooks) { setupRenderingTest(hooks); @@ -176,7 +187,7 @@ appScenarios app: { 'v1-example-addon.js': ` import appLibOne from './lib/app-lib-one'; - import appLibTwo from 'app-template/lib/app-lib-two'; + import appLibTwo from 'ts-app-template/lib/app-lib-two'; export { appLibOne, appLibTwo }; `, components: {