Home / File/ server-entry.test.js — astro Source File

server-entry.test.js — astro Source File

Architecture documentation for server-entry.test.js, a javascript file in the astro codebase. 6 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  78abe30b_5c3c_1fbc_340e_669bc468c433["server-entry.test.js"]
  635e1221_67bb_e784_624a_d6d63643872b["_test-utils.js"]
  78abe30b_5c3c_1fbc_340e_669bc468c433 --> 635e1221_67bb_e784_624a_d6d63643872b
  33b9a01d_12ac_568f_9775_9e80b35139cb["loadFixture"]
  78abe30b_5c3c_1fbc_340e_669bc468c433 --> 33b9a01d_12ac_568f_9775_9e80b35139cb
  6b0635f9_51ea_77aa_767b_7857878e98a6["node:test"]
  78abe30b_5c3c_1fbc_340e_669bc468c433 --> 6b0635f9_51ea_77aa_767b_7857878e98a6
  e1e2fac7_5a95_7a88_cb1e_0a3b91c4e607["strict"]
  78abe30b_5c3c_1fbc_340e_669bc468c433 --> e1e2fac7_5a95_7a88_cb1e_0a3b91c4e607
  e16a223b_37f3_6b25_1ee1_2b7bcb9d9415["node:fs"]
  78abe30b_5c3c_1fbc_340e_669bc468c433 --> e16a223b_37f3_6b25_1ee1_2b7bcb9d9415
  d9a92db9_c95e_9165_13ac_24b3d859d946["node:url"]
  78abe30b_5c3c_1fbc_340e_669bc468c433 --> d9a92db9_c95e_9165_13ac_24b3d859d946
  style 78abe30b_5c3c_1fbc_340e_669bc468c433 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { describe, it } from 'node:test';
import { loadFixture } from './_test-utils.js';
import assert from 'node:assert/strict';
import { existsSync } from 'node:fs';
import { fileURLToPath } from 'node:url';

describe('Server entry', () => {
	let fixture;
	it('should load the custom entry when using legacy entrypoint', async () => {
		fixture = await loadFixture({
			root: './fixtures/server-entry',
			output: 'server',
		});

		await fixture.build();

		const itExits = existsSync(
			fileURLToPath(new URL('_worker.js/custom.mjs', fixture.config.outDir)),
		);

		assert.ok(itExits);
	});
});

Domain

Dependencies

Frequently Asked Questions

What does server-entry.test.js do?
server-entry.test.js is a source file in the astro codebase, written in javascript. It belongs to the CoreAstro domain.
What does server-entry.test.js depend on?
server-entry.test.js imports 6 module(s): _test-utils.js, loadFixture, node:fs, node:test, node:url, strict.
Where is server-entry.test.js in the architecture?
server-entry.test.js is located at packages/integrations/cloudflare/test/server-entry.test.js (domain: CoreAstro, directory: packages/integrations/cloudflare/test).

Analyze Your Own Codebase

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

Try Supermodel Free