DEV Community

Discussion on: Testing Axios Requests With Jest

Collapse
 
jtmorrisbytes profile image
Jordan Morris

So I just want to say for future reference here:
when you see 'import (somename) from "some-library", that gets whatever the default value is for that library. it will not matter what the name is, it will refer to the same default value
EX: import axios from "axios" is the same as
import mockAxios from "axios" but
import {axios} from "axios" is not the same as
import {mockAxios} from "axios