@@ -467,50 +467,6 @@ describe('Transform: rewriteModule', () => {
467467 ` ) ;
468468 } ) ;
469469
470- test ( 'handles satisfies' , ( ) => {
471- const emberTemplateImportsEnvironment = GlintEnvironment . load ( [ 'ember-template-imports' ] ) ;
472-
473- let script = {
474- filename : 'test.gts' ,
475- contents : [
476- `import type { TOC } from '@ember/component/template-only';` ,
477- `` ,
478- `const SmolComp = ` ,
479- ` <template>` ,
480- ` Hello there, {{@name}}` ,
481- ` </template> satisfies TOC<{ Args: { name: string }}>;` ,
482- `` ,
483- `<template>` ,
484- ` <SmolComp @name="Ember" />` ,
485- `</template> satisfies TOC<{ Args: {}, Blocks: {}, Element: null }>` ,
486- `` ,
487- ] . join ( '\n' ) ,
488- } ;
489-
490- let transformedModule = rewriteModule ( ts , { script } , emberTemplateImportsEnvironment ) ;
491-
492- expect ( transformedModule ?. errors ?. length ) . toBe ( 0 ) ;
493- expect ( transformedModule ?. transformedContents ) . toMatchInlineSnapshot ( `
494- "import type { TOC } from '@ember/component/template-only';
495-
496- const SmolComp =
497- ({} as typeof import("@glint/environment-ember-template-imports/-private/dsl")).templateExpression(function(__glintRef__, __glintDSL__: typeof import("@glint/environment-ember-template-imports/-private/dsl")) {
498- __glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.args.name)());
499- __glintRef__; __glintDSL__;
500- }) satisfies TOC<{ Args: { name: string }}>;
501-
502- export default ({} as typeof import("@glint/environment-ember-template-imports/-private/dsl")).templateExpression(function(__glintRef__, __glintDSL__: typeof import("@glint/environment-ember-template-imports/-private/dsl")) {
503- {
504- const __glintY__ = __glintDSL__.emitComponent(__glintDSL__.resolve(SmolComp)({
505- name: "Ember", ...__glintDSL__.NamedArgsMarker }));
506- __glintY__;
507- }
508- __glintRef__; __glintDSL__;
509- }) satisfies TOC<{ Args: {}, Blocks: {}, Element: null }>
510- "
511- ` ) ;
512- } ) ;
513-
514470 test ( 'implicit default export' , ( ) => {
515471 let customEnv = GlintEnvironment . load ( [ 'ember-loose' , 'ember-template-imports' ] ) ;
516472 let script = {
0 commit comments