E2E: improve error context in assertions#7281
Open
phyllis-sy-wu wants to merge 1 commit intopsyw-0413-E2E-one-time-authfrom
Open
E2E: improve error context in assertions#7281phyllis-sy-wu wants to merge 1 commit intopsyw-0413-E2E-one-time-authfrom
phyllis-sy-wu wants to merge 1 commit intopsyw-0413-E2E-one-time-authfrom
Conversation
Contributor
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Apr 13, 2026
94f4908 to
d872975
Compare
4 tasks
d872975 to
13cf2b4
Compare
13cf2b4 to
3c85425
Compare
Contributor
Differences in type declarationsWe detected differences in the type declarations generated by Typescript for this branch compared to the baseline ('main' branch). Please, review them to ensure they are backward-compatible. Here are some important things to keep in mind:
New type declarationsWe found no new type declarations in this PR Existing type declarationspackages/cli-kit/dist/public/node/node-package-manager.d.ts@@ -68,14 +68,6 @@ export declare function packageManagerFromUserAgent(env?: NodeJS.ProcessEnv): Pa
* @returns The dependency manager
*/
export declare function getPackageManager(fromDirectory: string): Promise<PackageManager>;
-/**
- * Builds the command and argv needed to execute a local binary using the package manager
- * detected from the provided directory or its ancestors.
- */
-export declare function packageManagerBinaryCommandForDirectory(fromDirectory: string, binary: string, ...binaryArgs: string[]): Promise<{
- command: string;
- args: string[];
-}>;
interface InstallNPMDependenciesRecursivelyOptions {
/**
* The dependency manager to use to install the dependencies.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

WHY are these changes introduced?
When E2E tests fail, some assertions already had error context (e.g.,
build failed:\nstderr: ...) but others didn't, the error message only shows "Expected: 0, Received: 1" without the CLI output that caused the failure. This makes it hard to diagnose issues, especially in CI where you can't re-run interactively.WHAT is this pull request doing?
Adds error context (stdout/stderr) to all
expect(exitCode).toBe(0)assertions that were missing it.Before:
After:
Files changed: 6 test files —
app-dev-server,app-scaffold,commands,smoke,smoke-ptyHow to test your changes?
No behavior change — assertions only show the added context when a test fails.
Checklist
pnpm changeset add