-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DONE: ES MODULE HACKING DONE FOR BROWSER
- Loading branch information
Showing
4 changed files
with
71 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import models from '_memserver_models'; | ||
import fixtures from '_memserver_fixtures' | ||
import targetMemServer from '_memserver'; | ||
import MEMSERVER from './mem-server'; | ||
|
||
const modelFixtureTree = Object.keys(models).reduce((tree, modelName) => { | ||
return Object.assign({}, tree, { | ||
[modelName]: { | ||
model: models[modelName], | ||
fixtures: fixtures[modelName] || [] | ||
} | ||
}); | ||
}, {}); | ||
|
||
const memserver = MEMSERVER(modelFixtureTree, targetMemServer); | ||
|
||
export default memserver; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters