Jest mock method of base ES6 class (super method) when testing extended class
问题 I am having issues when testing that the original method (from the base class), is called with some parameters, when testing an extended class. The class that I want to test is: // ApiDataSource.js import { RESTDataSource } from "apollo-datasource-rest"; export default class ApiDataSource extends RESTDataSource { constructor() { super(); this.baseURL = 'test'; } //We add the authorization params to the get method async get(path, params = {}, init = {}) { return super.get( path, { ...params,