ember-cli-fastboot-testing
Version:
Test your FastBoot-rendered HTML alongside your application's tests.
24 lines (20 loc) • 514 B
JavaScript
/* eslint-env node */
module.exports = {
description:
'Generates test config for adding custom Fastboot sandbox globals',
normalizeEntityName(entityName) {
return entityName;
},
fileMapTokens(/* options */) {
let configPath = 'config';
let pkg = this.project.pkg;
if (pkg['ember-addon'] && pkg['ember-addon']['configPath']) {
configPath = pkg['ember-addon']['configPath'];
}
return {
__config__(/* options */) {
return configPath;
},
};
},
};