GithubHelp home page GithubHelp logo

Comments (8)

gerad avatar gerad commented on June 12, 2024

Ok, as far as I can tell, the root cause is that process_require_jasmine_directive is not getting called by sprockets.

from jasmine-rails.

gerad avatar gerad commented on June 12, 2024

possibly due to tilt caching?

from jasmine-rails.

gerad avatar gerad commented on June 12, 2024

ok, so, as far as I can tell, the issue is that sprockets does not know to re-run require_jasmine in jasmine_rails/application.js due to additions to the files implicitly referenced in jasmine.yml

hence, if i've got a cached version of jasmine_rails/application.js around, then any specs I add are not going to be found and run

I'm not sure if there's a simple solution, as sprockets and jasmine.yml specify files to include in entirely different ways

my first instinct would be to ignore the explicit enumeration of src files in jasmine.yml and instead have the jasmine_rails rails engine just bring in application.js... this should be more true to production anyway

I'm not sure how that might affect the headless runner though

from jasmine-rails.

gerad avatar gerad commented on June 12, 2024

part of the problem is that the rails cache in development is filestore by default now

from jasmine-rails.

searls avatar searls commented on June 12, 2024

I believe this is fixed. If not from the referenced pull request, then from the rewrite to how jasmine-rails searches for files.

from jasmine-rails.

ryandoherty avatar ryandoherty commented on June 12, 2024

Just ran into this issue myself. Had to rm -rf tmp/cache/assets/* .

jasmine-core (1.3.1)
jasmine-rails (0.4.2)
rails (3.2.12)

from jasmine-rails.

searls avatar searls commented on June 12, 2024

I just spent a little while trying to replicate, @ryandoherty and I was not able to -- could you push a minimal sample project to demonstrate?

from jasmine-rails.

ryandoherty avatar ryandoherty commented on June 12, 2024

Quick question, is there anything in tmp/cache/assets? I will try to replicate but I think I did asset compilation at some point before setting up jasmine-rails and that was what caused the problem. Currently on a plane for vacation so I might not have time for ~1 week. Thanks!

from jasmine-rails.

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.