javascript - Change the way to load files from grunt-karma 0.9 to 0.10? -


This is a way to load files in Karma. the option. File from 0.9.x to 0.10.x property?

In 0.9.x I have this code and works fine

  prj: {src: 'src', test: 'test', jsPattern: '** / * .js ', Files: {src: [' & lt;% = prj.src% & gt; / & Lt;% = prj.js page% & gt; '], SrcTest: [' & lt;% = prj.test% & gt; / & Lt;% = prj.jsPattern% & gt; ']}}, Karma: {option: {files: [' lt;% = prj.files.src% & gt; ',' & Lt;% = prj.files.srcTest% & gt; ']}}  

But give me this error in 0.10.1

  WARN [config]: invalid pattern src / ** / *. Js! Object "pattern" property is missing WARN [config]: invalid pattern tests / ** / *. Js! Object "pattern" property is missing  

I have to change to fix

  prj: {src: 'src', test: 'test', JS : '** / *. JS ', files: {src:' & lt;% = prj.src% & gt; / & Lt;% = prj.js page% & gt; ', SrcTest:' & lt;% = prj.test% & gt; / & Lt;% = Prj.jsPattern% & gt; }}, Karma: {Options: {files: ['<% = prj.files.src%>', '<% = prj.files.srcTest%> ]}}  

And it works! But, how can be involved in karma. Options.files An array of patterns like the first example?


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -