mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-01-12 22:51:09 +08:00
A simple Jest preset that configures module mapping and produces human-readable styles (i.e., not converted to numeric form). Fix #928 Fix #963
11 lines
273 B
JavaScript
11 lines
273 B
JavaScript
/* eslint-env jasmine, jest */
|
|
|
|
import Adapter from 'enzyme-adapter-react-16';
|
|
import Enzyme from 'enzyme';
|
|
import serializer from './serializer';
|
|
|
|
Enzyme.configure({ adapter: new Adapter() });
|
|
|
|
// TODO: move off legacy serializer
|
|
expect.addSnapshotSerializer(serializer);
|