daiwei 8c1f61d050 chore: format 7 ay önce
..
__tests__ 33cd61356f chore(runtime-test): remove useless test code (#11483) 1 yıl önce
src b1db66a1a9 chore(deps): upgrade to TypeScript 5.6 1 yıl önce
LICENSE 34989ef7fe chore: license 6 yıl önce
README.md 8c1f61d050 chore: format 7 ay önce
index.js e05673f4d3 refactor: rename packages 7 yıl önce
package.json fc772dbf73 chore: exclude private packages from version updates 2 yıl önce

README.md

@vue/runtime-test

This is for Vue's own internal tests only - it ensures logic tested using this package is DOM-agnostic, and it runs faster than JSDOM.

It can also be used as a reference for implementing a custom renderer.

import { h, render, nodeOps, dumpOps } from '@vue/runtime-test'

const App = {
  data() {
    return {
      msg: 'Hello World!',
    }
  },
  render() {
    return h('div', this.msg)
  },
}

// root is of type `TestElement` as defined in src/nodeOps.ts
const root = nodeOps.createElement('div')
render(h(App), root)

const ops = dumpOps()
console.log(ops)