blanket.js not working with qunit in Ember-cli
Asked Answered
N

2

1

I would like to run blanket.js with qunit in my Ember-Cli app - I would like to avoid adding in grunt for only this purpose

Tried to use npm install --save-dev blanket ( putting it in the node_modules dir ) and then putting the following in my index.html ( from my test dir )

 <script>
  window.CioMobileENV = {{ENV}};
  window.EmberENV = window.CioMobileENV.EmberENV;
  debugger;
</script>
<script src="assets/qunit.js"></script>
<script src="assets/qunit-notifications.js"></script>
<script src="blanket.js"></script>
<script src="assets/vendor.js"></script>
<script src="assets/cio-mobile.js" data-cover></script>
<script src="testem.js"></script>
<script>
  require('cio-mobile/tests/test-helper');
</script>
<script src="assets/test-loader.js"></script>

after running ember server and in the browser going to /tests - the test run but in the console I see that blanket.js is not found

I also tried a similar approach using bower install blanket ( so in the vender dir ) this gave the same result.

I also tried putting in the path explicitly - and still blanket.js is not found

any help would be great!

Nondisjunction answered 30/6, 2014 at 20:33 Comment(0)
A
2

This tool has recently been released: ember-cli-blanket. Installation is as simple as what the instructions state.

For what it's worth though, I've tried using this, and i'm not getting accurate coverage reports. It's possible it is user error though.

Anemic answered 10/12, 2014 at 19:26 Comment(0)
P
0

I am also working on using blanket with CLI. Download blanket.min.js and manually drop it in your assets folder, and change it to

<script src="assets/blanket.min.js"></script>

It will be included then. I am running blanket fine using that approach. It's still not very useful, because I don't know how to grab the transpiled files to run it on though.

Paratyphoid answered 1/7, 2014 at 15:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.