Clean settings between suites

This commit is contained in:
Daniel Imms 2022-06-21 10:32:35 -07:00
parent bcb2c6f8ee
commit 9bdcdadfa5
No known key found for this signature in database
GPG key ID: 7116259D505CA628

View file

@ -22,10 +22,6 @@ export function setup() {
await app.workbench.terminal.runCommand(TerminalCommandId.KillAll);
});
after(async function () {
await settingsEditor.clearUserSettings();
});
async function createShellIntegrationProfile() {
await terminal.runCommandWithValue(TerminalCommandIdWithValue.NewWithProfile, process.platform === 'win32' ? 'PowerShell' : 'bash');
}
@ -35,6 +31,9 @@ export function setup() {
before(async function () {
await setTerminalTestSettings(app, [['terminal.integrated.shellIntegration.enabled', 'true']]);
});
after(async function () {
await settingsEditor.clearUserSettings();
});
describe('Decorations', function () {
describe('Should show default icons', function () {
@ -76,6 +75,9 @@ export function setup() {
before(async function () {
await setTerminalTestSettings(app);
});
after(async function () {
await settingsEditor.clearUserSettings();
});
beforeEach(async function () {
// Create the simplest system profile to get as little process interaction as possible
await terminal.createTerminal();