Remove Extension Dependencies when running unit test
This commit is contained in:
Родитель
2bcccf5f7b
Коммит
78ddd4387d
|
@ -20,4 +20,6 @@ install:
|
|||
|
||||
script:
|
||||
- npm run tslint
|
||||
- npm test --silent
|
||||
- node CI/removeExtensionDependencies.js
|
||||
- npm test --silent
|
||||
- node CI/restoreExtensionDependencies.js
|
|
@ -0,0 +1,4 @@
|
|||
const fs = require("fs");
|
||||
const packageJson = JSON.parse(fs.readFileSync("package.json"));
|
||||
packageJson.extensionDependencies = [];
|
||||
fs.writeFileSync("package.json", JSON.stringify(packageJson, null, 2) + "\n");
|
|
@ -0,0 +1,4 @@
|
|||
const fs = require("fs");
|
||||
const packageJson = JSON.parse(fs.readFileSync("package.json"));
|
||||
packageJson.extensionDependencies = ["ms-vscode.azure-account"];
|
||||
fs.writeFileSync("package.json", JSON.stringify(packageJson, null, 2) + "\n");
|
Загрузка…
Ссылка в новой задаче