8000 fix(test): add missing sourceDir (#1387) · angular/angular-cli@86c425c · GitHub
[go: up one dir, main page]

Skip to content

Commit 86c425c

Browse files
authored
fix(test): add missing sourceDir (#1387)
1 parent 05b5ca3 commit 86c425c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

addon/ng2/models/webpack-build-mobile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const getWebpackMobileConfigPartial = function (projectRoot: string, sour
2121
}
2222
};
2323

24-
export const getWebpackMobileProdConfigPartial = function (projectRoot: string) {
24+
export const getWebpackMobileProdConfigPartial = function (projectRoot: string, sourceDir: string) {
2525
return {
2626
entry: {
2727
'sw-install': path.resolve(__dirname, '../utilities/sw-install.js')

addon/ng2/tasks/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports = Task.extend({
3434
// Single test entry file. Will run the test.ts bundle and track it.
3535
options.files = [{ pattern: testFile, watched: false }];
3636
options.preprocessors = { [testFile]: ['webpack','sourcemap'] };
37-
options.webpack = webpackTestConfig(projectRoot);
37+
options.webpack = webpackTestConfig(projectRoot, this.project.ngConfig.defaults.sourceDir);
3838
options.webpackMiddleware = {
3939
noInfo: true, // Hide webpack output because its noisy.
4040
stats: { // Also prevent chunk and module display output, cleaner look. Only emit errors.

0 commit comments

Comments
 (0)
0