0
私はそのようなコードを持っている:私はこの例では、テスト・コンテキストを模擬することができますどのようにreact.jsでどのようにコンテキストを模擬してテストしますか?
render() {
...
const {
exampleMethod,
} = this.props;
const { getPath } = this.context;
const exampletData = exampleMethod(getPath());
...
}
を?コンテキストを一般的にどのようにテストしますか?