Extra whitespace when running jest tests in a PowerShell window. #10594

Closed
opened 2026-01-31 02:25:22 +00:00 by claunia · 6 comments
Owner

Originally created by @Butters646 on GitHub (Sep 11, 2020).

I don't know if this is specific to jest, that is just how I observed this behavior. I get large "chunks" of whitespace in my terminal session when I run my tests. This doesn't happen when I use PowerShell directly or when I use the command prompt in Windows Terminal, so it looks like it is an issue with the PowerShell window in Window Terminal.

I have attached screenshots of the issue. This is just one example of the extra space. Huge chunks of blank lines appear throughout the run in the PowerShell window.

cmd prompt Window in Windows Terminal
PowerShell stand alone Window
PowerShell Window in Windows Terminal

Originally created by @Butters646 on GitHub (Sep 11, 2020). I don't know if this is specific to jest, that is just how I observed this behavior. I get large "chunks" of whitespace in my terminal session when I run my tests. This doesn't happen when I use PowerShell directly or when I use the command prompt in Windows Terminal, so it looks like it is an issue with the PowerShell window in Window Terminal. I have attached screenshots of the issue. This is just one example of the extra space. Huge chunks of blank lines appear throughout the run in the PowerShell window. ![cmd prompt Window in Windows Terminal](https://user-images.githubusercontent.com/35573003/92928991-da279200-f40d-11ea-8a2c-6adba62a4459.png) ![PowerShell stand alone Window](https://user-images.githubusercontent.com/35573003/92928993-da279200-f40d-11ea-98b6-9d84e264878b.png) ![PowerShell Window in Windows Terminal](https://user-images.githubusercontent.com/35573003/92928995-dac02880-f40d-11ea-997b-0596bda7b267.png)
claunia added the Resolution-Duplicate label 2026-01-31 02:25:22 +00:00
Author
Owner

@DHowett commented on GitHub (Sep 16, 2020):

This is very unexpected. When you run it in a normal powershell window, does the size of the window change?

@DHowett commented on GitHub (Sep 16, 2020): This is very unexpected. When you run it in a normal powershell window, does the _size_ of the window change?
Author
Owner

@Butters646 commented on GitHub (Sep 16, 2020):

@DHowett It doesn't appear to. I see no observable window size changes.

@Butters646 commented on GitHub (Sep 16, 2020): @DHowett It doesn't appear to. I see no observable window size changes.
Author
Owner

@zadjii-msft commented on GitHub (Sep 29, 2020):

@Butters646 could you share your powershell profile? I've got a theory that some customization in there is what's tripping the Terminal up

@zadjii-msft commented on GitHub (Sep 29, 2020): @Butters646 could you share your powershell profile? I've got a theory that some customization in there is what's tripping the Terminal up
Author
Owner

@Butters646 commented on GitHub (Sep 29, 2020):

Microsoft.PowerShell_profile.zip

Sure. Attached.

@Butters646 commented on GitHub (Sep 29, 2020): [Microsoft.PowerShell_profile.zip](https://github.com/microsoft/terminal/files/5298878/Microsoft.PowerShell_profile.zip) Sure. Attached.
Author
Owner

@DHowett commented on GitHub (Oct 1, 2020):

image

that'll do it!

/dup #5094

alternatively, don't force the screen or buffer size in the file that powershell runs for every new session (including when it's spawned by other poorly-behaved tools sometimes!)

@DHowett commented on GitHub (Oct 1, 2020): ![image](https://user-images.githubusercontent.com/189190/94752579-7c1d0900-0340-11eb-9fca-a155631127f8.png) that'll do it! /dup #5094 alternatively, don't force the screen or buffer size in the file that powershell runs for every new session (including when it's spawned by other poorly-behaved tools sometimes!)
Author
Owner

@ghost commented on GitHub (Oct 1, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Oct 1, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10594