Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(testing): support puppeteer's 'headless': 'new' (#4356)
this commit creates a new CLI flag type to represent flags that can be either a boolean or a string. e.g.: - `--headless` <- creates a truthy flag, 'headless' - `--headless=new` <- creates a flag, 'headless', with the value "new" - `--headless new` <- creates a flag, 'headless', with the value "new" the parsing for this type of flag is distinct from boolean arguments in that if a value is provided, we should _not_ coerce it to a boolean: --headless new <- 'new' should be the accepted value --headless=new <- 'new' should be the accepted value the parsing for this type of flag is distinct from string arguments in that a non-string value is acceptable: --headless <- `true` should be the accepted value this allows the `browserHeadless` field to be 'new' both internally and in a user's `stencil.config.ts` this commit updates the testing validation code to correctly set `browserHeadless` to 'new' in all circumstances where config.headless is set to 'new'
- Loading branch information
1 parent
fa17303
commit 79dc015
Showing
8 changed files
with
152 additions
and
32 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
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
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
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