Skip to content

Commit

Permalink
馃敡 fix angular jest not passing
Browse files Browse the repository at this point in the history
  • Loading branch information
flolu committed Sep 27, 2019
1 parent 543a303 commit d0a3baa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -10,7 +10,7 @@
"fire": "yarn install && yarn build",
"refire": "yarn clean && yarn fire",
"start:dev": "npm-run-all --parallel build:watch start:docker:dev start:frontend",
"test": "lerna run test --ignore frontend",
"test": "lerna run test",
"start": "yarn start:docker",
"---": "---",
"start:frontend": "lerna exec --scope frontend -- yarn start",
Expand Down
6 changes: 2 additions & 4 deletions services/frontend/src/app/app.component.spec.ts
Expand Up @@ -8,11 +8,9 @@ import { IdeasService } from './ideas.service';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [RouterTestingModule, ReactiveFormsModule /* HttpClientModule */],
imports: [RouterTestingModule, ReactiveFormsModule, HttpClientModule],
declarations: [AppComponent],
providers: [
/* IdeasService */
],
providers: [IdeasService],
}).compileComponents();
}));

Expand Down
3 changes: 2 additions & 1 deletion services/frontend/tsconfig.spec.json
Expand Up @@ -3,7 +3,8 @@
"compilerOptions": {
"outDir": "./out-tsc/spec",
"types": ["jest", "node"],
"module": "commonjs"
"module": "commonjs",
"emitDecoratorMetadata": true
},
"files": ["src/test.ts", "src/polyfills.ts"],
"include": ["src/**/*.spec.ts", "src/**/*.d.ts"]
Expand Down

0 comments on commit d0a3baa

Please sign in to comment.