Giter Club home page Giter Club logo

ember-cli-testem-http-mocks's Introduction

ember-cli-testem-http-mocks

http-mocks currently are not hooked up on the express server that is instantiated as part of ember test.

There have been a number of attempts to land this and those can be tracked here: ember-cli/issues/#1763

Until the core issue is fixed, this addon works around the feature/bug by allowing mocks to be registered against the testem server.

Installation

  • ember install ember-cli-testem-http-mocks
  • ember g http-mock /api (create a mock if one is not already created)

Disable

DISABLE_MOCKS=true ember test

Running

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://ember-cli.com/.

ember-cli-testem-http-mocks's People

Contributors

jasonmit avatar ember-tomster avatar

Stargazers

Chad avatar Scott Newcomer avatar Ezy avatar Sean McCleary avatar Rafał Trojanowski avatar David Boureau avatar  avatar Ryan Rapp avatar

Watchers

James Cloos avatar  avatar

ember-cli-testem-http-mocks's Issues

Is there a good reason why register-http-mocks.js is in project root?

This seems like a poor place to put this file. It would be better suited to be in server/ rather than root. I also think a better overall approach can be made by exposing the mocks functionality as an exported named function rather than it a separate file. This would keep it in server/index.js and the change could be pushed upstream back into ember-cli's blueprint. Thoughts?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.