docs(core): update e2e-ci glob example (#29150)
<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> the glob pattern in the e2e-ci example is incorrect for nested directories example mentioned. ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> when using nested directories the **/** pattern is needed, so the example was incorrect it's also confusing why something wouldn't work, so added more info as to the different common glob patterns (`**/*`, `**/**`) to be more clear ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes # --------- Co-authored-by: Isaac Mann <isaacplmann@users.noreply.github.com>
This commit is contained in:
parent
3ec539065d
commit
6a46030995
@ -319,7 +319,7 @@ Task Atomizer plugins create several targets with a similar pattern. For example
|
||||
```json {% fileName="nx.json" %}
|
||||
{
|
||||
"targetDefaults": {
|
||||
"e2e-ci--**/*": {
|
||||
"e2e-ci--**/**": {
|
||||
"options": {
|
||||
"headless": true
|
||||
}
|
||||
@ -329,7 +329,7 @@ Task Atomizer plugins create several targets with a similar pattern. For example
|
||||
```
|
||||
|
||||
{% callout type="info" title="Pattern Matching" %}
|
||||
Nx uses glob patterns for matching against the target name. This means that the `**/*` pattern above is required because the target name contains a `/`. If your target name does not contain a `/`, you can use a simpler pattern like `e2e-ci-*`.
|
||||
Nx uses glob patterns to match against the target name. This means that the `**/**` pattern above is required because tests can be nested within a directory which would make the target name contain a `/`. If your target name does not contain a `/`, you can use a simpler pattern like `e2e-ci-*`.
|
||||
{% /callout %}
|
||||
|
||||
## Release
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user