Skip to content

Commit 0c6b351

Browse files
authored
Merge branch 'master' into update-documentation
2 parents 8626643 + f6311c1 commit 0c6b351

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

test/smoke/.mocharc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = {
77
file: ["out/main.js"],
88
extension: ["js"],
99
slow: 200000,
10-
timeout: 120000,
10+
timeout: 300000,
1111
spec: "./out/**/*.test.js",
1212
recursive: true,
1313
};

test/smoke/suites/smoke.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { startFileExplorerTests } from "./fileExplorer.test";
99
import { SmokeTestLogger } from "./helper/smokeTestLogger";
1010
import { smokeTestFail } from "./helper/utilities";
1111
import { startPackagerTests } from "./packager.test";
12+
import { startVsixExistenceTest } from "./vsixbuild.test";
1213

1314
export function startSmokeTests(setup: () => Promise<void>, cleanUp: () => Promise<void>): void {
1415
before(async function () {
@@ -34,5 +35,6 @@ export function startSmokeTests(setup: () => Promise<void>, cleanUp: () => Promi
3435
startPackagerTests();
3536
startActionBarTests();
3637
startDebugConfigurationTests();
38+
startVsixExistenceTest();
3739
});
3840
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import * as fs from "fs";
2+
import * as path from "path";
3+
import assert = require("assert");
4+
5+
export function startVsixExistenceTest(): void {
6+
describe("VSIX existence check", () => {
7+
const targetDir = path.resolve(
8+
process.env.USERPROFILE || process.env.HOME || "",
9+
"vscode-extensions",
10+
"vscode-react-native",
11+
"test",
12+
"smoke",
13+
"resources",
14+
"extension",
15+
);
16+
17+
it.only("Verify at least one .vsix file exists in target directory", () => {
18+
const files = fs.existsSync(targetDir)
19+
? fs.readdirSync(targetDir).filter(f => f.endsWith(".vsix"))
20+
: [];
21+
assert.ok(files.length > 0, `No .vsix file found in ${targetDir}`);
22+
});
23+
});
24+
}

0 commit comments

Comments
 (0)