open-consul/ui/packages/consul-ui/blueprints/repository-test/index.js

31 lines
667 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
/*eslint node/no-extraneous-require: "off"*/
const useTestFrameworkDetector = require('@ember-data/private-build-infra/src/utilities/test-framework-detector');
module.exports = useTestFrameworkDetector({
description: 'Generates Consul repository unit and integration tests',
root: __dirname,
fileMapTokens(options) {
return {
__root__() {
return 'tests';
},
__path__() {
return '';
},
};
},
locals(options) {
return {
screamingSnakeCaseModuleName: options.entity.name.replace('-', '_').toUpperCase(),
};
},
});