Klimi's new dotfiles with stow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
560 B

4 years ago
  1. # -*- mode: snippet -*-
  2. # uuid: fae867ad-ec86-4eff-bb90-a9bb07040eb7
  3. # contributor: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
  4. # name: setupReactNativeTest
  5. # key: sntest
  6. # --
  7. import 'react-native'
  8. import React from 'react'
  9. import renderer from 'react-test-renderer'
  10. import ${1:${TM_FILENAME_BASE}} from '../${1:${TM_FILENAME_BASE}}'
  11. describe('<${1:${TM_FILENAME_BASE}} />', () => {
  12. const defaultProps = {}
  13. const wrapper = renderer.create(<${1:${TM_FILENAME_BASE}} {...defaultProps} />)
  14. test('render', () => {
  15. expect(wrapper).toMatchSnapshot()
  16. })
  17. })