Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@mojotech/prismatest-adapter-tests
Advanced tools
Tests for the adapters used with the Prismatest library
This module exports a set of tests that should be used when implementing adapters. They ensure that the adapters all adhere to a common baseline of functionality.
Using these tests is simple. Simply import the generateTests
helper and call
it. Provide your adapter and a way to render a JSX element with your adapter.
For example:
import { generateTests } from '@mojotech/prismatest-adapter-tests';
import myAdapter from './index';
import * as ReactDOM from 'react-dom';
generateTests(myAdapter, e => {
const domContainer = document.createElement('div');
ReactDOM.render(e, domContainer);
return domContainer;
});
These tests ensure that the default views all behave similarly for each adapter.
FAQs
Tests for the adapters used with the Prismatest library
We found that @mojotech/prismatest-adapter-tests demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.