index.test.js 296 B

123456789101112
  1. import TestUtils from '@tarojs/test-utils-react'
  2. describe('Testing', () => {
  3. test('Test', async () => {
  4. const testUtils = new TestUtils()
  5. await testUtils.createApp()
  6. await testUtils.PageLifecycle.onShow('pages/index/index')
  7. expect(testUtils.html()).toMatchSnapshot()
  8. })
  9. })