Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rahsheen/ember-engines-testing-repro
Repo to demonstrate that Models cannot be resolved in Ember Engines Integration testing
https://github.com/rahsheen/ember-engines-testing-repro
Last synced: 13 days ago
JSON representation
Repo to demonstrate that Models cannot be resolved in Ember Engines Integration testing
- Host: GitHub
- URL: https://github.com/rahsheen/ember-engines-testing-repro
- Owner: rahsheen
- Created: 2019-10-19T04:31:45.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:50:53.000Z (about 1 year ago)
- Last Synced: 2024-04-15T16:10:55.791Z (9 months ago)
- Language: JavaScript
- Size: 116 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ember-engines-testing
This repository is a reproduction of an issue which occurs when testing Ember components within an in-repo engine. In order to test such components, the Ember Resolver must be modified to be able to resolve these components.
The problem is that, in modifying the resolver in this way, the _Integration Test_ code is no longer able to resolve the host app models. This means that it's not possible to easily mock out more complex model relationships for testing components. Also, add-ons like Ember CLI Mirage and FactoryGuy are rendered useless.
## Prerequisites
You will need the following things properly installed on your computer.
* [Git](https://git-scm.com/)
* [Node.js](https://nodejs.org/) (with npm)
* [Ember CLI](https://ember-cli.com/)
* [Google Chrome](https://google.com/chrome/)## Installation
* `git clone ` this repository
* `cd ember-engines-testing`
* `npm install`## Running / Development
* `ember serve`
* Visit your app at [http://localhost:4200](http://localhost:4200).
* Visit your tests at [http://localhost:4200/tests](http://localhost:4200/tests).### Code Generators
Make use of the many generators for code, try `ember help generate` for more details
### Running Tests
* `ember test`
* `ember test --server`### Linting
* `npm run lint:hbs`
* `npm run lint:js`
* `npm run lint:js -- --fix`### Building
* `ember build` (development)
* `ember build --environment production` (production)### Deploying
Specify what it takes to deploy your app.
## Further Reading / Useful Links
* [ember.js](https://emberjs.com/)
* [ember-cli](https://ember-cli.com/)
* Development Browser Extensions
* [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi)
* [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/)