feat: establish nightdrive visual foundation
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user