Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function emberAddon(dir: string, userOpts: any = {}): any {
let cli = new MockCLI();
let project = new EmberCLIProject(dir, readJSONSync(join(dir, 'package.json')), cli.ui, cli);
return new EmberAddon({ project }, userOpts);
}
function emberApp(dir: string, userOpts: any = {}): any {
let cli = new MockCLI();
let project = new EmberCLIProject(dir, readJSONSync(join(dir, 'package.json')), cli.ui, cli);
return new EmberApp({ project }, userOpts);
}