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
import { getTestID } from 'helpers/getTestID/getTestID'; | |
export const TEST_ID = { | |
CONTAINER: 'CONTAINER', | |
LABEL: 'LABEL', | |
}; | |
export const testID = getTestID({ | |
testID: TEST_ID, | |
prefix: 'ACCORDION', |
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
type GetTestIDArgs<TestID> = { | |
testID: TestID; | |
prefix: string; | |
} | |
export const getTestID = <TestID extends Record<string, string>>({ | |
testID, | |
prefix, | |
}: GetTestIDArgs<TestID>): TestID => { | |
return new Proxy(testID, { |
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
Settings.set({ | |
'/google/firebase/debug_mode': 1, | |
'/google/measurement/debug_mode': 1, | |
}); |
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
adb shell setprop debug.firebase.analytics.app PACKAGE_NAME |
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
import axios from 'axios'; | |
const api = axios.create({ | |
baseURL: process.env.API_URL, | |
timeout: 10000, | |
headers: { | |
'Content-Type': 'application/json', | |
}, | |
}); |
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
console.log([...formData]) |
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
const data = new FormData(); | |
Object.keys(payload).map(key => data.append(key, payload[key])); |