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

featuresSupport.test.js — astro Source File

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

Entity Profile

Dependency Diagram

graph LR
  559b1e12_8d16_ca2c_f837_4ca8985ad903["featuresSupport.test.js"]
  be670a78_841c_46e5_0af5_c5c328869ecb["test-adapter.js"]
  559b1e12_8d16_ca2c_f837_4ca8985ad903 --> be670a78_841c_46e5_0af5_c5c328869ecb
  0a624eac_945e_c9e8_c9de_3feb9de2dd15["test-utils.js"]
  559b1e12_8d16_ca2c_f837_4ca8985ad903 --> 0a624eac_945e_c9e8_c9de_3feb9de2dd15
  dd4f09ce_3fd7_8295_f616_8876cda4555c["loadFixture"]
  559b1e12_8d16_ca2c_f837_4ca8985ad903 --> dd4f09ce_3fd7_8295_f616_8876cda4555c
  e1e2fac7_5a95_7a88_cb1e_0a3b91c4e607["strict"]
  559b1e12_8d16_ca2c_f837_4ca8985ad903 --> e1e2fac7_5a95_7a88_cb1e_0a3b91c4e607
  6b0635f9_51ea_77aa_767b_7857878e98a6["node:test"]
  559b1e12_8d16_ca2c_f837_4ca8985ad903 --> 6b0635f9_51ea_77aa_767b_7857878e98a6
  style 559b1e12_8d16_ca2c_f837_4ca8985ad903 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import assert from 'node:assert/strict';
import { describe, it } from 'node:test';
import testAdapter from './test-adapter.js';
import { loadFixture } from './test-utils.js';

describe('Adapter', () => {
	let fixture;

	it("should error if the adapter doesn't support edge middleware", async () => {
		try {
			fixture = await loadFixture({
				root: './fixtures/middleware space/',
				output: 'server',
				adapter: testAdapter({
					extendAdapter: {
						supportedAstroFeatures: {},
					},
				}),
			});
			await fixture.build();
		} catch (e) {
			assert.equal(
				e
					.toString()
					.includes("The adapter my-ssr-adapter doesn't support the feature build.middleware."),
				true,
			);
		}
	});

	it("should error if the adapter doesn't support split build", async () => {
		try {
			fixture = await loadFixture({
				root: './fixtures/middleware space/',
				output: 'server',
				adapter: testAdapter({
					extendAdapter: {
						supportedAstroFeatures: {},
					},
				}),
			});
			await fixture.build();
		} catch (e) {
			assert.equal(
				e
					.toString()
					.includes("The adapter my-ssr-adapter doesn't support the feature build.split."),
				true,
			);
		}
	});
});

Dependencies

Frequently Asked Questions

What does featuresSupport.test.js do?
featuresSupport.test.js is a source file in the astro codebase, written in javascript. It belongs to the IntegrationAdapters domain.
What does featuresSupport.test.js depend on?
featuresSupport.test.js imports 5 module(s): loadFixture, node:test, strict, test-adapter.js, test-utils.js.
Where is featuresSupport.test.js in the architecture?
featuresSupport.test.js is located at packages/astro/test/featuresSupport.test.js (domain: IntegrationAdapters, directory: packages/astro/test).

Analyze Your Own Codebase

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

Try Supermodel Free