Skip to content

Instantly share code, notes, and snippets.

@aptiko
Created May 18, 2021 11:14
Show Gist options
  • Save aptiko/73396b877896c8d8e9a2602ae8397e93 to your computer and use it in GitHub Desktop.
Save aptiko/73396b877896c8d8e9a2602ae8397e93 to your computer and use it in GitHub Desktop.
Initializing Axios
import LoginForm from '@/components/LoginForm.vue'
import axios from 'axios'
describe('LoginForm', () => {
let wrapper
beforeAll(() => {
wrapper = mount(LoginForm, {
mocks: {
$axios: axios,
}
})
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment