From 328ffdaff5cafd8661149a5eb2af800c4627ccde Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Tue, 18 Oct 2022 11:07:31 +0200 Subject: [PATCH] add test utils import alias --- .../devops/plop/templates/property-editor-ui/test.ts.hbs | 2 +- src/Umbraco.Web.UI.Client/src/auth/login/login.test.ts | 3 +-- .../published-status/dashboard-published-status.test.ts | 2 +- .../settings-welcome/dashboard-settings-welcome.test.ts | 2 +- .../dashboards/telemetry/dashboard-telemetry.test.ts | 2 +- .../block-list/property-editor-ui-block-list.test.ts | 2 +- .../checkbox-list/property-editor-ui-checkbox-list.test.ts | 2 +- .../icon-picker/property-editor-ui-icon-picker.test.ts | 2 +- .../toggle/property-editor-ui-toggle.test.ts | 2 +- .../src/installer/consent/installer-content.test.ts | 2 +- .../src/installer/database/installer-database.test.ts | 2 +- .../src/installer/error/installer-error.test.ts | 2 +- src/Umbraco.Web.UI.Client/src/installer/installer.test.ts | 2 +- .../src/installer/installing/installer-installing.test.ts | 2 +- .../src/installer/shared/layout/installer-layout.test.ts | 2 +- .../src/installer/user/installer-user.test.ts | 2 +- src/Umbraco.Web.UI.Client/src/upgrader/upgrader-view.test.ts | 2 +- src/Umbraco.Web.UI.Client/tsconfig.json | 1 + 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/devops/plop/templates/property-editor-ui/test.ts.hbs b/src/Umbraco.Web.UI.Client/devops/plop/templates/property-editor-ui/test.ts.hbs index 0a05a1b990..b93fab8b09 100644 --- a/src/Umbraco.Web.UI.Client/devops/plop/templates/property-editor-ui/test.ts.hbs +++ b/src/Umbraco.Web.UI.Client/devops/plop/templates/property-editor-ui/test.ts.hbs @@ -1,5 +1,5 @@ import { expect, fixture, html } from '@open-wc/testing'; -import { defaultA11yConfig } from '../../../core/helpers/chai'; +import { defaultA11yConfig } from '@umbraco-cms/test-utils'; import { {{ className extensionType name }} } from './{{ extensionFilename extensionType name }}.element'; describe('{{className extensionType name}}', () => { diff --git a/src/Umbraco.Web.UI.Client/src/auth/login/login.test.ts b/src/Umbraco.Web.UI.Client/src/auth/login/login.test.ts index 1c7911ed03..d937ffba1e 100644 --- a/src/Umbraco.Web.UI.Client/src/auth/login/login.test.ts +++ b/src/Umbraco.Web.UI.Client/src/auth/login/login.test.ts @@ -1,7 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; - -import { defaultA11yConfig } from '../../core/test-utils/chai'; import UmbLogin from './login.element'; +import { defaultA11yConfig } from '@umbraco-cms/test-utils'; describe('UmbLogin', () => { let element: UmbLogin; diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/dashboards/published-status/dashboard-published-status.test.ts b/src/Umbraco.Web.UI.Client/src/backoffice/dashboards/published-status/dashboard-published-status.test.ts index 4c4c17feb0..ed4c366109 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/dashboards/published-status/dashboard-published-status.test.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/dashboards/published-status/dashboard-published-status.test.ts @@ -1,7 +1,7 @@ import { expect, fixture, html } from '@open-wc/testing'; -import { defaultA11yConfig } from '../../../core/test-utils/chai'; import { UmbDashboardPublishedStatusElement } from './dashboard-published-status.element'; +import { defaultA11yConfig } from '@umbraco-cms/test-utils'; describe('UmbDashboardPublishedStatus', () => { let element: UmbDashboardPublishedStatusElement; diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/dashboards/settings-welcome/dashboard-settings-welcome.test.ts b/src/Umbraco.Web.UI.Client/src/backoffice/dashboards/settings-welcome/dashboard-settings-welcome.test.ts index ebc2c735ab..1ca8ac3378 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/dashboards/settings-welcome/dashboard-settings-welcome.test.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/dashboards/settings-welcome/dashboard-settings-welcome.test.ts @@ -1,7 +1,7 @@ import { expect, fixture, html } from '@open-wc/testing'; -import { defaultA11yConfig } from '../../../core/test-utils/chai'; import { UmbDashboardSettingsWelcomeElement } from './dashboard-settings-welcome.element'; +import { defaultA11yConfig } from '@umbraco-cms/test-utils'; describe('UmbDashboardSettingsWelcomeElement', () => { let element: UmbDashboardSettingsWelcomeElement; diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/dashboards/telemetry/dashboard-telemetry.test.ts b/src/Umbraco.Web.UI.Client/src/backoffice/dashboards/telemetry/dashboard-telemetry.test.ts index f7a3f1d560..72662348af 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/dashboards/telemetry/dashboard-telemetry.test.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/dashboards/telemetry/dashboard-telemetry.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; -import { defaultA11yConfig } from '../../../core/test-utils/chai'; import { UmbDashboardTelemetryElement } from './dashboard-telemetry.element'; +import { defaultA11yConfig } from '@umbraco-cms/test-utils'; describe('UmbDashboardTelemetryElement', () => { let element: UmbDashboardTelemetryElement; diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/property-editor-uis/block-list/property-editor-ui-block-list.test.ts b/src/Umbraco.Web.UI.Client/src/backoffice/property-editor-uis/block-list/property-editor-ui-block-list.test.ts index b1c9550692..ac39d3aefa 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/property-editor-uis/block-list/property-editor-ui-block-list.test.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/property-editor-uis/block-list/property-editor-ui-block-list.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; -import { defaultA11yConfig } from '../../../core/test-utils/chai'; import { UmbPropertyEditorUIBlockListElement } from './property-editor-ui-block-list.element'; +import { defaultA11yConfig } from '@umbraco-cms/test-utils'; describe('UmbPropertyEditorUIBlockListElement', () => { let element: UmbPropertyEditorUIBlockListElement; diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/property-editor-uis/checkbox-list/property-editor-ui-checkbox-list.test.ts b/src/Umbraco.Web.UI.Client/src/backoffice/property-editor-uis/checkbox-list/property-editor-ui-checkbox-list.test.ts index 4c49289bd0..629e446eb2 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/property-editor-uis/checkbox-list/property-editor-ui-checkbox-list.test.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/property-editor-uis/checkbox-list/property-editor-ui-checkbox-list.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; -import { defaultA11yConfig } from '../../../core/test-utils/chai'; import { UmbPropertyEditorUICheckboxListElement } from './property-editor-ui-checkbox-list.element'; +import { defaultA11yConfig } from '@umbraco-cms/test-utils'; describe('UmbPropertyEditorUICheckboxListElement', () => { let element: UmbPropertyEditorUICheckboxListElement; diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/property-editor-uis/icon-picker/property-editor-ui-icon-picker.test.ts b/src/Umbraco.Web.UI.Client/src/backoffice/property-editor-uis/icon-picker/property-editor-ui-icon-picker.test.ts index c577fe6ff4..fb580afdf9 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/property-editor-uis/icon-picker/property-editor-ui-icon-picker.test.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/property-editor-uis/icon-picker/property-editor-ui-icon-picker.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; -import { defaultA11yConfig } from '../../../core/test-utils/chai'; import { UmbPropertyEditorUIIconPickerElement } from './property-editor-ui-icon-picker.element'; +import { defaultA11yConfig } from '@umbraco-cms/test-utils'; describe('UmbPropertyEditorUIIconPickerElement', () => { let element: UmbPropertyEditorUIIconPickerElement; diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/property-editor-uis/toggle/property-editor-ui-toggle.test.ts b/src/Umbraco.Web.UI.Client/src/backoffice/property-editor-uis/toggle/property-editor-ui-toggle.test.ts index 60d23ab1a2..a46277d546 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/property-editor-uis/toggle/property-editor-ui-toggle.test.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/property-editor-uis/toggle/property-editor-ui-toggle.test.ts @@ -1,6 +1,6 @@ import { expect, fixture, html } from '@open-wc/testing'; -import { defaultA11yConfig } from '../../../core/test-utils/chai'; import { UmbPropertyEditorUIToggleElement } from './property-editor-ui-toggle.element'; +import { defaultA11yConfig } from '@umbraco-cms/test-utils'; describe('UmbPropertyEditorUIToggleElement', () => { let element: UmbPropertyEditorUIToggleElement; diff --git a/src/Umbraco.Web.UI.Client/src/installer/consent/installer-content.test.ts b/src/Umbraco.Web.UI.Client/src/installer/consent/installer-content.test.ts index e72d9f70d6..4dd22ce571 100644 --- a/src/Umbraco.Web.UI.Client/src/installer/consent/installer-content.test.ts +++ b/src/Umbraco.Web.UI.Client/src/installer/consent/installer-content.test.ts @@ -1,7 +1,7 @@ import { expect, fixture, html } from '@open-wc/testing'; -import { defaultA11yConfig } from '../../core/test-utils/chai'; import { UmbInstallerConsentElement } from './installer-consent.element'; +import { defaultA11yConfig } from '@umbraco-cms/test-utils'; // TODO: Write tests describe('UmbInstallerConsentElement', () => { diff --git a/src/Umbraco.Web.UI.Client/src/installer/database/installer-database.test.ts b/src/Umbraco.Web.UI.Client/src/installer/database/installer-database.test.ts index 8c2f5dc3bd..772e6ba8cb 100644 --- a/src/Umbraco.Web.UI.Client/src/installer/database/installer-database.test.ts +++ b/src/Umbraco.Web.UI.Client/src/installer/database/installer-database.test.ts @@ -1,7 +1,7 @@ import { expect, fixture, html } from '@open-wc/testing'; -import { defaultA11yConfig } from '../../core/test-utils/chai'; import { UmbInstallerDatabaseElement } from './installer-database.element'; +import { defaultA11yConfig } from '@umbraco-cms/test-utils'; // TODO: Write tests describe('UmbInstallerDatabaseElement', () => { diff --git a/src/Umbraco.Web.UI.Client/src/installer/error/installer-error.test.ts b/src/Umbraco.Web.UI.Client/src/installer/error/installer-error.test.ts index 787a5855b0..03d2e8ea2c 100644 --- a/src/Umbraco.Web.UI.Client/src/installer/error/installer-error.test.ts +++ b/src/Umbraco.Web.UI.Client/src/installer/error/installer-error.test.ts @@ -1,7 +1,7 @@ import { expect, fixture, html } from '@open-wc/testing'; -import { defaultA11yConfig } from '../../core/test-utils/chai'; import { UmbInstallerErrorElement } from './installer-error.element'; +import { defaultA11yConfig } from '@umbraco-cms/test-utils'; // TODO: Write tests describe('UmbInstallerErrorElement', () => { diff --git a/src/Umbraco.Web.UI.Client/src/installer/installer.test.ts b/src/Umbraco.Web.UI.Client/src/installer/installer.test.ts index 7a2a86fc69..8861e53e43 100644 --- a/src/Umbraco.Web.UI.Client/src/installer/installer.test.ts +++ b/src/Umbraco.Web.UI.Client/src/installer/installer.test.ts @@ -1,7 +1,7 @@ import { expect, fixture, html } from '@open-wc/testing'; -import { defaultA11yConfig } from '../core/test-utils/chai'; import { UmbInstallerElement } from './installer.element'; +import { defaultA11yConfig } from '@umbraco-cms/test-utils'; // TODO: Write tests describe('UmbInstallerElement', () => { diff --git a/src/Umbraco.Web.UI.Client/src/installer/installing/installer-installing.test.ts b/src/Umbraco.Web.UI.Client/src/installer/installing/installer-installing.test.ts index 9368826808..71768902d8 100644 --- a/src/Umbraco.Web.UI.Client/src/installer/installing/installer-installing.test.ts +++ b/src/Umbraco.Web.UI.Client/src/installer/installing/installer-installing.test.ts @@ -1,7 +1,7 @@ import { expect, fixture, html } from '@open-wc/testing'; -import { defaultA11yConfig } from '../../core/test-utils/chai'; import { UmbInstallerInstallingElement } from './installer-installing.element'; +import { defaultA11yConfig } from '@umbraco-cms/test-utils'; // TODO: Write tests describe('UmbInstallerInstallingElement', () => { diff --git a/src/Umbraco.Web.UI.Client/src/installer/shared/layout/installer-layout.test.ts b/src/Umbraco.Web.UI.Client/src/installer/shared/layout/installer-layout.test.ts index c03562570c..44a6f3b268 100644 --- a/src/Umbraco.Web.UI.Client/src/installer/shared/layout/installer-layout.test.ts +++ b/src/Umbraco.Web.UI.Client/src/installer/shared/layout/installer-layout.test.ts @@ -1,7 +1,7 @@ import { expect, fixture, html } from '@open-wc/testing'; -import { defaultA11yConfig } from '../../../core/test-utils/chai'; import { UmbInstallerLayoutElement } from './installer-layout.element'; +import { defaultA11yConfig } from '@umbraco-cms/test-utils'; // TODO: Write tests describe('UmbInstallerLayoutElement', () => { diff --git a/src/Umbraco.Web.UI.Client/src/installer/user/installer-user.test.ts b/src/Umbraco.Web.UI.Client/src/installer/user/installer-user.test.ts index 916676f927..e6599f9326 100644 --- a/src/Umbraco.Web.UI.Client/src/installer/user/installer-user.test.ts +++ b/src/Umbraco.Web.UI.Client/src/installer/user/installer-user.test.ts @@ -1,7 +1,7 @@ import { expect, fixture, html } from '@open-wc/testing'; -import { defaultA11yConfig } from '../../core/test-utils/chai'; import { UmbInstallerUserElement } from './installer-user.element'; +import { defaultA11yConfig } from '@umbraco-cms/test-utils'; // TODO: Write tests describe('UmbInstallerUserElement', () => { diff --git a/src/Umbraco.Web.UI.Client/src/upgrader/upgrader-view.test.ts b/src/Umbraco.Web.UI.Client/src/upgrader/upgrader-view.test.ts index d43850aaaf..1ad362d987 100644 --- a/src/Umbraco.Web.UI.Client/src/upgrader/upgrader-view.test.ts +++ b/src/Umbraco.Web.UI.Client/src/upgrader/upgrader-view.test.ts @@ -1,7 +1,7 @@ import { expect, fixture, html } from '@open-wc/testing'; -import { defaultA11yConfig } from '../core/test-utils/chai'; import { UmbUpgraderView } from './upgrader-view.element'; +import { defaultA11yConfig } from '@umbraco-cms/test-utils'; describe('UmbUpgraderView', () => { let element: UmbUpgraderView; diff --git a/src/Umbraco.Web.UI.Client/tsconfig.json b/src/Umbraco.Web.UI.Client/tsconfig.json index c961552417..30632b206d 100644 --- a/src/Umbraco.Web.UI.Client/tsconfig.json +++ b/src/Umbraco.Web.UI.Client/tsconfig.json @@ -30,6 +30,7 @@ "@umbraco-cms/extensions-api": ["src/core/extensions-api"], "@umbraco-cms/observable-api": ["src/core/observable-api"], "@umbraco-cms/utils": ["src/core/utils"], + "@umbraco-cms/test-utils": ["src/core/test-utils"], "@umbraco-cms/css/*": ["src/core/css/*"], }, },