How to use the @cypress/schema-tools.assertSchema function in @cypress/schema-tools

To help you get started, we’ve selected a few @cypress/schema-tools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github garmeeh / next-seo / cypress / e2e / jsonld.spec.js View on Github external
.then(tags => {
        const jsonLD = JSON.parse(tags[courseLdJsonIndex].innerHTML);
        assertSchema(schemas)('Course', '1.0.0')(jsonLD);
      });
  });

@cypress/schema-tools

Validate, sanitize and document JSON schemas

MIT
Latest version published 2 years ago

Package Health Score

50 / 100
Full package analysis