title: how to spyon same method but two different parameters in jest?
body: <pre><code>    jest
        .spyOn(webService.prototype, 'isEnabled')
        .mockImplementation(() =&gt; {
          return Promise.resolve(true)
        })
      jest
        .spyOn(webService.prototype, 'isEnabled')
        .mockImplementation(() =&gt; {
          return Promise.resolve(false)
        })
  </code></pre>
  <p>So what I want is to return 'true' if parameter has 'YES' string in it. and return 'false' if parameter has 'NO' in it.</p>
  <p>the typescript of function is like below..</p>
  <pre><code>  public isEnabled(featureId: string): Promise&lt;boolean&gt; {
      return this.toggle.isEnabled(featureId)
    }
  </code></pre>