headers.test.js — astro Source File
Architecture documentation for headers.test.js, a javascript file in the astro codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR f0da524a_9555_35f9_6f22_31884d02c97a["headers.test.js"] 0a624eac_945e_c9e8_c9de_3feb9de2dd15["test-utils.js"] f0da524a_9555_35f9_6f22_31884d02c97a --> 0a624eac_945e_c9e8_c9de_3feb9de2dd15 dd4f09ce_3fd7_8295_f616_8876cda4555c["loadFixture"] f0da524a_9555_35f9_6f22_31884d02c97a --> dd4f09ce_3fd7_8295_f616_8876cda4555c e1e2fac7_5a95_7a88_cb1e_0a3b91c4e607["strict"] f0da524a_9555_35f9_6f22_31884d02c97a --> e1e2fac7_5a95_7a88_cb1e_0a3b91c4e607 6b0635f9_51ea_77aa_767b_7857878e98a6["node:test"] f0da524a_9555_35f9_6f22_31884d02c97a --> 6b0635f9_51ea_77aa_767b_7857878e98a6 style f0da524a_9555_35f9_6f22_31884d02c97a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import * as assert from 'node:assert/strict';
import { before, describe, it } from 'node:test';
import { loadFixture } from '../../../../astro/test/test-utils.js';
describe('SSG - headers', () => {
let fixture;
before(async () => {
fixture = await loadFixture({ root: new URL('./fixtures/redirects/', import.meta.url) });
await fixture.build();
});
it('Generates headers for static assets', async () => {
const config = await fixture.readFile('../.netlify/v1/config.json');
const headers = JSON.parse(config).headers;
assert.deepEqual(headers, [
{
for: '/_astro/*',
values: {
'Cache-Control': 'public, max-age=31536000, immutable',
},
},
]);
});
});
Domain
Dependencies
- loadFixture
- node:test
- strict
- test-utils.js
Source
Frequently Asked Questions
What does headers.test.js do?
headers.test.js is a source file in the astro codebase, written in javascript. It belongs to the CoreAstro domain.
What does headers.test.js depend on?
headers.test.js imports 4 module(s): loadFixture, node:test, strict, test-utils.js.
Where is headers.test.js in the architecture?
headers.test.js is located at packages/integrations/netlify/test/static/headers.test.js (domain: CoreAstro, directory: packages/integrations/netlify/test/static).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free