This commit is contained in:
hackrobot
2024-03-19 12:39:30 +08:00
parent 7a453ad502
commit dcca573450
22 changed files with 367 additions and 0 deletions

12
__tests__/index.test.js Normal file
View File

@@ -0,0 +1,12 @@
import TestUtils from '@tarojs/test-utils-react'
describe('Testing', () => {
test('Test', async () => {
const testUtils = new TestUtils()
await testUtils.createApp()
await testUtils.PageLifecycle.onShow('pages/index/index')
expect(testUtils.html()).toMatchSnapshot()
})
})