2020-01-09 12:05:40 -08:00
|
|
|
# Bundle
|
|
|
|
|
|
|
|
## `js_expected_symbol_test`
|
2020-09-11 14:54:53 -07:00
|
|
|
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.
|
2020-01-28 16:26:56 -08:00
|
|
|
When doing renaming it is often necessary to update the gold files, to do so use these commands:
|
2020-01-09 12:05:40 -08:00
|
|
|
|
|
|
|
```
|
2020-09-25 17:17:30 -07:00
|
|
|
yarn bazel run --config=ivy //packages/core/test/bundling/injection:symbol_test.accept
|
2020-01-09 12:05:40 -08:00
|
|
|
yarn bazel run --config=ivy //packages/core/test/bundling/cyclic_import:symbol_test.accept
|
2020-09-25 17:17:30 -07:00
|
|
|
yarn bazel run --config=ivy //packages/core/test/bundling/forms:symbol_test.accept
|
2020-01-09 12:05:40 -08:00
|
|
|
yarn bazel run --config=ivy //packages/core/test/bundling/hello_world:symbol_test.accept
|
2020-09-25 17:17:30 -07:00
|
|
|
yarn bazel run --config=ivy //packages/core/test/bundling/router:symbol_test.accept
|
2020-01-09 12:05:40 -08:00
|
|
|
yarn bazel run --config=ivy //packages/core/test/bundling/todo:symbol_test.accept
|
2020-09-11 14:54:53 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
## 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
|
|
|
|
```
|