Skip to content

Commit

Permalink
fix test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieudutour committed Mar 12, 2019
1 parent 2f6c4dc commit 1142dc3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ jest.mock(`../../../redux/`, () => {

jest.mock(`../../../utils/cache`, () => {
return {
cachePath: filePath => `my/gatsby/project/.cache/${filePath}`,
cachePath: filePath =>
require(`path`).join(`my`, `gatsby`, `project`, `.cache`, filePath),
}
})

Expand Down

0 comments on commit 1142dc3

Please sign in to comment.