Giter Club home page Giter Club logo

Comments (8)

niksy avatar niksy commented on May 5, 2024 2

Sorry, haven’t had a chance, but if adding { pattern: file, type: 'js' } doesn’t work, maybe it’s something Karma related?

from karma-viewport.

cerealexx avatar cerealexx commented on May 5, 2024 1

Still happens in 1.0.7

from karma-viewport.

squidfunk avatar squidfunk commented on May 5, 2024

Confirmed. Also encountered that with a newer version of Karma recently, but after some fiddling still haven't found a fix yet. It's just a warning, so it should have no impact on functionality. Happy to merge a PR.

from karma-viewport.

niksy avatar niksy commented on May 5, 2024

@squidfunk I think it’s related to

config.files!.push(
pattern(path.resolve(__dirname, "config/default.json")),
pattern(path.resolve(__dirname, "adapter/index.js"))
)

You’re pushing JSON file to files array and Karma doesn’t recognize it among file types it supports.

from karma-viewport.

squidfunk avatar squidfunk commented on May 5, 2024

Thanks for investigating. Did you come across an idea how to silence the warning? Already tried adding it as a mime type but that didn’t do the trick.

from karma-viewport.

sebastiangora avatar sebastiangora commented on May 5, 2024

When this fix will be released?

from karma-viewport.

squidfunk avatar squidfunk commented on May 5, 2024

I'm sorry, I totally forgot about this! Just released 1.0.5 which contains the fix.

from karma-viewport.

riteshjagga avatar riteshjagga commented on May 5, 2024

This isn't related to karma-viewport but want to reply as I got solution from this conversation thread and others can benefit if they land here like me.

I have test cases in CoffeeScript files which are configured as described here.

Had the similar issue WARN [middleware:karma]: Invalid file type, defaulting to js. coffee and got it fixed by using

files: [
  'public/javascripts/lib.js',
  {pattern: 'app/*.coffee', type: 'js'}
]

from karma-viewport.

Related Issues (12)

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.