forked from Ivasoft/mattermost-mobile
* Detox/E2E: Migrate to typescript * Add jest.config.js * Add moduleMapper to config.json * Add cookie jar to axios client, fix tsconfig.json and default_config.json * Take keyboard into consideration; clean test for now for this migration PR * Revert changes on path_builder * Attempt to fix dep issues * Update detox dep * Added missing @type dev dependencies * Fix dep order * Fix unit tests * Added dynamic year to email.ts
15 lines
395 B
TypeScript
15 lines
395 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import axios from 'axios';
|
|
import {wrapper} from 'axios-cookiejar-support';
|
|
import {CookieJar} from 'tough-cookie';
|
|
|
|
const jar = new CookieJar();
|
|
export const client = wrapper(axios.create({
|
|
headers: {'X-Requested-With': 'XMLHttpRequest'},
|
|
jar,
|
|
}));
|
|
|
|
export default client;
|