tools/test-helper/README.md
This is a small VS Code extension that helps with managing Typst's test suite.
When installed, for all .typ files in the tests directory, the following
Code Lens buttons will appear above every test's name:
--update to save the reference output.In the side panel opened by the Code Lens buttons, there are a few menu buttons at the top right:
--update to save the reference output.In order for VS Code to run the extension with its built-in
Node engine, you need to first build it from source.
Navigate to test-helper directory and build the extension:
npm install # Install the dependencies.
npm run build # Build the extension from source.
Then, you can easily install it (and keep it up-to-date) via VS Code's UI:
test-helper directory in the file explorer dialogue box. VS Code
will add the extension's path to ~/.vscode/extensions/extensions.json (or
%USERPROFILE%\.vscode\extensions\extensions.json on Windows).