The Wayback Machine - https://web.archive.org/web/20220328142152/https://github.com/topics/mocking
Skip to content
#

mocking

Here are 792 public repositories matching this topic...

msw
kettanaito
kettanaito commented Feb 15, 2022

It may help in some cases of debugging to see what is the registered worker's scope. I don't think there's a way to see the worker's scope in the DevTools, it only lists "clients".

[MSW] Mocking enabled.
- Documentation: https://mswjs.io/docs
- Find an issue? <GITHUB_LINK>
- Scope: /

We may also consider printing additional information:

  • The worker script location;
  • The list
good first issue feature scope:browser
piyushgupta243
piyushgupta243 commented Nov 2, 2021

Issue

The response header does not reflect the correct version for HTTP2 requests. Even though, wiremock replies in h2 but the version in the response header shows "HTTP/1.1 200". This is caused by the hardcoded value in the toString() method of Response.java class

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        **sb.append("HTTP
florianschmidt1994
florianschmidt1994 commented Apr 14, 2017

Hey Guys,
I see an IllegalStateException when running one particular test.

What steps will reproduce the problem?
The following code fails each time it is run

Testcase:

package backend.model.posting

import backend.controller.exceptions.ConflictException
import backend.model.location.Location
import backend.model.user.UserAccount
import org.junit.Before
import org.
bdrung
bdrung commented Feb 3, 2020

https://github.com/agriffis/vcrpy-unittest adds a VCRTestCase (and a VCRMixin) class. They consists only of 23 lines of code. Please include those two functions in your project to avoid needing to install another package. Those tiny package have a bigger overhead and packaging them for Debian would be rejected due to this reason.

enhancement good first issue core
zvirja
zvirja commented May 9, 2019

The issue is based on the discussion in #559.

@zvirja

should we probably modify CI so that doc is published automatically on push to master? This way if we don't want doc to be released right now - just keep it in a branch. Otherwise, we have this non-synchronized docs and manual work.. 😟

@dtchepak

I'm not sure what to do about publishing docs. It would be nice to auto-publish,

build help wanted good first issue documentation
bbrk24
bbrk24 commented Mar 9, 2022

I'm mocking a protocol with a function that looks like this:

func foo(
    completion: @escaping (
        _ bar: Int,
        _ baz: Int,
        _ qux: Int
    ) -> Void
)

The generated mocks do not properly remove the line breaks before attempting to put it into a single-line string literal, resulting in the errors Unterminated string literal, `Consecutive statement

bug good first issue

Improve this page

Add a description, image, and links to the mocking topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the mocking topic, visit your repo's landing page and select "manage topics."

Learn more