# `mix ascii.golden`
[🔗](https://github.com/houllette/ascii_art/blob/main/lib/mix/tasks/ascii.golden.ex#L1)

Regenerates `test/fixtures/golden/*.json` and `test/fixtures/js_math.json`
from an upstream checkout, by running `tools/gen_golden.mjs` and
`tools/gen_js_math.mjs` under Node.

    mix ascii.golden                 # every piece
    mix ascii.golden donut cube      # some pieces

## Options

  * `--upstream DIR` - the upstream checkout (default `tmp/upstream`)
  * `--node PATH` - the Node to run (default `$NODE`, then `node`). It must
    be an x64 build of Node 22.18 or later; see `PORTING.md`.

This is a development tool: `mix test` reads the committed fixtures and
never needs Node.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
