Comments (8)
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.
Still happens in 1.0.7
from karma-viewport.
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.
@squidfunk I think it’s related to
Lines 92 to 95 in 3b3177e
You’re pushing JSON file to files
array and Karma doesn’t recognize it among file types it supports.
from karma-viewport.
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.
When this fix will be released?
from karma-viewport.
I'm sorry, I totally forgot about this! Just released 1.0.5 which contains the fix.
from karma-viewport.
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)
- Viewport is not defined in Karma DEBUG RUNNER HOT 10
- No provider for "framework:viewport"! HOT 5
- Debug context middleware not being registered HOT 9
- Is there a good way to test scrolling within the viewport? HOT 3
- Error with PhantomJs HOT 1
- Getting the TypeScript typings to work HOT 25
- 404 for adapter sourcemap. HOT 2
- ReferenceError: viewport is not defined HOT 10
- Source map issues HOT 3
- No window resize event is triggered HOT 3
- Log4js Vulnerability HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from karma-viewport.