SourcemapTest Type — svelte Architecture
Architecture documentation for the SourcemapTest type/interface in test.ts from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 4176b62b_7ed8_409d_725e_0eeea58af3a5["SourcemapTest"] 032186a9_8a8b_b603_4335_6ade22d767cb["test.ts"] 4176b62b_7ed8_409d_725e_0eeea58af3a5 -->|defined in| 032186a9_8a8b_b603_4335_6ade22d767cb style 4176b62b_7ed8_409d_725e_0eeea58af3a5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/sourcemaps/test.ts lines 23–51
interface SourcemapTest extends BaseTest {
options?: { filename: string };
compileOptions?: Partial<import('#compiler').CompileOptions>;
preprocess?:
| import('../../src/compiler/public').PreprocessorGroup
| import('../../src/compiler/public').PreprocessorGroup[];
/** The expected `sources` array in the source map */
js_map_sources?: string[];
/** The expected `sources` array in the source map */
css_map_sources?: string[];
test?: (obj: {
assert: typeof assert;
input: string;
map_preprocessed: any;
code_preprocessed: string;
map_css: any;
code_css: string;
map_client: any;
code_client: string;
}) => void;
/** Mappings to check in generated client code */
client?: SourceMapEntry[] | null;
/** Mappings to check in generated server code. If left out, will use the client code checks */
server?: SourceMapEntry[];
/** Mappings to check in generated css code */
css?: SourceMapEntry[] | null;
/** Mappings to check in preprocessed Svelte code */
preprocessed?: SourceMapEntry[];
}
Defined In
Source
Frequently Asked Questions
What is the SourcemapTest type?
SourcemapTest is a type/interface in the svelte codebase, defined in packages/svelte/tests/sourcemaps/test.ts.
Where is SourcemapTest defined?
SourcemapTest is defined in packages/svelte/tests/sourcemaps/test.ts at line 23.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free