mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-18 10:42:31 +02:00
* Fix last updated time misleading, only show when file content change or otherwise when it is first created Fix #1015 * Fix prettier * - Simplify regex - Uses shelljs instead of cross-spawn - Make logic clearer * Add test when repositories is moved * Use shell.exec mock I initially try to mock the whole shelljs. But it returns error shell.exec is not a function when i try to provide the mockResolvedValue I think it is because of the inner code of shelljs who run a forEach to require each of its method which make it a promise. I tried moving the jest.mock inside beforeAll and also adding babel-dynamic-import but it did not solve the problem. In the end, I decided to just mock shelljs.exec since it is the only function used anyway |
||
---|---|---|
.. | ||
__tests__ | ||
nav | ||
anchors.js | ||
BlogPageLayout.js | ||
BlogPost.js | ||
BlogPostLayout.js | ||
BlogSidebar.js | ||
CompLibrary.js | ||
Container.js | ||
Doc.js | ||
DocsLayout.js | ||
DocsSidebar.js | ||
GridBlock.js | ||
Head.js | ||
MarkdownBlock.js | ||
Redirect.js | ||
Remarkable.js | ||
renderMarkdown.js | ||
Site.js | ||
toc.js | ||
toSlug.js | ||
unindent.js | ||
utils.js |