-
Notifications
You must be signed in to change notification settings - Fork 794
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(docs): unit test style doc generation (#5708)
add unit tests for `src/compiler/docs/generate-doc-data.ts#getDocsStyles`. this was pulled out into a separate pull request from another effort, where we wish to add the `mode` that a stylesheet is associated with by a component's `@Component({})` decorator to the output of `docs-json`. these tests aren't strictly needed for that effort, but establish a baseline for tests taht will be added in the future. the `getDocsStyles` function was exported in order to test it. additional jsdoc and type annotations have been added to differentiate fields that are compiler metadata, and those that are used in our documentation intermediate representation. split from: STENCIL-1269 - CSS Documentation Should Account for Modes
- Loading branch information
1 parent
a325f5c
commit aea6275
Showing
2 changed files
with
149 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters