docusaurus/v1/lib/core
Fienny Angelina a39677c202 fix: exclude file movements for last updated time (#1023)
* 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
2018-10-14 14:09:39 -07:00
..
__tests__ fix: exclude file movements for last updated time (#1023) 2018-10-14 14:09:39 -07:00
nav fix: change subcategory format (#1026) 2018-10-10 08:33:20 -07:00
anchors.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
BlogPageLayout.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
BlogPost.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
BlogPostLayout.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
BlogSidebar.js fix: change subcategory format (#1026) 2018-10-10 08:33:20 -07:00
CompLibrary.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
Container.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
Doc.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
DocsLayout.js fix: change subcategory format (#1026) 2018-10-10 08:33:20 -07:00
DocsSidebar.js fix: change subcategory format (#1026) 2018-10-10 08:33:20 -07:00
GridBlock.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
Head.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
MarkdownBlock.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
Redirect.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
Remarkable.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
renderMarkdown.js fix: highlightjs custom highlighting function(#1016) 2018-10-05 15:59:24 +08:00
Site.js feat: add keyboard shortcut to focus search (#1028) 2018-10-11 22:50:12 -07:00
toc.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
toSlug.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
unindent.js Move Docusaurus 1 files into directory (#966) 2018-09-18 00:58:07 +08:00
utils.js fix: exclude file movements for last updated time (#1023) 2018-10-14 14:09:39 -07:00