# Description ## What this PR fixes This PR fixes a flaky/skipped unit test for [downloadFile](vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/workbench.html) and aligns the test with the actual implementation. ## Changes made Updated [downloadFile](vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/workbench.html) test to validate file-saver behavior instead of DOM anchor creation. Mocked [saveAs](vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/workbench.html) from file-saver and asserted it is called with the fetched blob and filename. Added proper async assertions for: successful file download failed fetch path ([status !== 200](vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/workbench.html)) rejecting with Failed downloading file Updated [downloadFile](vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/workbench.html) implementation to return the fetch promise chain so callers/tests can await it reliably. ## Related Issue Closes #18485
Run yarn dev while server running on port 3000