mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-14 17:47:40 +02:00
feat: Add --skip-next-release option to yarn build (#1292)
This commit is contained in:
parent
f04eea6b48
commit
d279836c40
9 changed files with 165 additions and 96 deletions
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue