Skip to content

Commit cdb9d7c

Browse files
committed
Add detox commands
1 parent 3bdd3d6 commit cdb9d7c

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

src/commands/detox_build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
description: Builds the app with the given Detox configuration, as specified in package.json.
2+
3+
parameters:
4+
configuration:
5+
description: The Detox configuration to build.
6+
type: string
7+
8+
steps:
9+
- run:
10+
name: Detox Build
11+
command: detox build -c <<parameters.configuration>>

src/commands/detox_test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
description: Tests the app with the given Detox configuration, as specified in package.json.
2+
3+
parameters:
4+
configuration:
5+
description: The Detox configuration to test.
6+
type: string
7+
8+
steps:
9+
- run:
10+
name: Detox Test
11+
command: detox test -c <<parameters.configuration>>

src/commands/metro_start.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
description: Starts the Metro packager.
2+
3+
steps:
4+
- run:
5+
name: Start Metro Packager (Background)
6+
background: true
7+
command: react-native start

0 commit comments

Comments
 (0)