Skip to content

Commit 06057a4

Browse files
fix sorting test scripts and add dotenv (#9099)
1 parent 6ffdf79 commit 06057a4

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

detox/package-lock.json

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

detox/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"client-oauth2": "4.3.3",
2323
"deepmerge": "4.3.1",
2424
"detox": "20.37.0",
25+
"dotenv": "17.2.1",
2526
"form-data": "4.0.1",
2627
"jest": "29.7.0",
2728
"jest-circus": "29.7.0",

detox/utils/test_cases.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,7 @@ async function createTestExecutions(allTests, testCycle) {
115115
const promises = [];
116116
Object.entries(testCases).forEach(([key, steps], index) => {
117117
const testScriptResults = steps.
118-
sort((a, b) => {
119-
const aKey = a.title.match(/(MM-T\d+_\d+)/)[0].split('_')[1];
120-
const bKey = b.title.match(/(MM-T\d+_\d+)/)[0].split('_')[1];
121-
return parseInt(aKey, 10) - parseInt(bKey, 10);
122-
}).
118+
sort((a, b) => a.title.localeCompare(b.title)).
123119
map((item) => {
124120
return {
125121
title: item.title,

0 commit comments

Comments
 (0)