diff --git a/libs/shared/typescript/charts-angular/project.json b/libs/shared/typescript/charts-angular/project.json index c82206b4a..470121fa9 100644 --- a/libs/shared/typescript/charts-angular/project.json +++ b/libs/shared/typescript/charts-angular/project.json @@ -5,6 +5,13 @@ "sourceRoot": "libs/shared/typescript/charts-angular/src", "prefix": "sage", "targets": { + "test": { + "executor": "@nx/jest:jest", + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], + "options": { + "jestConfig": "libs/shared/typescript/charts-angular/jest.config.ts" + } + }, "lint": { "executor": "@nx/eslint:lint" }, diff --git a/libs/shared/typescript/charts-angular/src/lib/boxplot/boxplot.directive.spec.ts b/libs/shared/typescript/charts-angular/src/lib/boxplot/boxplot.directive.spec.ts index 06dc02793..a791ebd18 100644 --- a/libs/shared/typescript/charts-angular/src/lib/boxplot/boxplot.directive.spec.ts +++ b/libs/shared/typescript/charts-angular/src/lib/boxplot/boxplot.directive.spec.ts @@ -10,6 +10,7 @@ import { BoxplotDirective } from './boxplot.directive'; const renderTestComponent = async (props: BoxplotProps) => { @Component({ + imports: [BoxplotDirective], template: `