How to use the jest-fela-bindings.createSnapshotFactory function in jest-fela-bindings

To help you get started, we’ve selected a few jest-fela-bindings 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 robinweser / fela / packages / jest-react-fela / src / createSnapshot.js View on Github external
import { createElement } from 'react'
import { render } from 'react-dom'
import { createRenderer } from 'fela'
import { RendererProvider, ThemeProvider } from 'react-fela'

import { createSnapshotFactory } from 'jest-fela-bindings'

export default createSnapshotFactory(
  createElement,
  render,
  createRenderer(),
  RendererProvider,
  ThemeProvider
)
github robinweser / fela / packages / jest-inferno-fela / src / createSnapshot.js View on Github external
import { render } from 'inferno'
import { createElement } from 'inferno-create-element'
import { createRenderer } from 'fela'
import { RendererProvider, ThemeProvider } from 'inferno-fela'

import { createSnapshotFactory } from 'jest-fela-bindings'

export default createSnapshotFactory(
  createElement,
  render,
  createRenderer(),
  RendererProvider,
  ThemeProvider
)
github robinweser / fela / packages / jest-preact-fela / src / createSnapshot.js View on Github external
import { createElement, render } from 'preact'
import { createRenderer } from 'fela'
import { RendererProvider, ThemeProvider } from 'preact-fela'

import { createSnapshotFactory } from 'jest-fela-bindings'

export default createSnapshotFactory(
  createElement,
  render,
  createRenderer(),
  RendererProvider,
  ThemeProvider
)

jest-fela-bindings

Abstract Fela bindings for Jest

MIT
Latest version published 2 years ago

Package Health Score

60 / 100
Full package analysis

Popular jest-fela-bindings functions