mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-03-26 09:14:15 +08:00
Introduces a monorepo structure, relies on yarn workspaces to share
dependencies, and lerna for syncing versions across the monorepo.
* Create 2 workspaces:
'packages' and 'website'
* Create 2 public packages:
'babel-plugin-react-native-web' and 'react-native-web'
* Create 1 private package:
'benchmarks'
A simple release script runs the tests, builds the package assets,
increments the package version numbers, git commits and tags, publishes
the package to npm, pushes the changes to github, and releases the
website update.
Close #657
12 lines
399 B
JavaScript
12 lines
399 B
JavaScript
/* eslint-env jasmine, jest */
|
|
|
|
import Adapter from 'enzyme-adapter-react-16';
|
|
import Enzyme from 'enzyme';
|
|
import createSerializer from '../../packages/react-native-web/jest/createSerializer';
|
|
import { StyleSheet } from '../../packages/react-native-web/src';
|
|
|
|
const serializer = createSerializer(StyleSheet);
|
|
|
|
Enzyme.configure({ adapter: new Adapter() });
|
|
expect.addSnapshotSerializer(serializer);
|