Home / File/ vitest-xhtml-environment.ts — svelte Source File

vitest-xhtml-environment.ts — svelte Source File

Architecture documentation for vitest-xhtml-environment.ts, a typescript file in the svelte codebase. 1 imports, 0 dependents.

File typescript Compiler Parser 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  025d6955_c133_c078_6fb4_d717dd19ec98["vitest-xhtml-environment.ts"]
  d929f881_db26_33b0_ae26_793616cf216c["environments"]
  025d6955_c133_c078_6fb4_d717dd19ec98 --> d929f881_db26_33b0_ae26_793616cf216c
  style 025d6955_c133_c078_6fb4_d717dd19ec98 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { type Environment, builtinEnvironments } from 'vitest/environments';

const xhtml_page = `<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body></body></html>`;

export default <Environment>{
	name: 'jsdom-xhtml',
	transformMode: 'web',
	setup(global, { jsdom = {} }) {
		return builtinEnvironments.jsdom.setup(global, {
			jsdom: {
				...jsdom,
				html: xhtml_page,
				contentType: 'application/xhtml+xml'
			}
		});
	}
};

Domain

Subdomains

Functions

Dependencies

  • environments

Frequently Asked Questions

What does vitest-xhtml-environment.ts do?
vitest-xhtml-environment.ts is a source file in the svelte codebase, written in typescript. It belongs to the Compiler domain, Parser subdomain.
What functions are defined in vitest-xhtml-environment.ts?
vitest-xhtml-environment.ts defines 1 function(s): default.setup.
What does vitest-xhtml-environment.ts depend on?
vitest-xhtml-environment.ts imports 1 module(s): environments.
Where is vitest-xhtml-environment.ts in the architecture?
vitest-xhtml-environment.ts is located at vitest-xhtml-environment.ts (domain: Compiler, subdomain: Parser).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free