0.1.11 • Published 4 years ago

@mojotech/prismatest-adapter-tests v0.1.11

Weekly downloads
13
License
MIT
Repository
-
Last release
4 years ago

Prismatest Adapter Tests

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.

Applying

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;
});

Default View Tests

These tests ensure that the default views all behave similarly for each adapter.

0.1.11

4 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago