Implement versioning strategies in js 🧉
This commit is contained in:
17
src/model/__mocks__/input.js
Normal file
17
src/model/__mocks__/input.js
Normal file
@@ -0,0 +1,17 @@
|
||||
// Import this named export into your test file:
|
||||
import Platform from '../platform';
|
||||
|
||||
export const mockGetFromUser = jest.fn().mockResolvedValue({
|
||||
version: '',
|
||||
targetPlatform: Platform.types.Test,
|
||||
projectPath: '.',
|
||||
buildName: Platform.types.Test,
|
||||
buildsPath: 'build',
|
||||
buildMethod: undefined,
|
||||
buildVersion: '1.3.37',
|
||||
customParameters: '',
|
||||
});
|
||||
|
||||
export default {
|
||||
getFromUser: mockGetFromUser,
|
||||
};
|
||||
5
src/model/__mocks__/versioning.js
Normal file
5
src/model/__mocks__/versioning.js
Normal file
@@ -0,0 +1,5 @@
|
||||
export const mockDetermineVersion = jest.fn();
|
||||
|
||||
export default {
|
||||
determineVersion: mockDetermineVersion,
|
||||
};
|
||||
Reference in New Issue
Block a user