@teambit/harmony.content.cli-reference 2.0.1066 → 2.0.1068
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli-reference.docs.mdx +1 -1
- package/cli-reference.json +4 -4
- package/cli-reference.mdx +5 -4
- package/dist/cli-reference.docs.mdx +1 -1
- package/dist/cli-reference.json +4 -4
- package/dist/cli-reference.mdx.js +1 -1
- package/dist/cli-reference.mdx.js.map +1 -1
- package/dist/{preview-1780524843617.js → preview-1780598604039.js} +2 -2
- package/package.json +2 -2
package/cli-reference.docs.mdx
CHANGED
package/cli-reference.json
CHANGED
|
@@ -3744,7 +3744,7 @@
|
|
|
3744
3744
|
]
|
|
3745
3745
|
},
|
|
3746
3746
|
{
|
|
3747
|
-
"name": "test [
|
|
3747
|
+
"name": "test [pattern-or-test-file...]",
|
|
3748
3748
|
"alias": "at",
|
|
3749
3749
|
"options": [
|
|
3750
3750
|
[
|
|
@@ -3809,13 +3809,13 @@
|
|
|
3809
3809
|
]
|
|
3810
3810
|
],
|
|
3811
3811
|
"description": "run component tests",
|
|
3812
|
-
"extendedDescription": "executes tests using the testing framework configured by each component's environment (Jest, Mocha, etc.).\nby default only runs tests for new and modified components. use --unmodified to test all components.\nsupports watch mode, coverage reporting, and debug mode for development workflows.",
|
|
3812
|
+
"extendedDescription": "executes tests using the testing framework configured by each component's environment (Jest, Mocha, etc.).\nby default only runs tests for new and modified components. use --unmodified to test all components.\nto run specific test files only, pass their paths instead of a component pattern, e.g. \"bit test path/to/comp/my-comp.spec.ts\".\nsupports watch mode, coverage reporting, and debug mode for development workflows.",
|
|
3813
3813
|
"group": "testing",
|
|
3814
3814
|
"private": false,
|
|
3815
3815
|
"arguments": [
|
|
3816
3816
|
{
|
|
3817
|
-
"name": "
|
|
3818
|
-
"description": "component name, component id, component pattern, or relative directory path. use component pattern to select multiple components.\nwrap the pattern with quotes. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\".\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern."
|
|
3817
|
+
"name": "pattern-or-test-file...",
|
|
3818
|
+
"description": "one of two modes (multiple values are supported, separated by spaces):\n1) component pattern: component name, component id, component pattern, or relative directory path. use component pattern to select multiple components.\nwrap the pattern with quotes. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\".\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.\n2) test-file path: a path to a test file, to run only this file, e.g. \"bit test path/to/comp/my-comp.spec.ts\".\nnote that a directory path selects the component in that directory and runs all its tests, while a test-file path runs only that file"
|
|
3819
3819
|
}
|
|
3820
3820
|
]
|
|
3821
3821
|
},
|
package/cli-reference.mdx
CHANGED
|
@@ -2784,13 +2784,14 @@ Lists available templates. Inside a workspace it shows component templates for '
|
|
|
2784
2784
|
**Description**: run component tests
|
|
2785
2785
|
executes tests using the testing framework configured by each component's environment (Jest, Mocha, etc.).
|
|
2786
2786
|
by default only runs tests for new and modified components. use --unmodified to test all components.
|
|
2787
|
+
to run specific test files only, pass their paths instead of a component pattern, e.g. "bit test path/to/comp/my-comp.spec.ts".
|
|
2787
2788
|
supports watch mode, coverage reporting, and debug mode for development workflows.
|
|
2788
2789
|
|
|
2789
|
-
`bit test [
|
|
2790
|
+
`bit test [pattern-or-test-file...]`
|
|
2790
2791
|
|
|
2791
|
-
| **Arg**
|
|
2792
|
-
|
|
|
2793
|
-
| `
|
|
2792
|
+
| **Arg** | **Description** |
|
|
2793
|
+
| ------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
2794
|
+
| `pattern-or-test-file...` | one of two modes (multiple values are supported, separated by spaces): 1) component pattern: component name, component id, component pattern, or relative directory path. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. 2) test-file path: a path to a test file, to run only this file, e.g. "bit test path/to/comp/my-comp.spec.ts". note that a directory path selects the component in that directory and runs all its tests, while a test-file path runs only that file |
|
|
2794
2795
|
|
|
2795
2796
|
| **Option** | **Option alias** | **Description** |
|
|
2796
2797
|
| ---------------------- | :--------------: | ----------------------------------------------------------------------------------------------- |
|
package/dist/cli-reference.json
CHANGED
|
@@ -3744,7 +3744,7 @@
|
|
|
3744
3744
|
]
|
|
3745
3745
|
},
|
|
3746
3746
|
{
|
|
3747
|
-
"name": "test [
|
|
3747
|
+
"name": "test [pattern-or-test-file...]",
|
|
3748
3748
|
"alias": "at",
|
|
3749
3749
|
"options": [
|
|
3750
3750
|
[
|
|
@@ -3809,13 +3809,13 @@
|
|
|
3809
3809
|
]
|
|
3810
3810
|
],
|
|
3811
3811
|
"description": "run component tests",
|
|
3812
|
-
"extendedDescription": "executes tests using the testing framework configured by each component's environment (Jest, Mocha, etc.).\nby default only runs tests for new and modified components. use --unmodified to test all components.\nsupports watch mode, coverage reporting, and debug mode for development workflows.",
|
|
3812
|
+
"extendedDescription": "executes tests using the testing framework configured by each component's environment (Jest, Mocha, etc.).\nby default only runs tests for new and modified components. use --unmodified to test all components.\nto run specific test files only, pass their paths instead of a component pattern, e.g. \"bit test path/to/comp/my-comp.spec.ts\".\nsupports watch mode, coverage reporting, and debug mode for development workflows.",
|
|
3813
3813
|
"group": "testing",
|
|
3814
3814
|
"private": false,
|
|
3815
3815
|
"arguments": [
|
|
3816
3816
|
{
|
|
3817
|
-
"name": "
|
|
3818
|
-
"description": "component name, component id, component pattern, or relative directory path. use component pattern to select multiple components.\nwrap the pattern with quotes. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\".\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern."
|
|
3817
|
+
"name": "pattern-or-test-file...",
|
|
3818
|
+
"description": "one of two modes (multiple values are supported, separated by spaces):\n1) component pattern: component name, component id, component pattern, or relative directory path. use component pattern to select multiple components.\nwrap the pattern with quotes. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\".\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern.\n2) test-file path: a path to a test file, to run only this file, e.g. \"bit test path/to/comp/my-comp.spec.ts\".\nnote that a directory path selects the component in that directory and runs all its tests, while a test-file path runs only that file"
|
|
3819
3819
|
}
|
|
3820
3820
|
]
|
|
3821
3821
|
},
|