Closed akabekobeko closed 3 years ago
refs #22
Windows cannot handle paths properly.
gatsby-remark-copy-relative-linked-files › Plugin › image › Copy expect(received).toBe(expected) // Object.is equality Expected: "/sample.jpg" Received: "\\sample.jpg" 166 | 167 | expect(FsExtra.copy).toHaveBeenCalled() > 168 | expect(markdownAST.children[0].children[0].url).toBe(`/${path}`) | ^ 169 | }) 170 | 171 | test('Copy with linkPrefix', async () => { at Object.<anonymous> (src/index.test.js:168:57)
It may be possible to fix it by using upath.
upath
On Windows, upath now treats path delimiters as /. The Windows test is also green, so close it.
/
refs #22
Windows cannot handle paths properly.