Skip to content

Commit d3285f9

Browse files
authored
Fix/cli alias collision (#184)
1 parent 15f3de0 commit d3285f9

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

.changeset/shiny-items-vanish.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-native-owl': patch
3+
---
4+
5+
fix alias to avoid collision

docs/cli/testing-the-app.mdx

+7-7
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ Use the `test` command to run the app on the simulator, either comparing screens
1111

1212
#### Options
1313

14-
| Name | Required | Default | Options/Types | Description |
15-
| ------------------------- | -------- | ----------------- | --------------- | ------------------------------------------------- |
16-
| `--config`, `-c` | false | ./owl.config.json | String | Path to the configuration file |
17-
| `--platform`, `-p` | true | - | `ios`,`android` | The platform the app should be built on |
18-
| `--update`, `-u` | true | false | Boolean | A flag about rewriting existing baseline images |
19-
| `--testNamePattern`, `-t` | false | false | String | Run only tests with a name that matches the regex |
20-
| `--testPathPattern`, `-p` | false | false | String | A regexp string matched against all tests path |
14+
| Name | Required | Default | Options/Types | Description |
15+
| -------------------------- | -------- | ----------------- | --------------- | ------------------------------------------------- |
16+
| `--config`, `-c` | false | ./owl.config.json | String | Path to the configuration file |
17+
| `--platform`, `-p` | true | - | `ios`,`android` | The platform the app should be built on |
18+
| `--update`, `-u` | true | false | Boolean | A flag about rewriting existing baseline images |
19+
| `--testNamePattern`, `-t` | false | false | String | Run only tests with a name that matches the regex |
20+
| `--testPathPattern`, `-tp` | false | false | String | A regexp string matched against all tests path |
2121

2222
When comparing images, any difference in the current vs baseline will fail the test.
2323

lib/cli/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const testNamePattern: Options = {
3535
};
3636

3737
const testPathPatternOption: Options = {
38-
alias: 'p',
38+
alias: 'tp',
3939
describe: 'Run Test for a matching path pattern',
4040
type: 'string',
4141
default: '',

0 commit comments

Comments
 (0)