lacides / ember-cli-fixture-loader Goto Github PK
View Code? Open in Web Editor NEWKeep your fixtures separate from your models
License: MIT License
Keep your fixtures separate from your models
License: MIT License
It would be great to have a setting to not include the fixtures in specific ENVs.
For exmaple if someone wants to just use his fixtures for development and testing.
What do you think about it?
I installed using your guide and tried creating a fixture of a model and I get the following error.
MacBook-Pro:app Animal$ ember generate fixture league
The package ember-cli-fixture-loader
is not a properly formatted package, we have used a fallback lookup to resolve it at /Users/Animal/Documents/Git/App/node_modules/ember-cli-fixture-loader
. This is generally caused by an addon not having a main
entry point (or index.js
).
The ember-cli-fixture-loader
addon could not be found at /Users/Animal/Documents/Git/App/node_modules/ember-cli-fixture-loader
.
I double checked to make sure that the ember-cli-fixture-loader folder was in the node-modules and it is. I'm using up to date ember & ember-data. Any ideas?
I cant seem to get the fixture loader to load fixtures in pods.
I've created a pod called case and used ember g fixture case --pod
to generate a fixture. This created the file app/case/fixture.js
which a populated with one object.
When calling this.store.find('case', 1)
I get the error:
Assertion Failed: Unable to find fixtures for model type app@model:case:. If you're defining your fixtures using 'Model.FIXTURES = ...'', please change it to 'Model.reopenClass({ FIXTURES: ... })'
The fixtures for models not in pods load as expected and adding fixtures manually in the model file using Model.reopenClass({ FIXTURES: [ { id: 1 } ] });
works perfectly.
Anything I am missing regarding using fixtures with pods?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.