tiktok-sparo/build-tests/sparo-output-test
2024-03-05 17:19:23 -08:00
..
config feat: code changes according to code review 2024-03-05 17:19:23 -08:00
etc feat: code changes according to code review 2024-03-05 17:19:23 -08:00
src fix(sparo-output-test): force color text in CI 2024-03-05 17:19:23 -08:00
.eslintrc.js feat: code changes according to code review 2024-03-05 17:19:23 -08:00
LICENSE feat: code changes according to code review 2024-03-05 17:19:23 -08:00
package.json feat: code changes according to code review 2024-03-05 17:19:23 -08:00
README.md feat: code changes according to code review 2024-03-05 17:19:23 -08:00
tsconfig.json feat: code changes according to code review 2024-03-05 17:19:23 -08:00

sparo-output-test

Building this project tests sparo command outputs

Details

lib/start-test.js is run after building the project. This scripts generate the output text files under temp/etc. In local builds, those files are copied to etc folder. During a CI build, the files under these two folders are compared and the CI build fails if they are different. This ensures that files under etc folder must be up to date in the PR, and people who review the PR must approve any changes.

How to fix the build errors

Run rush build -t sparo-output-test to regenerate files under etc folder and commit them into Git.