build: create temporary script for symbol extractor tests (#38819)

Creates a temporary script to running all symbol extractor tests.

PR Close #38819
This commit is contained in:
Joey Perrott
2020-09-11 14:54:53 -07:00
committed by Andrew Kushnir
parent 2bdfb14be0
commit dc4f85888e
3 changed files with 81 additions and 3 deletions

View File

@ -1,8 +1,8 @@
# Bundle
## `js_expected_symbol_test`
This folder contains tests which assert that most of the code is tree shaken away.
This is asserted by keeping gold files of all symbols which are expected to be retained.
This folder contains tests which assert that most of the code is tree shaken away.
This is asserted by keeping gold files of all symbols which are expected to be retained.
When doing renaming it is often necessary to update the gold files, to do so use these commands:
```
@ -10,4 +10,12 @@ yarn bazel run --config=ivy //packages/core/test/bundling/cyclic_import:symbol_t
yarn bazel run --config=ivy //packages/core/test/bundling/hello_world:symbol_test.accept
yarn bazel run --config=ivy //packages/core/test/bundling/injection:symbol_test.accept
yarn bazel run --config=ivy //packages/core/test/bundling/todo:symbol_test.accept
```
```
## Running all symbol tests
To run all symbol tests with one command, you can use the following scripts:
```
yarn run symbol-extractor:check
yarn run symbol-extractor:update
```