# Ember-cli with Testem

**URL:** <https://discuss.emberjs.com/t/ember-cli-with-testem/6309>\
**Category:** Ember CLI\
**Created:** [September 22, 2014, 8:55am UTC](https://discuss.emberjs.com/t/ember-cli-with-testem/6309 "2014-09-22T08:55:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![visheshjoshi](https://avatars.discourse-cdn.com/v4/letter/v/8edcca/32.png) [@visheshjoshi](https://discuss.emberjs.com/u/visheshjoshi)\
**Post date:** [September 22, 2014, 8:55am UTC](https://discuss.emberjs.com/t/ember-cli-with-testem/6309/1 "2014-09-22T08:55:07Z")

</div>

I see that a few files are loaded while using ember test which are

- vendor.js
- test-support.js
- app.js
- test-loader.js

I have a few other files that I would like to be loaded which define a bunch of globals etc. Is there a way to do that. Ember cli seems to be completely neglecting my “serve\_file” config in testem.json. I am kinda new to javascript. Any help is greatly appreciated…

---

<div class="post-metadata">

**Author:** ![rwjblue](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/rwjblue/32/9411_2.png) [@rwjblue](https://discuss.emberjs.com/u/rwjblue)\
**Post date:** [September 22, 2014, 9:43am UTC](https://discuss.emberjs.com/t/ember-cli-with-testem/6309/2 "2014-09-22T09:43:39Z")

</div>

ember-cli uses ‘tests/index.html’ as the served file. If you add a custom script there (that is accessible in the build) it will be picked up and used when you run ‘ember test’.

---

<div class="post-metadata">

**Author:** ![visheshjoshi](https://avatars.discourse-cdn.com/v4/letter/v/8edcca/32.png) [@visheshjoshi](https://discuss.emberjs.com/u/visheshjoshi)\
**Post date:** [September 22, 2014, 5:31pm UTC](https://discuss.emberjs.com/t/ember-cli-with-testem/6309/3 "2014-09-22T17:31:27Z")

</div>

Thanks @rwjblue. I did put my custom scripts in there and it worked, but I was wondering if instead of putting a bunch of javascript in the index.html, if I could get other files loaded and have them referenced in the index.html?

---

<div class="post-metadata">

**Author:** ![visheshjoshi](https://avatars.discourse-cdn.com/v4/letter/v/8edcca/32.png) [@visheshjoshi](https://discuss.emberjs.com/u/visheshjoshi)\
**Post date:** [September 22, 2014, 11:45pm UTC](https://discuss.emberjs.com/t/ember-cli-with-testem/6309/4 "2014-09-22T23:45:43Z")

</div>

I was able to do what I was requesting the only reason why I wasn’t able to find my js files was because my modulePrefix in my resolver was different from the folder I was looking in for the file.

You can add all js files by using require(‘/’);

Hope that helps someone.
