mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-18 19:46:57 +02:00
fix(v2): fix chokidar/watcher does not trigger reload on windows (#1943)
* fix(v2): fix chokidar/watcher does not trigger reload on windows * nits * nits * stronger test
This commit is contained in:
parent
ff83e6f8bc
commit
baa884fe2e
7 changed files with 35 additions and 4 deletions
|
@ -25,6 +25,8 @@ describe('load utils', () => {
|
|||
'\\\\?\\c:\\aaaa\\bbbb': '\\\\?\\c:\\aaaa\\bbbb',
|
||||
'c:\\aaaa\\bbbb': 'c:/aaaa/bbbb',
|
||||
'foo\\bar': 'foo/bar',
|
||||
'foo\\bar/lol': 'foo/bar/lol',
|
||||
'website\\docs/**/*.{md,mdx}': 'website/docs/**/*.{md,mdx}',
|
||||
};
|
||||
Object.keys(asserts).forEach(file => {
|
||||
expect(posixPath(file)).toBe(asserts[file]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue