@@ -15,7 +15,7 @@ import {
15
15
setupCompositeProject ,
16
16
} from 'glint-monorepo-test-utils' ;
17
17
18
- describe . skip ( 'CLI: single-pass build mode typechecking' , ( ) => {
18
+ describe ( 'CLI: single-pass build mode typechecking' , ( ) => {
19
19
describe ( 'simple projects using `--build`' , ( ) => {
20
20
let project ! : Project ;
21
21
beforeEach ( async ( ) => {
@@ -52,9 +52,12 @@ describe.skip('CLI: single-pass build mode typechecking', () => {
52
52
expect ( checkResult . exitCode ) . toBe ( 0 ) ;
53
53
expect ( checkResult . stdout ) . toEqual ( '' ) ;
54
54
expect ( checkResult . stderr ) . toEqual ( '' ) ;
55
+
56
+ // This tests that the `--emitDeclarationOnly` flag within project.build is working.
57
+ expect ( existsSync ( project . filePath ( 'dist/index.gts.js' ) ) ) . toBe ( false ) ;
55
58
} ) ;
56
59
57
- test ( 'rejects a basic project with a template syntax error' , async ( ) => {
60
+ test . skip ( 'rejects a basic project with a template syntax error' , async ( ) => {
58
61
let code = stripIndent `
59
62
import '@glint/environment-ember-template-imports';
60
63
import Component from '@glimmer/component';
@@ -122,18 +125,20 @@ describe.skip('CLI: single-pass build mode typechecking', () => {
122
125
let checkResult = await project . build ( { reject : false } ) ;
123
126
124
127
expect ( checkResult . exitCode ) . toBe ( 1 ) ;
125
- expect ( checkResult . stdout ) . toEqual ( '' ) ;
126
- expect ( stripAnsi ( checkResult . stderr ) ) . toMatchInlineSnapshot ( `
128
+ expect ( stripAnsi ( checkResult . stdout ) ) . toMatchInlineSnapshot ( `
127
129
"src/index.gts:16:36 - error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
128
130
129
131
16 The current time is {{truncate this.startupTime 12}}.
130
132
~~~~~~~~~~~~~~~~
133
+
134
+
135
+ Found 1 error.
131
136
"
132
137
` ) ;
133
138
} ) ;
134
139
} ) ;
135
140
136
- describe ( 'composite projects' , ( ) => {
141
+ describe . skip ( 'composite projects' , ( ) => {
137
142
// The basic structure here is designed to give minimal coverage over all
138
143
// interesting combinations of project invalidation:
139
144
//
0 commit comments