Skip to content

Commit 72b1589

Browse files
kyliauayazhafiz
authored andcommitted
test: add @angular/common to test project
Install `@angular/common` in the test project so that we could test features like pipes. `@angular/compiler` and `@angular/compiler-cli` are needed so that we can run ngcc.
1 parent b5639ba commit 72b1589

File tree

4 files changed

+406
-7
lines changed

4 files changed

+406
-7
lines changed

integration/project/app/app.module.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
import { CommonModule } from '@angular/common';
12
import { NgModule } from '@angular/core';
23
import { AppComponent } from './app.component';
34
import { FooComponent } from './foo.component';
45

56
@NgModule({
6-
imports: [],
7+
imports: [
8+
CommonModule,
9+
],
710
declarations: [
811
AppComponent,
912
FooComponent,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{title}}
1+
{{title | uppercase}}

integration/project/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"name": "angular-ls-integration-test-project",
33
"private": true,
44
"dependencies": {
5+
"@angular/common": "10.1.2",
6+
"@angular/compiler": "10.1.2",
7+
"@angular/compiler-cli": "10.1.2",
58
"@angular/core": "10.1.2",
69
"rxjs": "6.6.3",
710
"zone.js": "0.11.1"

0 commit comments

Comments
 (0)