Code Monkey home page Code Monkey logo

Comments (4)

MSch avatar MSch commented on May 10, 2024

Thanks for reporting this issue.

Unfortunately I'm unsure how to reproduce this, looking at our PSPDFKit Instant codebase we have test cases with exactly the same pattern that all do work.

Can you post a complete failing example, so I can reproduce and debug?

from bypass.

stevedomin avatar stevedomin commented on May 10, 2024

Sorry for the slow reply @MSch, turns out that I slightly mis-represented the failing test case in my issue description, that's why you haven't been able to reproduce it.

The codebase I refer to is actually using setup_all callbacks as opposed to setup ones.

Here is a before/after PR: swoosh/swoosh#149

I'm wondering if that should still be mentioned as a breaking change somewhere, or if setup_all were never expected to work nicely with Bypass.

from bypass.

MSch avatar MSch commented on May 10, 2024

No worries @stevedomin and I'm glad we figured it out and it's working for you now 👍

You're right, setup_all was never meant to be the right place for Bypass.open to be called, because Bypass needs to be able to verify the expectation, and that happens at the end of the test.

So in that case it's not a breaking change, since it never was expected to work.

I'm closing this, but please let me know if you think there's a way to improve the documentation to make these expectations clearer. A PR is welcome too :)

from bypass.

stevedomin avatar stevedomin commented on May 10, 2024

Thanks @MSch, opened a PR with a note in the README: #46

from bypass.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.