[test][kbn-plugin-helpers] Skip install dependencies (#20649) (#20871)

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
This commit is contained in:
Tyler Smalley 2018-07-17 08:05:58 -07:00 committed by GitHub
parent 0eefc228f2
commit 5303aae152
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,10 +88,13 @@ describe('creating the build', () => {
const sassPath = 'public/styles.scss';
const cssPath = resolve(PLUGIN_BUILD_TARGET, 'public/styles.css');
// set skipInstallDependencies to true for these tests
beforeEach(() => (PLUGIN.styleSheetToCompile = sassPath));
// set it back to false after
beforeEach(() => {
PLUGIN.skipInstallDependencies = true;
PLUGIN.styleSheetToCompile = sassPath;
});
afterEach(() => {
PLUGIN.skipInstallDependencies = false;
PLUGIN.styleSheetToCompile = undefined;
unlink(cssPath);
});