You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I forget how to pass CLI args into spago-legacy (is it --exec-args?), so any additional things after spago test should be passed in. From the root directory, you would run spago test. For context, if you cd backend-es && npm run test, that's where the test files live.
By default,spago test will run all tests, comparing the outputted snapshots with the saved ones, and failing if any don't match. There are 3 CLI args you can pass to the Test.Main program:
--filter "ModuleName" - only run tests that are prefixed with Snapshot.ModuleName
--accept - Overwrite all saved snapshot files with the newly outputted ones
--trace-rewrites Fully.Qualified.Module.Name - Output the steps of optimizations done by the optimizer when building the given module. Useful for troubleshooting why something did or didn't inline correctly.
From looking into the github workflow file I assume it is something like this:
spago test --purs-args '--censor-lib'
But it would be nice to have a more detailed explanation, or a
npm test
target.The text was updated successfully, but these errors were encountered: