tiktok-sparo/build-tests/sparo-completion-test
2024-08-26 22:07:37 -07:00
..
__fixture__ feat: sparo completion build test 2024-08-08 17:01:42 -07:00
config feat: sparo completion build test 2024-08-08 17:01:42 -07:00
etc fix: online completion 2024-08-26 22:07:37 -07:00
src fix: online completion 2024-08-26 22:07:37 -07:00
.eslintrc.js feat: sparo completion build test 2024-08-08 17:01:42 -07:00
LICENSE feat: sparo completion build test 2024-08-08 17:01:42 -07:00
package.json feat: sparo completion build test 2024-08-08 17:01:42 -07:00
README.md feat: sparo completion build test 2024-08-08 17:01:42 -07:00
tsconfig.json feat: sparo completion build test 2024-08-08 17:01:42 -07:00

sparo-completion-test

Building this project tests sparo command completion 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-completion-test to regenerate files under etc folder and commit them into Git.