39010d2b76
* ui: Adds ember-data blueprints for Consul specific HTTP adapter etc These are currently quite Consul specific, but we also overwrite the default model-test blueprint to keep the names consistent (dasherized) for easy test filtering. ``` ember generate [adapter|serializer|model|repository|route] <name> ```
28 lines
552 B
JavaScript
28 lines
552 B
JavaScript
/*eslint node/no-extraneous-require: "off"*/
|
|
'use strict';
|
|
|
|
const useTestFrameworkDetector = require('@ember-data/-build-infra/src/utilities/test-framework-detector');
|
|
const path = require('path');
|
|
|
|
module.exports = useTestFrameworkDetector({
|
|
description: 'Generates a Consul HTTP ember-data adapter unit and integration tests',
|
|
|
|
root: __dirname,
|
|
|
|
fileMapTokens(options) {
|
|
return {
|
|
__root__() {
|
|
return 'tests';
|
|
},
|
|
__path__() {
|
|
return '';
|
|
}
|
|
};
|
|
},
|
|
|
|
locals(options) {
|
|
return {
|
|
};
|
|
},
|
|
});
|