mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
test(compiler-test-utils): link built workspace packages into test apps
`@tanstack/compiler-test-utils/workspace-packages` generalises the `startRuntimeLinks()` of the Start build harness: `workspacePackage(name)` is the root of the built workspace package (packages/*, checked for its built entry; the error names the Nx build target to depend on), `workspacePackageLinks(names)` gives `AppOptions.symlinks` entries for an app's node_modules, and `linkWorkspacePackages(root, names)` creates them for an app made without the harnesses. A test app under a package's tests directory resolves that package's own dependencies (e.g. the routers) without links; the helper is for packages the owner cannot depend on (`@tanstack/react-start` from start-plugin-core). Contract test in tests/integration (links `@tanstack/history`, which the package's `test:integration` target now builds, and imports it through the link like an installed app). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
5b477be247
commit
656dd5bf17
3 changed files with 189 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue