Home / File/ parseCSS.test.ts — astro Source File

parseCSS.test.ts — astro Source File

Architecture documentation for parseCSS.test.ts, a typescript file in the astro codebase. 4 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  ccb14f22_6f3c_701f_123a_0f922646b3b9["parseCSS.test.ts"]
  e660f855_08b1_35ca_393f_c779256618fe["../../dist/core/astro2tsx.js"]
  ccb14f22_6f3c_701f_123a_0f922646b3b9 --> e660f855_08b1_35ca_393f_c779256618fe
  64c598ea_3af6_24e9_eb84_ec42b557da91["../../dist/core/parseCSS.js"]
  ccb14f22_6f3c_701f_123a_0f922646b3b9 --> 64c598ea_3af6_24e9_eb84_ec42b557da91
  db323e8c_04ef_9777_0487_224de5819a30["node:assert"]
  ccb14f22_6f3c_701f_123a_0f922646b3b9 --> db323e8c_04ef_9777_0487_224de5819a30
  6b0635f9_51ea_77aa_767b_7857878e98a6["node:test"]
  ccb14f22_6f3c_701f_123a_0f922646b3b9 --> 6b0635f9_51ea_77aa_767b_7857878e98a6
  style ccb14f22_6f3c_701f_123a_0f922646b3b9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import assert from 'node:assert';
import { describe, it } from 'node:test';
import { astro2tsx } from '../../dist/core/astro2tsx.js';
import { extractStylesheets } from '../../dist/core/parseCSS.js';

describe('parseCSS - Can find all the styles in an Astro file', () => {
	it('Can find all the styles in an Astro file, including nested tags', () => {
		const input = `<style>h1{color: blue;}</style><div><style>h2{color: red;}</style></div>`;
		const { ranges } = astro2tsx(input, 'file.astro');

		const styleTags = extractStylesheets(ranges.styles);

		assert.notStrictEqual(styleTags, undefined);
	});
});

Domain

Dependencies

  • ../../dist/core/astro2tsx.js
  • ../../dist/core/parseCSS.js
  • node:assert
  • node:test

Frequently Asked Questions

What does parseCSS.test.ts do?
parseCSS.test.ts is a source file in the astro codebase, written in typescript. It belongs to the CoreAstro domain.
What does parseCSS.test.ts depend on?
parseCSS.test.ts imports 4 module(s): ../../dist/core/astro2tsx.js, ../../dist/core/parseCSS.js, node:assert, node:test.
Where is parseCSS.test.ts in the architecture?
parseCSS.test.ts is located at packages/language-tools/language-server/test/units/parseCSS.test.ts (domain: CoreAstro, directory: packages/language-tools/language-server/test/units).

Analyze Your Own Codebase

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

Try Supermodel Free