Skip to content

Commit 53ac10c

Browse files
committed
chore: add e2e test
1 parent 32ddcfb commit 53ac10c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cypress/integration/nx/general.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,11 @@ describe('Default site', () => {
1616
expect(res.headers['content-type']).to.match(/javascript/)
1717
})
1818
})
19+
20+
it('serves API routes', () => {
21+
cy.request('/api/hello').then((res) => {
22+
expect(res.status).to.eq(200)
23+
expect(res.body).to.deep.eq({ body: 'Hello world' })
24+
})
25+
})
1926
})

0 commit comments

Comments
 (0)