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' | |
import MockAdapter from 'axios-mock-adapter' | |
import ApiController from '@common/helpers/ApiController' | |
// ApiController return { api = axios.create, get, post, del, patch } | |
describe('ApiController', () => { | |
const apiController = ApiController({ isAuth: true }) | |
const axiosMock = new MockAdapter(apiController.api) |
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 { babel } from '@rollup/plugin-babel' | |
import alias from '@rollup/plugin-alias' | |
import nodeResolve from '@rollup/plugin-node-resolve' | |
import commonjs from '@rollup/plugin-commonjs' | |
import postcss from 'rollup-plugin-postcss' | |
import json from '@rollup/plugin-json' | |
import url from '@rollup/plugin-url' | |
import typescript from '@rollup/plugin-typescript' | |
import pkg from './package.json' |