• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kiva / ui / 15721249898

18 Jun 2025 12:51AM UTC coverage: 52.564% (+4.7%) from 47.872%
15721249898

Pull #6091

github

web-flow
Merge 1f8983303 into e6c7ae52e
Pull Request #6091: feat: cacheable server-side rendering

1789 of 3594 branches covered (49.78%)

Branch coverage included in aggregate %.

276 of 398 new or added lines in 38 files covered. (69.35%)

7 existing lines in 4 files now uncovered.

2629 of 4811 relevant lines covered (54.65%)

280.98 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/api/ContentfulPreviewLink.js
1
import { ApolloLink } from '@apollo/client/core/index';
2

3
export default ({ route }) => {
4
        return new ApolloLink((operation, forward) => {
×
5
                // Only do this on contentful queries
NEW
6
                if (route && operation.operationName.includes('contentful')) {
×
7
                        // Fetch preview value from route query
8
                        const isPreview = route?.query?.preview === 'true';
×
9
                        // Add the preview variable to the current query
10
                        if (!operation?.variables?.preview && isPreview) {
×
11
                                // eslint-disable-next-line no-param-reassign
12
                                operation.variables.preview = true;
×
13
                        }
14
                }
15

16
                return forward(operation);
×
17
        });
18
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc