chore(e2e): make bundles test resilient to chunk changes#1947
Draft
martyanovandrey wants to merge 1 commit into
Draft
chore(e2e): make bundles test resilient to chunk changes#1947martyanovandrey wants to merge 1 commit into
martyanovandrey wants to merge 1 commit into
Conversation
6b68792 to
2d2fa1c
Compare
Replace fragile exact-filelist snapshot with explicit assertions: - verify all manifest entries present in _bundle/ output - verify extension bundles are present - assert HTML references point to existing bundle and search files - verify search index is generated (api.js, index.html, language.js) - use compareDirectories defaults (stripSystemLinks) for content snapshots The test no longer breaks on @diplodoc/client updates or webpack chunk restructuring — only on actual regressions.
2d2fa1c to
684b590
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
bundles.spec.tswith explicit assertions that don't break on@diplodoc/clientupdates_bundle/output<script>/<link>references point to existing bundle and search filesapi.js,index.html,language.js)compareDirectoriesdefaults (stripSystemLinks) for content snapshots — HTML snapshots no longer contain bundle filenamesNo snapshots depend on webpack chunk names or counts, so the test is fully stable across dependency updates.