Back

86.66% Statements 13/15
50% Branches 1/2
100% Functions 0/0
86.66% Lines 13/15

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 161x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x      
#!/usr/bin/env node
 
/**
 * Post-build check: fail the build when a polyfilled package imports a symbol the
 * shipped version of another polyfilled package does not export (the Jetpack 16.0
 * blank-dashboard failure mode). See validate-export-contract-lib.js.
 */
 
const { validateExportContracts } = require( './validate-export-contract-lib.js' );
 
const result = validateExportContracts();
 
if ( ! result.ok ) {
	throw new Error( result.error );
}