wip(ssr): restructure

This commit is contained in:
Evan You
2020-01-27 17:23:42 -05:00
parent d293876c34
commit 012bc5df9d
11 changed files with 224 additions and 144 deletions

View File

@@ -0,0 +1 @@
test('ssr: escape HTML', () => {})

View File

@@ -0,0 +1,17 @@
// import { renderToString, renderComponent } from '../src'
describe('ssr: renderToString', () => {
test('basic', () => {})
test('nested components', () => {})
test('nested components with optimized slots', () => {})
test('mixing optimized / vnode components', () => {})
test('nested components with vnode slots', () => {})
test('async components', () => {})
test('parallel async components', () => {})
})

View File

@@ -0,0 +1,29 @@
describe('ssr: render raw vnodes', () => {
test('class', () => {})
test('styles', () => {
// only render numbers for properties that allow no unit numbers
})
describe('attrs', () => {
test('basic', () => {})
test('boolean attrs', () => {})
test('enumerated attrs', () => {})
test('skip falsy values', () => {})
})
describe('domProps', () => {
test('innerHTML', () => {})
test('textContent', () => {})
test('textarea', () => {})
test('other renderable domProps', () => {
// also test camel to kebab case conversion for some props
})
})
})