feat: Add --skip-next-release option to yarn build (#1292)

This commit is contained in:
Parth Patel 2019-03-29 05:17:46 -04:00 committed by Endilie Yacop Sucipto
parent f04eea6b48
commit d279836c40
9 changed files with 165 additions and 96 deletions

View file

@ -94,3 +94,20 @@ describe('Build files', () => {
});
});
});
describe('Build files but skip next release', () => {
beforeAll(() => {
shell.cd('website-1.x');
shell.exec('yarn build --skip-next-release', {silent: true});
});
afterAll(() => {
clearBuildFolder();
});
test('Did not generate HTML files from markdown files for next release', () => {
expect(
glob.sync(`${buildDir}/${siteConfig.projectName}/docs/**/next`).length,
).toBe(0);
});
});