Cleanup generated test files and folders for Sql DB projects (#20862)

* Cleanup generated test files and folders

* Add await to fix tests
This commit is contained in:
Sakshi Sharma
2022-10-21 13:00:03 -07:00
committed by GitHub
parent 8acda681b4
commit 2a2ac74032
14 changed files with 97 additions and 10 deletions

View File

@@ -11,7 +11,7 @@ import * as vscode from 'vscode';
import * as sinon from 'sinon';
import { NetCoreTool, DBProjectConfigurationKey, DotnetInstallLocationKey } from '../tools/netcoreTool';
import { getQuotedPath } from '../common/utils';
import { generateTestFolderPath } from './testUtils';
import { deleteGeneratedTestFolder, generateTestFolderPath } from './testUtils';
import { createContext, TestContext } from './testContext';
let testContext: TestContext;
@@ -25,6 +25,10 @@ describe('NetCoreTool: Net core tests', function (): void {
testContext = createContext();
});
after(async function(): Promise<void> {
await deleteGeneratedTestFolder();
});
it('Should override dotnet default value with settings', async function (): Promise<void> {
try {
// update settings and validate