vue3-yuanma/packages/runtime-test
2019-12-17 12:31:38 -05:00
..
__tests__ fix(runtime-test): output empty attrs without value in seralized output 2019-12-17 12:31:38 -05:00
src fix(runtime-test): output empty attrs without value in seralized output 2019-12-17 12:31:38 -05:00
api-extractor.json build: use api-extractor for type rollup 2019-09-03 12:16:22 -04:00
index.js refactor: rename packages 2018-10-26 15:44:50 -04:00
LICENSE chore: license 2019-10-28 11:15:17 -04:00
package.json build: adjust global names + allow inline overrides of build flags 2019-12-15 15:37:43 -05:00
README.md chore: update readme for runtime-test 2019-11-28 14:43:12 -05:00

@vue/runtime-test

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)