UNPKG

@focus-reactive/graphql-content-layer

Version:

[![npm version](https://badge.fury.io/js/%40focus-reactive%2Fgraphql-content-layer.svg)](https://badge.fury.io/js/%40focus-reactive%2Fgraphql-content-layer) # GitNation GraphQL Content Layer

24 lines (21 loc) 582 B
import { getSettings } from '../develop/conference-settings'; import { getContent } from '../src'; import { createReport } from '../utils/content-report'; describe('RS', () => { const settings = getSettings(); it.each([ 'pages', 'conference', 'speakers', 'sponsors', 'schedule', 'tracks', 'talks', 'workshops', 'otherContent', ])('should prepare %s', async contentSection => { const content = await getContent(settings.mlconf); const report = createReport(content); expect(report[contentSection]).toMatchSnapshot(); }); });