-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(expo): fix expo detox test (#16779)
(cherry picked from commit 9423508)
- Loading branch information
1 parent
5d983ef
commit da912b2
Showing
25 changed files
with
484 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
packages/detox/src/generators/application/lib/get-targets.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { expoBuildTarget, expoTestTarget } from './get-targets'; | ||
|
||
describe('getTargets', () => { | ||
it('should return ios test target for expo projects', () => { | ||
expect(expoTestTarget('ios.sim', 'test')).toEqual({ | ||
options: { | ||
detoxConfiguration: 'ios.sim.eas', | ||
buildTarget: 'test:build-ios', | ||
}, | ||
configurations: { | ||
local: { | ||
detoxConfiguration: 'ios.sim.local', | ||
buildTarget: 'test:build-ios:local', | ||
}, | ||
bare: { | ||
detoxConfiguration: 'ios.sim.debug', | ||
buildTarget: 'test:build-ios:bare', | ||
}, | ||
production: { | ||
detoxConfiguration: 'ios.sim.release', | ||
buildTarget: 'test:build-ios:production', | ||
}, | ||
}, | ||
}); | ||
}); | ||
|
||
it('should return ios build target for expo projects', () => { | ||
expect(expoBuildTarget('ios.sim')).toEqual({ | ||
options: { | ||
detoxConfiguration: 'ios.sim.eas', | ||
}, | ||
configurations: { | ||
local: { | ||
detoxConfiguration: 'ios.sim.local', | ||
}, | ||
bare: { | ||
detoxConfiguration: 'ios.sim.debug', | ||
}, | ||
production: { | ||
detoxConfiguration: 'ios.sim.release', | ||
}, | ||
}, | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export interface Schema { | ||
skipFormat?: boolean; | ||
skipPackageJson?: boolean; //default is false | ||
framework?: 'react-native' | 'expo'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.