test(runtime-vapor): add misc test (#246)

This commit is contained in:
XiaoDong 2024-06-21 23:51:37 +08:00 committed by GitHub
parent 07444b3266
commit 63dbc26f34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
import { isReactive, reactive } from 'vue'
import { makeRender } from './_utils'
const define = makeRender()
describe('misc', () => {
test.fails('component public instance should not be observable', () => {
const { instance } = define({}).render()
expect(instance).toBeDefined()
const r = reactive(instance!)
expect(r).toBe(instance)
expect(isReactive(r)).toBe(false)
})
})