Skip to content

Commit 2cf87d0

Browse files
abueideclaude
andcommitted
chore: standardize test task names across devbox and npm
package.json (colon notation): - test:unit - Unit tests only (fast, no build) - test:fast - Build + unit tests - test:e2e:android - Android E2E tests - test:e2e:ios - iOS E2E tests - test:e2e - All E2E tests - test:all - Unit + E2E tests - test - Default (unit tests) devbox.json (kebab-case): - test-unit - Unit tests only - test-fast - Build + unit tests - test-e2e-android - Android E2E tests - test-e2e-ios - iOS E2E tests - test-e2e - All E2E tests - test-all - Unit + E2E tests - test - Default (fast unit tests with build) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 13ef9c7 commit 2cf87d0

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

devbox.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
"build": ["bash $SCRIPTS_DIR/build.sh"],
3535
"format": ["treefmt"],
3636
"lint": ["treefmt --fail-on-change"],
37-
"test-android": ["bash $SCRIPTS_DIR/android/test.sh"],
38-
"test-ios": ["bash $SCRIPTS_DIR/ios/test.sh"],
3937
"act-ci": [
4038
"bash $SCRIPTS_DIR/act-ci.sh --platform ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-24.04"
4139
],
@@ -101,7 +99,13 @@
10199
"echo \"iOS simulators shutdown (if any were running).\""
102100
],
103101
"stop": ["devbox run stop-android", "devbox run stop-ios"],
104-
"test": ["devbox run test-android", "devbox run test-ios"]
102+
"test-unit": ["yarn test:unit"],
103+
"test-fast": ["yarn test:fast"],
104+
"test-e2e-android": ["bash $SCRIPTS_DIR/android/test.sh"],
105+
"test-e2e-ios": ["bash $SCRIPTS_DIR/ios/test.sh"],
106+
"test-e2e": ["devbox run test-e2e-android", "devbox run test-e2e-ios"],
107+
"test-all": ["yarn test:all"],
108+
"test": ["devbox run test-fast"]
105109
}
106110
}
107111
}

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
"clean": "yarn workspaces foreach -A -p run clean",
2020
"typescript": "tsc --noEmit --composite false",
2121
"test": "jest",
22+
"test:unit": "jest --no-coverage",
23+
"test:fast": "yarn build && jest --no-coverage",
24+
"test:e2e:android": "yarn e2e build:android && yarn e2e test:android",
25+
"test:e2e:ios": "yarn e2e build:ios && yarn e2e test:ios",
26+
"test:e2e": "yarn test:e2e:android && yarn test:e2e:ios",
27+
"test:all": "yarn test:fast && yarn test:e2e",
2228
"lint": "eslint .",
2329
"format": "treefmt --clear-cache",
2430
"format:check": "treefmt --clear-cache --fail-on-change",

0 commit comments

Comments
 (0)