Home / File/ prism.test.js — astro Source File

prism.test.js — astro Source File

Architecture documentation for prism.test.js, a javascript file in the astro codebase. 3 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  ec9653b2_e73a_8f15_6a67_978975929e11["prism.test.js"]
  8350d254_ac08_0a3a_4696_d1a19f979b3a["../dist/index.js"]
  ec9653b2_e73a_8f15_6a67_978975929e11 --> 8350d254_ac08_0a3a_4696_d1a19f979b3a
  e1e2fac7_5a95_7a88_cb1e_0a3b91c4e607["strict"]
  ec9653b2_e73a_8f15_6a67_978975929e11 --> e1e2fac7_5a95_7a88_cb1e_0a3b91c4e607
  6b0635f9_51ea_77aa_767b_7857878e98a6["node:test"]
  ec9653b2_e73a_8f15_6a67_978975929e11 --> 6b0635f9_51ea_77aa_767b_7857878e98a6
  style ec9653b2_e73a_8f15_6a67_978975929e11 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import assert from 'node:assert/strict';
import { describe, it } from 'node:test';
import { createMarkdownProcessor } from '../dist/index.js';

describe('prism syntax highlighting', () => {
	it('does not add is:raw to the output', async () => {
		const processor = await createMarkdownProcessor({
			syntaxHighlight: 'prism',
		});
		const { code } = await processor.render('```\ntest\n```');

		assert.ok(!code.includes('is:raw'));
	});
});

Domain

Dependencies

  • ../dist/index.js
  • node:test
  • strict

Frequently Asked Questions

What does prism.test.js do?
prism.test.js is a source file in the astro codebase, written in javascript. It belongs to the CoreAstro domain.
What does prism.test.js depend on?
prism.test.js imports 3 module(s): ../dist/index.js, node:test, strict.
Where is prism.test.js in the architecture?
prism.test.js is located at packages/markdown/remark/test/prism.test.js (domain: CoreAstro, directory: packages/markdown/remark/test).

Analyze Your Own Codebase

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

Try Supermodel Free