Update tests to be compatible with newer Yeoman generator

This commit is contained in:
SteveSandersonMS
2016-12-15 16:52:02 +00:00
parent 4580412f73
commit f34eb582ad
2 changed files with 7 additions and 1 deletions

View File

@@ -10,7 +10,12 @@ import { getValue, getCssPropertyValue } from './util/webdriverio';
const appDir = path.resolve(__dirname, '../generated/angular');
const publishedAppDir = path.resolve(appDir, './bin/Release/published');
if (!process.env.SKIP_PROJECT_GENERATION) {
generateProjectSync(appDir, { framework: 'angular-2', name: 'Test App', tests: false });
generateProjectSync(appDir, {
framework: 'angular-2',
name: 'Test App',
sdkVersion: '1.0.0-preview2-1-003177',
tests: false
});
publishProjectSync(appDir, publishedAppDir);
}

View File

@@ -9,6 +9,7 @@ const yoPackageDirAbsolute = path.resolve('./node_modules/yo');
export interface GeneratorOptions {
framework: string;
name: string;
sdkVersion?: string;
tests?: boolean;
}