Download the PHP package tito10047/asset-mapper-test-bundle without Composer
On this page you can find all versions of the php package tito10047/asset-mapper-test-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tito10047/asset-mapper-test-bundle
More information about tito10047/asset-mapper-test-bundle
Files in tito10047/asset-mapper-test-bundle
Package asset-mapper-test-bundle
Short Description A Symfony bundle that bridges the gap between Symfony AssetMapper and Node.js test runners by creating a symlink-based node_modules structure from your import map.
License MIT
Informations about the package asset-mapper-test-bundle
AssetMapper Test Bundle
Run Node.js tests against packages managed by Symfony AssetMapper —
no npm install, no duplicated dependencies.
Two interchangeable strategies are provided:
| Strategy | Command | How it works |
|---|---|---|
| Symlinks (default) | php bin/console asset-mapper-test:setup |
Creates symlinks in node_modules/ from importmap.php |
| Symlink-free loader | php bin/console asset-mapper-test:export |
Exports importmap.json, a Node.js loader maps imports live |
Pick symlinks for best IDE autocomplete.
Pick the loader when you want zero node_modules, cross-platform cleanliness
(Windows without developer mode), or reproducible CI without filesystem artifacts.
Install
Auto-discovered by Symfony Flex — no additional wiring needed.
Scaffold package.json (interactive)
Asks which variant (symlink / loader) and which JS runner (node / vitest)
you want, then writes a matching package.json. For node --test it also
drops tests/js/setup.mjs with a ready-to-use happy-dom window bootstrap
(globalThis.window, document, HTMLElement, Event).
Non-interactive (CI) form:
Quick start — Symlink variant
Quick start — Loader variant (no node_modules)
Requires Node.js ≥ 20.6 (or ≥ 18.19) for the stable module.register API.
Documentation
Full documentation lives in docs/:
docs/index.md— overview & table of contentsdocs/init-command.md— interactivepackage.jsonscaffolderdocs/symlink-variant.md— symlink workflow in depthdocs/loader-variant.md— Node.js loader in depthdocs/configuration.md— paths, env vars, loggingdocs/troubleshooting.md— common problems & fixesdocs/architecture.md— internal design, classes, data flow
Requirements
- PHP ≥ 8.2
- Symfony ≥ 6.4 (also works on 7.x and 8.x)
- Symfony AssetMapper
- Node.js ≥ 20.6 for the loader variant (any version for symlinks)
License
MIT — see LICENSE.
All versions of asset-mapper-test-bundle with dependencies
symfony/console Version ^6.4|^7.4|^8.0
symfony/dependency-injection Version ^6.4|^7.4|^8.0
symfony/filesystem Version ^6.4|^7.4|^8.0
symfony/http-kernel Version ^6.4|^7.4|^8.0