@focus-reactive/graphql-content-layer
Version:
[](https://badge.fury.io/js/%40focus-reactive%2Fgraphql-content-layer) # GitNation GraphQL Content Layer
24 lines (21 loc) • 580 B
JavaScript
import { getSettings } from '../develop/conference-settings';
import { getContent } from '../src';
import { createReport } from '../utils/content-report';
describe('JSN', () => {
const settings = getSettings();
it.each([
'pages',
'conference',
'speakers',
'sponsors',
'schedule',
'tracks',
'talks',
'workshops',
'otherContent',
])('should prepare %s', async contentSection => {
const content = await getContent(settings.jsn);
const report = createReport(content);
expect(report[contentSection]).toMatchSnapshot();
});
});