ssr-string.spec.ts — vue Source File
Architecture documentation for ssr-string.spec.ts, a typescript file in the vue codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR b83ee0a6_1b8a_cd6a_addd_03cbd089f607["ssr-string.spec.ts"] 956d7d9b_217a_5f25_93ba_c8cfdb8ce2c5["utils.ts"] b83ee0a6_1b8a_cd6a_addd_03cbd089f607 --> 956d7d9b_217a_5f25_93ba_c8cfdb8ce2c5 d432f199_b043_8a75_c1de_348fb2c2ba54["_it"] b83ee0a6_1b8a_cd6a_addd_03cbd089f607 --> d432f199_b043_8a75_c1de_348fb2c2ba54 c5601857_7faf_30c6_efca_20de90db006c["vue"] b83ee0a6_1b8a_cd6a_addd_03cbd089f607 --> c5601857_7faf_30c6_efca_20de90db006c a9dcecd4_2209_6abf_4833_b95afd17b72a["vm"] b83ee0a6_1b8a_cd6a_addd_03cbd089f607 --> a9dcecd4_2209_6abf_4833_b95afd17b72a e470ee39_c7fb_5d09_8d77_4de2a23d9ce8["index"] b83ee0a6_1b8a_cd6a_addd_03cbd089f607 --> e470ee39_c7fb_5d09_8d77_4de2a23d9ce8 style b83ee0a6_1b8a_cd6a_addd_03cbd089f607 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// @vitest-environment node
import Vue from 'vue'
import VM from 'vm'
import { createRenderer } from 'server/index'
import { _it } from './utils'
const { renderToString } = createRenderer()
describe('SSR: renderToString', () => {
_it('static attributes', done => {
renderVmWithOptions(
{
template: '<div id="foo" bar="123"></div>'
},
result => {
expect(result).toContain(
'<div id="foo" bar="123" data-server-rendered="true"></div>'
)
done()
}
)
})
_it('unary tags', done => {
renderVmWithOptions(
{
template: '<input value="123">'
},
result => {
expect(result).toContain(
'<input value="123" data-server-rendered="true">'
)
done()
}
)
})
_it('dynamic attributes', done => {
renderVmWithOptions(
{
template: '<div qux="quux" :id="foo" :bar="baz"></div>',
data: {
foo: 'hi',
baz: 123
}
},
result => {
expect(result).toContain(
'<div qux="quux" id="hi" bar="123" data-server-rendered="true"></div>'
)
done()
}
)
})
_it('static class', done => {
renderVmWithOptions(
{
template: '<div class="foo bar"></div>'
// ... (2107 more lines)
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does ssr-string.spec.ts do?
ssr-string.spec.ts is a source file in the vue codebase, written in typescript. It belongs to the CompilerSFC domain, TemplateTransformer subdomain.
What functions are defined in ssr-string.spec.ts?
ssr-string.spec.ts defines 1 function(s): renderVmWithOptions.
What does ssr-string.spec.ts depend on?
ssr-string.spec.ts imports 5 module(s): _it, index, utils.ts, vm, vue.
Where is ssr-string.spec.ts in the architecture?
ssr-string.spec.ts is located at packages/server-renderer/test/ssr-string.spec.ts (domain: CompilerSFC, subdomain: TemplateTransformer, directory: packages/server-renderer/test).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free