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

@@ -25,6 +25,10 @@ describe('Autorest tests', function (): void {
sinon.restore();
});
after(async function(): Promise<void> {
await testUtils.deleteGeneratedTestFolder();
});
it('Should detect autorest', async function (): Promise<void> {
sinon.stub(window, 'showInformationMessage').returns(<any>Promise.resolve(runViaNpx)); // stub a selection in case test runner doesn't have autorest installed