GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Test noEmitOnError aggregation with a clean sibling project · microsoft/TypeScript@a573f67

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tsc/internal/execute/tsctests
    • tscbuild_test.go
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tsc/internal/execute/tsctests/tscbuild_test.go‎

Copy file name to clipboardExpand all lines: tsc/internal/execute/tsctests/tscbuild_test.go
+14-12Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -587,18 +587,20 @@ func TestBuildExitStatusForTypeErrors(t *testing.T) {
587587
assert.Equal(t, result.Status, tsc.ExitStatusSuccess)
588588
})
589589

590-
t.Run("build reports outputs generated if any project builds", func(t *testing.T) {
591-
t.Parallel()
592-
sys := newTestSys(&tscInput{files: FileMap{
593-
"/home/src/workspaces/project/tsconfig.json": `{ "files": [], "references": [{ "path": "./good" }, { "path": "./bad" }] }`,
594-
"/home/src/workspaces/project/good/tsconfig.json": `{ "compilerOptions": { "composite": true } }`,
595-
"/home/src/workspaces/project/good/index.ts": cleanCode,
596-
"/home/src/workspaces/project/bad/tsconfig.json": `{ "compilerOptions": { "composite": true } }`,
597-
"/home/src/workspaces/project/bad/index.ts": typeError,
598-
}}, false)
599-
result := execute.CommandLine(t.Context(), sys, []string{"--build"}, sys)
600-
assert.Equal(t, result.Status, tsc.ExitStatusDiagnosticsPresent_OutputsGenerated)
601-
})
590+
for _, noEmitOnError := range []bool{false, true} {
591+
t.Run(fmt.Sprintf("build reports outputs generated if any project builds/noEmitOnError=%t", noEmitOnError), func(t *testing.T) {
592+
t.Parallel()
593+
sys := newTestSys(&tscInput{files: FileMap{
594+
"/home/src/workspaces/project/tsconfig.json": `{ "files": [], "references": [{ "path": "./good" }, { "path": "./bad" }] }`,
595+
"/home/src/workspaces/project/good/tsconfig.json": `{ "compilerOptions": { "composite": true } }`,
596+
"/home/src/workspaces/project/good/index.ts": cleanCode,
597+
"/home/src/workspaces/project/bad/tsconfig.json": fmt.Sprintf(`{ "compilerOptions": { "composite": true, "noEmitOnError": %t } }`, noEmitOnError),
598+
"/home/src/workspaces/project/bad/index.ts": typeError,
599+
}}, false)
600+
result := execute.CommandLine(t.Context(), sys, []string{"--build"}, sys)
601+
assert.Equal(t, result.Status, tsc.ExitStatusDiagnosticsPresent_OutputsGenerated)
602+
})
603+
}
602604

603605
t.Run("build reports outputs skipped if every project reports diagnostics", func(t *testing.T) {
604606
t.Parallel()

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.