debt - use some "import type" syntax to ensure the module is not getting loaded

This commit is contained in:
Benjamin Pasero
2020-08-28 17:21:45 +02:00
parent 8a3a3d853f
commit c393e6a3a9
6 changed files with 18 additions and 22 deletions

View File

@@ -28,9 +28,8 @@ suite('Windows Native Helpers', () => {
});
test('vscode-windows-ca-certs', async () => {
const windowsCerts = await new Promise<any>((resolve, reject) => {
require(['vscode-windows-ca-certs'], resolve, reject);
});
// @ts-ignore Windows only
const windowsCerts = await import('vscode-windows-ca-certs');
assert.ok(windowsCerts, 'Unable to load vscode-windows-ca-certs dependency.');
});