2023-03-14 13:18:55 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
2023-08-11 13:12:13 +00:00
|
|
|
* SPDX-License-Identifier: BUSL-1.1
|
2023-03-14 13:18:55 +00:00
|
|
|
*/
|
|
|
|
|
2020-12-14 15:28:35 +00:00
|
|
|
/*eslint node/no-extraneous-require: "off"*/
|
2020-03-02 17:45:42 +00:00
|
|
|
const useTestFrameworkDetector = require('@ember-data/private-build-infra/src/utilities/test-framework-detector');
|
|
|
|
|
2019-11-19 10:35:10 +00:00
|
|
|
module.exports = useTestFrameworkDetector({
|
2020-03-02 17:45:42 +00:00
|
|
|
description: 'Generates Consul repository unit and integration tests',
|
2019-11-19 10:35:10 +00:00
|
|
|
|
|
|
|
root: __dirname,
|
|
|
|
|
|
|
|
fileMapTokens(options) {
|
|
|
|
return {
|
|
|
|
__root__() {
|
|
|
|
return 'tests';
|
|
|
|
},
|
|
|
|
__path__() {
|
|
|
|
return '';
|
2020-03-02 17:45:42 +00:00
|
|
|
},
|
2019-11-19 10:35:10 +00:00
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
locals(options) {
|
|
|
|
return {
|
2022-09-15 08:43:17 +00:00
|
|
|
screamingSnakeCaseModuleName: options.entity.name.replace('-', '_').toUpperCase(),
|
2019-11-19 10:35:10 +00:00
|
|
|
};
|
|
|
|
},
|
|
|
|
});
|