Evan You 0e8bbe873e release: v3.3.4 %!s(int64=2) %!d(string=hai) anos
..
__tests__ d1181ad692 fix(build): avoid const enum conflicts %!s(int64=3) %!d(string=hai) anos
src d1181ad692 fix(build): avoid const enum conflicts %!s(int64=3) %!d(string=hai) anos
LICENSE 34989ef7fe chore: license %!s(int64=6) %!d(string=hai) anos
README.md 218e6e1667 build: adjust build formats %!s(int64=6) %!d(string=hai) anos
index.js e05673f4d3 refactor: rename packages %!s(int64=7) %!d(string=hai) anos
package.json 0e8bbe873e release: v3.3.4 %!s(int64=2) %!d(string=hai) anos

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)