GithubHelp home page GithubHelp logo

Comments (7)

elia avatar elia commented on August 17, 2024

The alternative is to manually call Kernel.exit which in turn would trigger at_exit block which is the trick used by rspec/autorun (also by minitest) if I understood the problem correctly…

from opal-rspec.

catmando avatar catmando commented on August 17, 2024

None of this was needed in 0.7, it feels like a problem introduced in 0.8

from opal-rspec.

jgaskins avatar jgaskins commented on August 17, 2024

Would an Opal.Kernel.$exit() call inside the rendered page somewhere after all the scripts are loaded work?

from opal-rspec.

catmando avatar catmando commented on August 17, 2024

A call to Opal.Kernel.$exit() after everything is loaded would almost for sure work, but I still say this looks like some kind of regression introduced in 0.8

from opal-rspec.

jgaskins avatar jgaskins commented on August 17, 2024

@catmando Certainly, I actually meant to direct that at @elia as a potential solution for opal-rspec, not to go into your app specs. :-)

from opal-rspec.

wied03 avatar wied03 commented on August 17, 2024

@catmando, @jgaskins - I agree. This is more of an issue with opal-rails than opal-rspec I think. See discussion in opal/opal-rails#67. The reason I say that is in opal-rspec itself, the autorun call always is done last. It's only in the recent changes to opal-rails (which does its own thing for the browser test runner) that changed.

from opal-rspec.

wied03 avatar wied03 commented on August 17, 2024

I'll go ahead and close this due to the PR/issue in opal-rails referenced above.

from opal-rspec.

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.