Files
react-navigation/example/e2e/__integration_tests__/server.test.tsx
2021-05-26 21:29:11 +02:00

14 lines
299 B
TypeScript

import cheerio from 'cheerio';
import fetch from 'node-fetch';
const server = 'http://localhost:3275';
it('renders the home page', async () => {
const res = await fetch(server);
const html = await res.text();
const $ = cheerio.load(html);
expect($('title').text()).toBe('Examples');
});