feat: establish nightdrive visual foundation

This commit is contained in:
2026-09-02 13:55:01 +03:00
parent f1e156fba7
commit 24afda8710
8 changed files with 193 additions and 47 deletions

View File

@@ -53,6 +53,23 @@ describe('trusted Vite asset closure', () => {
});
});
it('accepts Vite emitted-asset records when a reachable module owns the emitted file', () => {
const manifest = recursiveManifest();
manifest['index.html']!.assets = [
'assets/entry-logo-a1.webp',
'assets/geist-latin-a1.woff2',
];
manifest['node_modules/font/files/geist-latin.woff2'] = {
file: 'assets/geist-latin-a1.woff2',
src: 'node_modules/font/files/geist-latin.woff2',
};
expect(resolveViteAssetClosure(manifest).viteAssets).toEqual([
'assets/entry-logo-a1.webp',
'assets/geist-latin-a1.woff2',
]);
});
it.each([
{
name: 'a missing exact index.html entry',