You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Evan You 80c868aefe workflow: setup eslint for prohibited syntax and globals 5 years ago
..
__tests__ refactor: move mockWarn utility to @vue/shared 6 years ago
src workflow: setup eslint for prohibited syntax and globals 5 years ago
LICENSE chore: license 6 years ago
README.md build: adjust build formats 5 years ago
api-extractor.json refactor(types): mark internal API exports and exclude from d.ts 5 years ago
index.js refactor: rename packages 7 years ago
package.json release: v3.0.0-beta.14 5 years ago

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)