Skip to content

Commit

Permalink
Fix build --stats tests for Windows. (redwoodjs#2883)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterp authored Jun 24, 2021
1 parent 7dee1ee commit 20670b8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/cli/src/commands/__tests__/build.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ test('The build command runs the correct commands.', async () => {
)
).toEqual(true)

expect(
execa.mock.results[2].value.endsWith('core/config/webpack.production.js')
).toEqual(true)
expect(execa.mock.results[2].value.endsWith('webpack.production.js')).toEqual(
true
)
})

test('Should run prerender for web, after build', async () => {
Expand All @@ -86,9 +86,9 @@ test('Should run prerender for web, after build', async () => {
)
).toEqual(true)

expect(
execa.mock.results[1].value.endsWith('core/config/webpack.production.js')
).toEqual(true)
expect(execa.mock.results[1].value.endsWith('webpack.production.js')).toEqual(
true
)

expect(getPrerenderTasks).toHaveBeenCalled()
})
Expand Down

0 comments on commit 20670b8

Please sign in to comment.