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

generator.test.js — astro Source File

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

Entity Profile

Dependency Diagram

graph LR
  8849aa05_711f_def3_37c9_4b9ac8ac43c0["generator.test.js"]
  7544e516_e143_8430_aa00_4c92fb35825a["../../../dist/core/routing/manifest/generator.js"]
  8849aa05_711f_def3_37c9_4b9ac8ac43c0 --> 7544e516_e143_8430_aa00_4c92fb35825a
  e1e2fac7_5a95_7a88_cb1e_0a3b91c4e607["strict"]
  8849aa05_711f_def3_37c9_4b9ac8ac43c0 --> e1e2fac7_5a95_7a88_cb1e_0a3b91c4e607
  6b0635f9_51ea_77aa_767b_7857878e98a6["node:test"]
  8849aa05_711f_def3_37c9_4b9ac8ac43c0 --> 6b0635f9_51ea_77aa_767b_7857878e98a6
  style 8849aa05_711f_def3_37c9_4b9ac8ac43c0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import * as assert from 'node:assert/strict';
import { describe, it } from 'node:test';

import { getRouteGenerator } from '../../../dist/core/routing/manifest/generator.js';

describe('routing - generator', () => {
	[
		{
			routeData: [],
			trailingSlash: 'never',
			params: {},
			path: '/',
		},
		{
			routeData: [],
			trailingSlash: 'always',
			params: {},
			path: '/',
		},
		{
			routeData: [[{ spread: false, content: 'test', dynamic: false }]],
			trailingSlash: 'never',
			params: {},
			path: '/test',
		},
		{
			routeData: [[{ spread: false, content: 'test', dynamic: false }]],
			trailingSlash: 'always',
			params: {},
			path: '/test/',
		},
		{
			routeData: [[{ spread: false, content: 'test', dynamic: false }]],
			trailingSlash: 'always',
			params: { foo: 'bar' },
			path: '/test/',
		},
		{
			routeData: [[{ spread: false, content: 'foo', dynamic: true }]],
			trailingSlash: 'always',
			params: { foo: 'bar' },
			path: '/bar/',
		},
		{
			routeData: [[{ spread: false, content: 'foo', dynamic: true }]],
			trailingSlash: 'never',
			params: { foo: 'bar' },
			path: '/bar',
		},
		{
			routeData: [[{ spread: true, content: '...foo', dynamic: true }]],
			trailingSlash: 'never',
			params: {},
			path: '/',
		},
		{
			routeData: [
				[
					{ spread: true, content: '...foo', dynamic: true },
					{ spread: false, content: '-', dynamic: false },
// ... (93 more lines)

Dependencies

  • ../../../dist/core/routing/manifest/generator.js
  • node:test
  • strict

Frequently Asked Questions

What does generator.test.js do?
generator.test.js is a source file in the astro codebase, written in javascript. It belongs to the IntegrationAdapters domain.
What does generator.test.js depend on?
generator.test.js imports 3 module(s): ../../../dist/core/routing/manifest/generator.js, node:test, strict.
Where is generator.test.js in the architecture?
generator.test.js is located at packages/astro/test/units/routing/generator.test.js (domain: IntegrationAdapters, directory: packages/astro/test/units/routing).

Analyze Your Own Codebase

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

Try Supermodel Free