diff --git a/packages/core/__tests__/cli/build.test.ts b/packages/core/__tests__/cli/build.test.ts index 20632a3e6..496f478ba 100644 --- a/packages/core/__tests__/cli/build.test.ts +++ b/packages/core/__tests__/cli/build.test.ts @@ -15,6 +15,8 @@ import { setupCompositeProject, } from 'glint-monorepo-test-utils'; +const TIMESTAMP = /\d{1,2}:\d{2}:\d{2} (AM|PM)/g; + describe('CLI: single-pass build mode typechecking', () => { describe('simple projects using `--build`', () => { let project!: Project; @@ -131,6 +133,89 @@ describe('CLI: single-pass build mode typechecking', () => { " `); }); + + describe('with `--verbose`', () => { + test('prints verbose output for a valid basic project', async () => { + let code = stripIndent` + import '@glint/environment-ember-template-imports'; + import Component from '@glimmer/component'; + + type ApplicationArgs = { + version: string; + }; + + export default class Application extends Component<{ Args: ApplicationArgs }> { + private startupTime = new Date().toISOString(); + + + } + `; + + project.write(INPUT_SFC, code); + + let checkResult = await project.build({ reject: false, flags: ['--verbose'] }); + + expect(checkResult.exitCode).toBe(0); + expect(checkResult.stdout.replace(TIMESTAMP, '