diff --git a/jest.config.js b/jest.config.js index 6a4d089a9b..b9ca26e8a3 100644 --- a/jest.config.js +++ b/jest.config.js @@ -23,4 +23,8 @@ module.exports = { }, ], ], + moduleNameMapper: { + // map lodash-es to lodash bundle since jest needs commonjs + '^lodash-es$': 'node_modules/lodash/index.js', + }, }; diff --git a/libs/barista-components/alert/tsconfig.spec.json b/libs/barista-components/alert/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/alert/tsconfig.spec.json +++ b/libs/barista-components/alert/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/autocomplete/tsconfig.spec.json b/libs/barista-components/autocomplete/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/autocomplete/tsconfig.spec.json +++ b/libs/barista-components/autocomplete/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/bar-indicator/tsconfig.spec.json b/libs/barista-components/bar-indicator/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/bar-indicator/tsconfig.spec.json +++ b/libs/barista-components/bar-indicator/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/breadcrumbs/tsconfig.spec.json b/libs/barista-components/breadcrumbs/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/breadcrumbs/tsconfig.spec.json +++ b/libs/barista-components/breadcrumbs/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/button-group/tsconfig.spec.json b/libs/barista-components/button-group/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/button-group/tsconfig.spec.json +++ b/libs/barista-components/button-group/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/button/tsconfig.spec.json b/libs/barista-components/button/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/button/tsconfig.spec.json +++ b/libs/barista-components/button/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/card/tsconfig.spec.json b/libs/barista-components/card/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/card/tsconfig.spec.json +++ b/libs/barista-components/card/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/chart/src/chart.ts b/libs/barista-components/chart/src/chart.ts index 551306401e..644eaaaa88 100644 --- a/libs/barista-components/chart/src/chart.ts +++ b/libs/barista-components/chart/src/chart.ts @@ -57,7 +57,7 @@ import { SeriesOptionsType, setOptions, } from 'highcharts'; -import { merge as lodashMerge } from 'lodash'; +import { merge as lodashMerge } from 'lodash-es'; import { BehaviorSubject, defer, diff --git a/libs/barista-components/chart/src/heatfield/chart-heatfield.ts b/libs/barista-components/chart/src/heatfield/chart-heatfield.ts index 768e32dd10..0ff101dd2d 100644 --- a/libs/barista-components/chart/src/heatfield/chart-heatfield.ts +++ b/libs/barista-components/chart/src/heatfield/chart-heatfield.ts @@ -37,7 +37,7 @@ import { isDefined, mixinColor, } from '@dynatrace/barista-components/core'; -import { clamp, round } from 'lodash'; +import { clamp, round } from 'lodash-es'; import { Subject } from 'rxjs'; import { PlotBackgroundInfo } from '../utils'; diff --git a/libs/barista-components/chart/src/highcharts/highcharts-util.ts b/libs/barista-components/chart/src/highcharts/highcharts-util.ts index a254209357..f1aa23b7f9 100644 --- a/libs/barista-components/chart/src/highcharts/highcharts-util.ts +++ b/libs/barista-components/chart/src/highcharts/highcharts-util.ts @@ -19,7 +19,7 @@ import { Options as HighchartsOptions, SeriesPieOptions, } from 'highcharts'; -import { merge as lodashMerge } from 'lodash'; +import { merge as lodashMerge } from 'lodash-es'; import { DtTheme, diff --git a/libs/barista-components/chart/src/selection-area/streams.ts b/libs/barista-components/chart/src/selection-area/streams.ts index 4e14732d41..af223e66fd 100644 --- a/libs/barista-components/chart/src/selection-area/streams.ts +++ b/libs/barista-components/chart/src/selection-area/streams.ts @@ -15,7 +15,7 @@ */ import { ElementRef, NgZone, QueryList } from '@angular/core'; -import { isEqual } from 'lodash'; +import { isEqual } from 'lodash-es'; import { Observable, SchedulerLike, diff --git a/libs/barista-components/chart/tsconfig.spec.json b/libs/barista-components/chart/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/chart/tsconfig.spec.json +++ b/libs/barista-components/chart/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/checkbox/tsconfig.spec.json b/libs/barista-components/checkbox/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/checkbox/tsconfig.spec.json +++ b/libs/barista-components/checkbox/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/confirmation-dialog/tsconfig.spec.json b/libs/barista-components/confirmation-dialog/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/confirmation-dialog/tsconfig.spec.json +++ b/libs/barista-components/confirmation-dialog/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/consumption/tsconfig.spec.json b/libs/barista-components/consumption/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/consumption/tsconfig.spec.json +++ b/libs/barista-components/consumption/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/container-breakpoint-observer/tsconfig.spec.json b/libs/barista-components/container-breakpoint-observer/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/container-breakpoint-observer/tsconfig.spec.json +++ b/libs/barista-components/container-breakpoint-observer/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/context-dialog/tsconfig.spec.json b/libs/barista-components/context-dialog/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/context-dialog/tsconfig.spec.json +++ b/libs/barista-components/context-dialog/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/copy-to-clipboard/tsconfig.spec.json b/libs/barista-components/copy-to-clipboard/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/copy-to-clipboard/tsconfig.spec.json +++ b/libs/barista-components/copy-to-clipboard/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/core/tsconfig.spec.json b/libs/barista-components/core/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/core/tsconfig.spec.json +++ b/libs/barista-components/core/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/drawer/tsconfig.spec.json b/libs/barista-components/drawer/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/drawer/tsconfig.spec.json +++ b/libs/barista-components/drawer/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/empty-state/tsconfig.spec.json b/libs/barista-components/empty-state/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/empty-state/tsconfig.spec.json +++ b/libs/barista-components/empty-state/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/event-chart/tsconfig.spec.json b/libs/barista-components/event-chart/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/event-chart/tsconfig.spec.json +++ b/libs/barista-components/event-chart/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/expandable-panel/tsconfig.spec.json b/libs/barista-components/expandable-panel/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/expandable-panel/tsconfig.spec.json +++ b/libs/barista-components/expandable-panel/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/expandable-section/tsconfig.spec.json b/libs/barista-components/expandable-section/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/expandable-section/tsconfig.spec.json +++ b/libs/barista-components/expandable-section/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/expandable-text/tsconfig.spec.json b/libs/barista-components/expandable-text/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/expandable-text/tsconfig.spec.json +++ b/libs/barista-components/expandable-text/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/filter-field/tsconfig.spec.json b/libs/barista-components/filter-field/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/filter-field/tsconfig.spec.json +++ b/libs/barista-components/filter-field/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/formatters/tsconfig.spec.json b/libs/barista-components/formatters/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/formatters/tsconfig.spec.json +++ b/libs/barista-components/formatters/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/highlight/tsconfig.spec.json b/libs/barista-components/highlight/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/highlight/tsconfig.spec.json +++ b/libs/barista-components/highlight/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/icon/tsconfig.spec.json b/libs/barista-components/icon/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/icon/tsconfig.spec.json +++ b/libs/barista-components/icon/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/info-group/tsconfig.spec.json b/libs/barista-components/info-group/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/info-group/tsconfig.spec.json +++ b/libs/barista-components/info-group/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/inline-editor/tsconfig.spec.json b/libs/barista-components/inline-editor/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/inline-editor/tsconfig.spec.json +++ b/libs/barista-components/inline-editor/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/input/tsconfig.spec.json b/libs/barista-components/input/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/input/tsconfig.spec.json +++ b/libs/barista-components/input/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/key-value-list/tsconfig.spec.json b/libs/barista-components/key-value-list/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/key-value-list/tsconfig.spec.json +++ b/libs/barista-components/key-value-list/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/legend/tsconfig.spec.json b/libs/barista-components/legend/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/legend/tsconfig.spec.json +++ b/libs/barista-components/legend/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/loading-distractor/tsconfig.spec.json b/libs/barista-components/loading-distractor/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/loading-distractor/tsconfig.spec.json +++ b/libs/barista-components/loading-distractor/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/menu/tsconfig.spec.json b/libs/barista-components/menu/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/menu/tsconfig.spec.json +++ b/libs/barista-components/menu/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/micro-chart/src/micro-chart.spec.ts b/libs/barista-components/micro-chart/src/micro-chart.spec.ts index c51ccc8ac7..c7008def94 100644 --- a/libs/barista-components/micro-chart/src/micro-chart.spec.ts +++ b/libs/barista-components/micro-chart/src/micro-chart.spec.ts @@ -32,7 +32,7 @@ import { SeriesLineOptions, SeriesLineDataOptions, } from 'highcharts'; -import { merge } from 'lodash'; +import { merge } from 'lodash-es'; import { BehaviorSubject } from 'rxjs'; import { DtMicroChart, diff --git a/libs/barista-components/micro-chart/src/micro-chart.ts b/libs/barista-components/micro-chart/src/micro-chart.ts index ad861e741b..50432cae4f 100644 --- a/libs/barista-components/micro-chart/src/micro-chart.ts +++ b/libs/barista-components/micro-chart/src/micro-chart.ts @@ -46,7 +46,7 @@ import { SeriesLineDataOptions, SeriesLineOptions, } from 'highcharts'; -import { merge as lodashMerge } from 'lodash'; +import { merge as lodashMerge } from 'lodash-es'; import { Observable, Subscription } from 'rxjs'; import { map } from 'rxjs/operators'; import { getDtMicrochartColorPalette } from './micro-chart-colors'; diff --git a/libs/barista-components/micro-chart/tsconfig.spec.json b/libs/barista-components/micro-chart/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/micro-chart/tsconfig.spec.json +++ b/libs/barista-components/micro-chart/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/overlay/tsconfig.spec.json b/libs/barista-components/overlay/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/overlay/tsconfig.spec.json +++ b/libs/barista-components/overlay/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/package.json b/libs/barista-components/package.json index b078b16891..f705ece33f 100644 --- a/libs/barista-components/package.json +++ b/libs/barista-components/package.json @@ -28,6 +28,7 @@ "d3-scale": "^3.0.0", "d3-shape": "^1.3.5", "highcharts": "^6.0.7", + "lodash-es": "^4.17.15", "tslib": "^1.9.0" }, "schematics": "./schematics/collection.json", diff --git a/libs/barista-components/pagination/tsconfig.spec.json b/libs/barista-components/pagination/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/pagination/tsconfig.spec.json +++ b/libs/barista-components/pagination/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/progress-bar/tsconfig.spec.json b/libs/barista-components/progress-bar/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/progress-bar/tsconfig.spec.json +++ b/libs/barista-components/progress-bar/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/progress-circle/tsconfig.spec.json b/libs/barista-components/progress-circle/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/progress-circle/tsconfig.spec.json +++ b/libs/barista-components/progress-circle/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/radial-chart/tsconfig.spec.json b/libs/barista-components/radial-chart/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/radial-chart/tsconfig.spec.json +++ b/libs/barista-components/radial-chart/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/radio/tsconfig.spec.json b/libs/barista-components/radio/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/radio/tsconfig.spec.json +++ b/libs/barista-components/radio/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/schematics/tsconfig.spec.json b/libs/barista-components/schematics/tsconfig.spec.json index a76763052f..c1649ecf60 100644 --- a/libs/barista-components/schematics/tsconfig.spec.json +++ b/libs/barista-components/schematics/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "exclude": [], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/secondary-nav/tsconfig.spec.json b/libs/barista-components/secondary-nav/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/secondary-nav/tsconfig.spec.json +++ b/libs/barista-components/secondary-nav/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/select/tsconfig.spec.json b/libs/barista-components/select/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/select/tsconfig.spec.json +++ b/libs/barista-components/select/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/show-more/tsconfig.spec.json b/libs/barista-components/show-more/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/show-more/tsconfig.spec.json +++ b/libs/barista-components/show-more/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/stepper/tsconfig.spec.json b/libs/barista-components/stepper/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/stepper/tsconfig.spec.json +++ b/libs/barista-components/stepper/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/switch/tsconfig.spec.json b/libs/barista-components/switch/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/switch/tsconfig.spec.json +++ b/libs/barista-components/switch/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/table/tsconfig.spec.json b/libs/barista-components/table/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/table/tsconfig.spec.json +++ b/libs/barista-components/table/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/tabs/tsconfig.spec.json b/libs/barista-components/tabs/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/tabs/tsconfig.spec.json +++ b/libs/barista-components/tabs/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/tag/tsconfig.spec.json b/libs/barista-components/tag/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/tag/tsconfig.spec.json +++ b/libs/barista-components/tag/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/theming/tsconfig.spec.json b/libs/barista-components/theming/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/theming/tsconfig.spec.json +++ b/libs/barista-components/theming/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/tile/tsconfig.spec.json b/libs/barista-components/tile/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/tile/tsconfig.spec.json +++ b/libs/barista-components/tile/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/timeline-chart/tsconfig.spec.json b/libs/barista-components/timeline-chart/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/timeline-chart/tsconfig.spec.json +++ b/libs/barista-components/timeline-chart/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/toast/tsconfig.spec.json b/libs/barista-components/toast/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/toast/tsconfig.spec.json +++ b/libs/barista-components/toast/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/toggle-button-group/tsconfig.spec.json b/libs/barista-components/toggle-button-group/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/toggle-button-group/tsconfig.spec.json +++ b/libs/barista-components/toggle-button-group/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/top-bar-navigation/tsconfig.spec.json b/libs/barista-components/top-bar-navigation/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/top-bar-navigation/tsconfig.spec.json +++ b/libs/barista-components/top-bar-navigation/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/libs/barista-components/tree-table/tsconfig.spec.json b/libs/barista-components/tree-table/tsconfig.spec.json index fd405a65ef..01c37f20f8 100644 --- a/libs/barista-components/tree-table/tsconfig.spec.json +++ b/libs/barista-components/tree-table/tsconfig.spec.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "../../../dist/out-tsc", "module": "commonjs", - "types": ["jest", "node"] + "types": ["jest", "node"], + "esModuleInterop": true }, "files": ["src/test-setup.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] diff --git a/package-lock.json b/package-lock.json index 6463726f01..2a04ca8eab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6509,6 +6509,15 @@ "integrity": "sha512-kMNLM5JBcasgYscD9x/Gvr6lTAv2NVgsKtet/hm93qMyf/D1pt+7jeEZklKJKxMVmXjxbRVQQGfqDSfipYCO6w==", "dev": true }, + "@types/lodash-es": { + "version": "4.17.3", + "resolved": "https://registry.npmjs.org/@types/lodash-es/-/lodash-es-4.17.3.tgz", + "integrity": "sha512-iHI0i7ZAL1qepz1Y7f3EKg/zUMDwDfTzitx+AlHhJJvXwenP682ZyGbgPSc5Ej3eEAKVbNWKFuwOadCj5vBbYQ==", + "dev": true, + "requires": { + "@types/lodash": "*" + } + }, "@types/markdown-it": { "version": "10.0.1", "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-10.0.1.tgz", @@ -20692,6 +20701,11 @@ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" }, + "lodash-es": { + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.15.tgz", + "integrity": "sha512-rlrc3yU3+JNOpZ9zj5pQtxnx2THmvRykwL4Xlxoa8I9lHBlVbbyPhgyPMioxVZ4NqyxaVVtaJnzsyOidQIhyyQ==" + }, "lodash._reinterpolate": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", diff --git a/package.json b/package.json index a1fc5c6f9a..069764d0cc 100644 --- a/package.json +++ b/package.json @@ -75,7 +75,7 @@ "highlight-ts": "^9.12.1-2", "lit-element": "^2.3.1", "lit-html": "^1.2.1", - "lodash": "^4.17.15", + "lodash-es": "^4.17.15", "rxjs": "^6.5.5", "zone.js": "~0.10.2" }, @@ -113,6 +113,7 @@ "@types/inquirer": "^6.5.0", "@types/jest": "^24.0.15", "@types/lodash": "^4.14.150", + "@types/lodash-es": "^4.17.3", "@types/markdown-it": "^10.0.1", "@types/node": "^12.12.29", "@types/sass-graph": "^2.1.2", @@ -147,6 +148,7 @@ "jest-junit": "^10.0.0", "jest-preset-angular": "8.0.0", "jest-serializer-path": "^0.1.15", + "lodash": "^4.17.15", "markdown-it": "^10.0.0", "markdown-it-deflist": "^2.0.3", "memfs": "^3.0.3",