Files
pack/examples/node-tanstack-start
652698eecb fix: assert empty stderr, trust mise in app dir (#352)
* test: assert empty stderr on successful integration tests

Add assertion to check that stderr is empty when integration tests pass
successfully. This helps catch unexpected warnings or error messages that
might indicate issues even when the test technically succeeds.

The check is added to runContainerWithTimeout which runs containers that
output expected strings. HTTP check tests are not affected since they
already validate correctness via HTTP requests and separating stderr
from detached containers is more complex.

* fix: add private field to example package.json files

Add "private": true to all example package.json files to suppress
package manager warnings about missing license fields. These are
test/example projects not meant to be published to npm registries.

This prevents stderr warnings like "warning package.json: No license
field" which were causing the new stderr assertion in integration tests
to fail even though the applications were running correctly.

Affected examples:
- All node-yarn-* examples
- node-npm, node-pnpm, node-bun examples
- config-file, mise-config examples
- Other node-based examples

* fix: trust mise config files in app directory

Add MISE_TRUSTED_CONFIG_PATHS=/app to automatically trust mise
configuration files in the application directory during builds.

This prevents trust warnings when MISE_PARANOID mode is enabled:
  "Trust them with \`mise trust\`. See https://mise.jdx.dev/cli/trust.html"

Since the app directory (/app) is the user's code being built,
it's safe to trust mise configuration files located there.

* test: add stderrAllowed option to skip stderr assertion

Add optional "stderrAllowed" field to test.json that defaults to false.
When set to true, skips the stderr empty assertion for tests where
stderr output is expected and normal.

This is useful for applications that log to stderr by default, such as
gunicorn which outputs info logs to stderr:
  [2025-11-18 18:13:50 +0000] [1] [INFO] Starting gunicorn 23.0.0
  [2025-11-18 18:13:50 +0000] [1] [INFO] Listening at: http://0.0.0.0:3333 (1)

Updated python-uv test to set stderrAllowed: true since it uses
gunicorn which logs to stderr.

* test: allow stderr for node-latest-npm-native-deps temporarily

Add stderrAllowed: true to node-latest-npm-native-deps test to handle
the NPM_CONFIG_PRODUCTION deprecation warning:
  "npm warn config production Use \`--omit=dev\` instead"

This is temporary and should be removed once NPM_CONFIG_PRODUCTION is
removed from core/providers/node/node.go:241 in a separate PR.

* test: allow stderr for npm production warning in additional tests

Add stderrAllowed: true to node-prisma, node-remix, and
node-npm-install-in-build test cases to temporarily allow the
npm warning about NPM_CONFIG_PRODUCTION being deprecated.

This is a temporary workaround until NPM_CONFIG_PRODUCTION is
removed from node.go in a separate PR.

* test: allow stderr for Bun console output

Bun routes console.log/console.error to stderr by default in
script mode. Add stderrAllowed: true to all Bun example tests
to allow this expected behavior.

* test: allow stderr for TanStack Start output

TanStack Start outputs to stderr during server startup.
Add stderrAllowed: true to allow this expected behavior.

* test: add approved builds to fix better-sqlite3 error

* test: snapshot update

* test: fix build warning, allow stderr for --omit warning for now

* docs: note that test.json are jsonc for AI

* test: snapshot update

* test: allow stderr for omit usage

---------

Co-authored-by: Hanzo Dev <[email protected]>
2025-11-20 15:33:10 -07:00
..
2025-06-13 11:14:27 -04:00
2025-06-13 11:14:27 -04:00
2025-06-13 11:14:27 -04:00
2025-06-13 11:14:27 -04:00
2025-06-13 11:14:27 -04:00
2025-06-13 11:14:27 -04:00
2025-06-13 11:14:27 -04:00
2025-06-13 11:14:27 -04:00
2025-06-13 11:14:27 -04:00

Welcome to TanStack.com!

This site is built with TanStack Router!

It's deployed automagically with Netlify!

Development

From your terminal:

pnpm install
pnpm dev

This starts your app in development mode, rebuilding assets on file changes.

Editing and previewing the docs of TanStack projects locally

The documentations for all TanStack projects except for React Charts are hosted on https://tanstack.com, powered by this TanStack Router app. In production, the markdown doc pages are fetched from the GitHub repos of the projects, but in development they are read from the local file system.

Follow these steps if you want to edit the doc pages of a project (in these steps we'll assume it's TanStack/form) and preview them locally :

  1. Create a new directory called tanstack.
mkdir tanstack
  1. Enter the directory and clone this repo and the repo of the project there.
cd tanstack
git clone [email protected]:TanStack/tanstack.com.git
git clone [email protected]:TanStack/form.git

Note

Your tanstack directory should look like this:

tanstack/
   |
   +-- form/
   |
   +-- tanstack.com/

Warning

Make sure the name of the directory in your local file system matches the name of the project's repo. For example, tanstack/form must be cloned into form (this is the default) instead of some-other-name, because that way, the doc pages won't be found.

  1. Enter the tanstack/tanstack.com directory, install the dependencies and run the app in dev mode:
cd tanstack.com
pnpm i
# The app will run on https://localhost:3000 by default
pnpm dev
  1. Now you can visit http://localhost:3000/form/latest/docs/overview in the browser and see the changes you make in tanstack/form/docs.

Note

The updated pages need to be manually reloaded in the browser.

Warning

You will need to update the docs/config.json file (in the project's repo) if you add a new doc page!