Skip to content

Instantly share code, notes, and snippets.

@robertleeplummerjr
Created October 18, 2017 14:55
Show Gist options
  • Select an option

  • Save robertleeplummerjr/a7e196a828f384e54c2cfb2adf7f9d8d to your computer and use it in GitHub Desktop.

Select an option

Save robertleeplummerjr/a7e196a828f384e54c2cfb2adf7f9d8d to your computer and use it in GitHub Desktop.
Inversify Example
//This will come in handy
import { AxiosStatic } from "axios";
import { Container } from "inversify";
import Request from "../request";
class AxiosCoreMock implements AxiosCore {}
const container = new Container();
container.bind(Request).toSelf();
container.bind<AxiosCore>("axios").toConstantValue(new AxiosCoreMock());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment