Skip to content

Commit

Permalink
test: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
TrickyPi committed Mar 7, 2022
1 parent 458c4c5 commit 7d90e1b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vite/src/node/ssr/__tests__/ssrModuleLoader.spec.ts
Expand Up @@ -18,6 +18,9 @@ test('always throw error when evaluating an wrong SSR module', async () => {
await viteServer.close()
expect(expectedErrors).toHaveLength(2)
expect(expectedErrors[0]).toBe(expectedErrors[1])
expectedErrors.forEach((error) => {
expect(error?.message).toContain(THROW_MESSAGE)
})
expect(spy).toBeCalledTimes(2)
spy.mock.calls.forEach(([info]) => {
expect(info).toContain('Error when evaluating SSR module')
Expand Down

0 comments on commit 7d90e1b

Please sign in to comment.