-
Notifications
You must be signed in to change notification settings - Fork 12k
fix(new): include routing in spec and inline template when called with --routing
#3252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import * as path from 'path'; | ||
import {ng} from '../../../utils/process'; | ||
import {getGlobalVariable} from '../../../utils/env'; | ||
|
||
export default function() { | ||
return Promise.resolve() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You seem to overly complicate how this test could work. Why not:
The only thing missing would be to We already work off a temporary directory, there's no need to clean up after yourself :) This is by design. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. #3287 will fix the chdir. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You keep showing me awesome gems. I didn't realise the Will update tomorrow or today if I have time. |
||
.then(() => process.chdir(getGlobalVariable('tmp-root'))) | ||
.then(() => ng('new', 'routing-project', '--routing')) | ||
.then(() => process.chdir(path.join('routing-project'))) | ||
|
||
// Try to run the unit tests. | ||
.then(() => ng('test', '--single-run')); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we're fixing this, can you add a
compileComponents
call in here as well?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.