Create a regular profile to work better on CI

This commit is contained in:
Daniel Imms 2022-06-21 07:17:14 -07:00
parent 0df6031d30
commit bcb2c6f8ee
No known key found for this signature in database
GPG key ID: E5CF412B63651C69

View file

@ -30,10 +30,6 @@ export function setup() {
await terminal.runCommandWithValue(TerminalCommandIdWithValue.NewWithProfile, process.platform === 'win32' ? 'PowerShell' : 'bash');
}
async function createSimpleProfile() {
await terminal.runCommandWithValue(TerminalCommandIdWithValue.NewWithProfile, process.platform === 'win32' ? 'Command Prompt' : 'sh');
}
// TODO: Some agents may not have pwsh installed?
(process.platform === 'win32' ? describe.skip : describe)(`Process-based tests`, function () {
before(async function () {
@ -82,7 +78,7 @@ export function setup() {
});
beforeEach(async function () {
// Create the simplest system profile to get as little process interaction as possible
await createSimpleProfile();
await terminal.createTerminal();
// Erase all content and reset cursor to top
await terminal.runCommandWithValue(TerminalCommandIdWithValue.WriteDataToTerminal, `${csi('2J')}${csi('H')}`);
});