tito10047/asset-mapper-test-bundle
A Symfony test bundle for AssetMapper that provides helpers and assertions for verifying asset mapping behavior in your test suite. Use it to check that mapped assets resolve, render, and compile correctly, making it easier to write reliable integration tests for asset handling without manual setup.
tito10047/asset-mapper-test-bundle as a dev dependency and enable it using the package’s documented Symfony bundle/Laravel provider setup. Ensure your Node test runner is installed and your AssetMapper importmap is available to the test environment.importmap.php/AssetMapper config, and the generated node_modules output. Those are the moving parts this release fixes.@hotwired/stimulus, then run it through the bundle’s Node test setup. On 0.2.2, directory-based vendor packages with <basename>.index.js entries should resolve instead of failing with ERR_MODULE_NOT_FOUND.0.2.2 is a patch release focused on real-world AssetMapper vendor layouts. No migration is expected, but clean generated test artifacts if you were affected by prior symlink behavior.stimulus.index.js + stimulus.index-<hash>.js, packages that expose both CSS and JS entries, and packages with subpath imports such as jquery-ui/ui/widgets/sortable.type: 'css' entries are skipped in 0.2.2, but leaving CSS out of the test-facing importmap makes failures easier to reason about.ERR_MODULE_NOT_FOUND as a regression signal for vendor entry resolution.node_modules/<pkg> shim when debugging. Check the generated entry file, package.json, and whether the package resolved to index.js vs the intended <basename>.index.js.ERR_MODULE_NOT_FOUND for packages like @hotwired/stimulus, upgrade to 0.2.2 and clear generated node_modules artifacts before retesting.node_modules/<pkg>/index.js can shadow the package’s real JS entry. 0.2.2 skips type: 'css' entries, but avoid relying on CSS entries in test importmaps.node_modules/. Previous behavior could write index.js and package.json into assets/vendor/; if that happened, remove the contaminated generated files from source assets.How can I help you explore Laravel packages today?