mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-11 02:46:16 -08:00
test(performance): drop unused destructured names in the missing-chunk case
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
bebd4d3049
commit
3cd032510e
1 file changed
+4
-5
@@ -144,11 +144,10 @@ test('fails when index.html is missing instead of reporting zero bytes', async (
|
||||
});
|
||||
|
||||
test('fails and names every referenced file that is missing from the build', async () => {
|
||||
const {
|
||||
'chunk-Cn2Agfvf.js': _dropped,
|
||||
'main-EI6PCDGR.js': _alsoDropped,
|
||||
...files
|
||||
} = BUILT_FILES;
|
||||
const dropped = ['chunk-Cn2Agfvf.js', 'main-EI6PCDGR.js'];
|
||||
const files = Object.fromEntries(
|
||||
Object.entries(BUILT_FILES).filter(([file]) => !dropped.includes(file))
|
||||
);
|
||||
const distDir = await writeDist('missing-chunk', { files });
|
||||
await assert.rejects(
|
||||
measureInitialBytes({ distDir }),
|
||||
|
||||
Reference in new issue
Block a user