karma-requirejs
karma-requirejs copied to clipboard
Anonymous modules at script tag
Hi! In my project, i use separated vendor and application scripts. Vendor scripts i concatinated and placing before require.js library at <script>
tag, but application scripts i loaded through rjs. When use karma, i can't specify ordering of script files, and rjs throws exception Error: Mismatched anonymous define() module
. Any suggestions to solve this issue ?
My karma.conf files
configuration looks like :
files: [
pattern: "#{STATIC_FOLDER}/vendor.js", included: true, watched: false
,
pattern : "#{TEST_FOLDER}/test-main.coffee", included: true
,
pattern: "#{TEST_FOLDER}/**/*.coffee", included: false
,
pattern: "#{APP_FOLDER}/**/*.coffee", included: false
]