rename folders
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { rest } from 'msw';
|
import { rest } from 'msw';
|
||||||
|
|
||||||
import umbracoPath from '../src/core/helpers/umbraco-path';
|
import umbracoPath from '../src/core/utils/umbraco-path';
|
||||||
import { expect, test } from '../test';
|
import { expect, test } from '../test';
|
||||||
import type { ProblemDetails, StatusResponse } from '@umbraco-cms/models';
|
import type { ProblemDetails, StatusResponse } from '@umbraco-cms/models';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { rest } from 'msw';
|
import { rest } from 'msw';
|
||||||
import umbracoPath from '../src/core/helpers/umbraco-path';
|
import umbracoPath from '../src/core/utils/umbraco-path';
|
||||||
import { expect, test } from '../test';
|
import { expect, test } from '../test';
|
||||||
import type { ProblemDetails, StatusResponse } from '@umbraco-cms/models';
|
import type { ProblemDetails, StatusResponse } from '@umbraco-cms/models';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { expect, fixture, html } from '@open-wc/testing';
|
import { expect, fixture, html } from '@open-wc/testing';
|
||||||
|
|
||||||
import { defaultA11yConfig } from '../../core/helpers/chai';
|
import { defaultA11yConfig } from '../../core/test-utils/chai';
|
||||||
import UmbLogin from './login.element';
|
import UmbLogin from './login.element';
|
||||||
|
|
||||||
describe('UmbLogin', () => {
|
describe('UmbLogin', () => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { expect, fixture, html } from '@open-wc/testing';
|
import { expect, fixture, html } from '@open-wc/testing';
|
||||||
|
|
||||||
import { defaultA11yConfig } from '../../../core/helpers/chai';
|
import { defaultA11yConfig } from '../../../core/test-utils/chai';
|
||||||
import { UmbDashboardPublishedStatusElement } from './dashboard-published-status.element';
|
import { UmbDashboardPublishedStatusElement } from './dashboard-published-status.element';
|
||||||
|
|
||||||
describe('UmbDashboardPublishedStatus', () => {
|
describe('UmbDashboardPublishedStatus', () => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { expect, fixture, html } from '@open-wc/testing';
|
import { expect, fixture, html } from '@open-wc/testing';
|
||||||
|
|
||||||
import { defaultA11yConfig } from '../../../core/helpers/chai';
|
import { defaultA11yConfig } from '../../../core/test-utils/chai';
|
||||||
import { UmbDashboardSettingsWelcomeElement } from './dashboard-settings-welcome.element';
|
import { UmbDashboardSettingsWelcomeElement } from './dashboard-settings-welcome.element';
|
||||||
|
|
||||||
describe('UmbDashboardSettingsWelcomeElement', () => {
|
describe('UmbDashboardSettingsWelcomeElement', () => {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { expect, fixture, html } from '@open-wc/testing';
|
import { expect, fixture, html } from '@open-wc/testing';
|
||||||
import { defaultA11yConfig } from '../../../core/helpers/chai';
|
import { defaultA11yConfig } from '../../../core/test-utils/chai';
|
||||||
import { UmbDashboardTelemetryElement } from './dashboard-telemetry.element';
|
import { UmbDashboardTelemetryElement } from './dashboard-telemetry.element';
|
||||||
|
|
||||||
describe('UmbDashboardTelemetryElement', () => {
|
describe('UmbDashboardTelemetryElement', () => {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { expect, fixture, html } from '@open-wc/testing';
|
import { expect, fixture, html } from '@open-wc/testing';
|
||||||
import { defaultA11yConfig } from '../../../core/helpers/chai';
|
import { defaultA11yConfig } from '../../../core/test-utils/chai';
|
||||||
import { UmbPropertyEditorUIBlockListElement } from './property-editor-ui-block-list.element';
|
import { UmbPropertyEditorUIBlockListElement } from './property-editor-ui-block-list.element';
|
||||||
|
|
||||||
describe('UmbPropertyEditorUIBlockListElement', () => {
|
describe('UmbPropertyEditorUIBlockListElement', () => {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { expect, fixture, html } from '@open-wc/testing';
|
import { expect, fixture, html } from '@open-wc/testing';
|
||||||
import { defaultA11yConfig } from '../../../core/helpers/chai';
|
import { defaultA11yConfig } from '../../../core/test-utils/chai';
|
||||||
import { UmbPropertyEditorUICheckboxListElement } from './property-editor-ui-checkbox-list.element';
|
import { UmbPropertyEditorUICheckboxListElement } from './property-editor-ui-checkbox-list.element';
|
||||||
|
|
||||||
describe('UmbPropertyEditorUICheckboxListElement', () => {
|
describe('UmbPropertyEditorUICheckboxListElement', () => {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { expect, fixture, html } from '@open-wc/testing';
|
import { expect, fixture, html } from '@open-wc/testing';
|
||||||
import { defaultA11yConfig } from '../../../core/helpers/chai';
|
import { defaultA11yConfig } from '../../../core/test-utils/chai';
|
||||||
import { UmbPropertyEditorUIIconPickerElement } from './property-editor-ui-icon-picker.element';
|
import { UmbPropertyEditorUIIconPickerElement } from './property-editor-ui-icon-picker.element';
|
||||||
|
|
||||||
describe('UmbPropertyEditorUIIconPickerElement', () => {
|
describe('UmbPropertyEditorUIIconPickerElement', () => {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { expect, fixture, html } from '@open-wc/testing';
|
import { expect, fixture, html } from '@open-wc/testing';
|
||||||
import { defaultA11yConfig } from '../../../core/helpers/chai';
|
import { defaultA11yConfig } from '../../../core/test-utils/chai';
|
||||||
import { UmbPropertyEditorUIToggleElement } from './property-editor-ui-toggle.element';
|
import { UmbPropertyEditorUIToggleElement } from './property-editor-ui-toggle.element';
|
||||||
|
|
||||||
describe('UmbPropertyEditorUIToggleElement', () => {
|
describe('UmbPropertyEditorUIToggleElement', () => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { rest } from 'msw';
|
import { rest } from 'msw';
|
||||||
|
|
||||||
import umbracoPath from '../../helpers/umbraco-path';
|
import umbracoPath from '../../utils/umbraco-path';
|
||||||
import type {
|
import type {
|
||||||
PostInstallRequest,
|
PostInstallRequest,
|
||||||
ProblemDetails,
|
ProblemDetails,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { rest } from 'msw';
|
import { rest } from 'msw';
|
||||||
|
|
||||||
import umbracoPath from '../../helpers/umbraco-path';
|
import umbracoPath from '../../utils/umbraco-path';
|
||||||
|
|
||||||
import type { ManifestsPackagesInstalledResponse, ManifestsResponse } from '@umbraco-cms/models';
|
import type { ManifestsPackagesInstalledResponse, ManifestsResponse } from '@umbraco-cms/models';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { rest } from 'msw';
|
import { rest } from 'msw';
|
||||||
import umbracoPath from '../../helpers/umbraco-path';
|
import umbracoPath from '../../utils/umbraco-path';
|
||||||
import { umbPropertyEditorData } from '../data/property-editor.data';
|
import { umbPropertyEditorData } from '../data/property-editor.data';
|
||||||
import type {
|
import type {
|
||||||
PropertyEditorsListResponse,
|
PropertyEditorsListResponse,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { rest } from 'msw';
|
import { rest } from 'msw';
|
||||||
|
|
||||||
import umbracoPath from '../../helpers/umbraco-path';
|
import umbracoPath from '../../utils/umbraco-path';
|
||||||
|
|
||||||
export const handlers = [
|
export const handlers = [
|
||||||
rest.get(umbracoPath('/published-cache/status'), (_req, res, ctx) => {
|
rest.get(umbracoPath('/published-cache/status'), (_req, res, ctx) => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { rest } from 'msw';
|
import { rest } from 'msw';
|
||||||
|
|
||||||
import umbracoPath from '../../helpers/umbraco-path';
|
import umbracoPath from '../../utils/umbraco-path';
|
||||||
import type { StatusResponse, VersionResponse } from '@umbraco-cms/models';
|
import type { StatusResponse, VersionResponse } from '@umbraco-cms/models';
|
||||||
|
|
||||||
export const serverRunningHandler = rest.get(umbracoPath('/server/status'), (_req, res, ctx) => {
|
export const serverRunningHandler = rest.get(umbracoPath('/server/status'), (_req, res, ctx) => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { rest } from 'msw';
|
import { rest } from 'msw';
|
||||||
|
|
||||||
import umbracoPath from '../../helpers/umbraco-path';
|
import umbracoPath from '../../utils/umbraco-path';
|
||||||
import type { ConsentLevelSettings, TelemetryModel } from '@umbraco-cms/models';
|
import type { ConsentLevelSettings, TelemetryModel } from '@umbraco-cms/models';
|
||||||
|
|
||||||
let telemetryLevel: TelemetryModel['level'] = 'Basic';
|
let telemetryLevel: TelemetryModel['level'] = 'Basic';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { rest } from 'msw';
|
import { rest } from 'msw';
|
||||||
|
|
||||||
import umbracoPath from '../../helpers/umbraco-path';
|
import umbracoPath from '../../utils/umbraco-path';
|
||||||
import type { PostInstallRequest, UmbracoUpgrader } from '@umbraco-cms/models';
|
import type { PostInstallRequest, UmbracoUpgrader } from '@umbraco-cms/models';
|
||||||
|
|
||||||
export const handlers = [
|
export const handlers = [
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { rest } from 'msw';
|
import { rest } from 'msw';
|
||||||
|
|
||||||
import umbracoPath from '../../helpers/umbraco-path';
|
import umbracoPath from '../../utils/umbraco-path';
|
||||||
import type { AllowedSectionsResponse, UserResponse } from '@umbraco-cms/models';
|
import type { AllowedSectionsResponse, UserResponse } from '@umbraco-cms/models';
|
||||||
|
|
||||||
let isAuthenticated = false;
|
let isAuthenticated = false;
|
||||||
|
|||||||
1
src/Umbraco.Web.UI.Client/src/core/test-utils/index.ts
Normal file
1
src/Umbraco.Web.UI.Client/src/core/test-utils/index.ts
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export * from './chai';
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import { expect, fixture, html } from '@open-wc/testing';
|
import { expect, fixture, html } from '@open-wc/testing';
|
||||||
|
|
||||||
import { defaultA11yConfig } from '../../core/helpers/chai';
|
import { defaultA11yConfig } from '../../core/test-utils/chai';
|
||||||
import { UmbInstallerConsentElement } from './installer-consent.element';
|
import { UmbInstallerConsentElement } from './installer-consent.element';
|
||||||
|
|
||||||
// TODO: Write tests
|
// TODO: Write tests
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { expect, fixture, html } from '@open-wc/testing';
|
import { expect, fixture, html } from '@open-wc/testing';
|
||||||
|
|
||||||
import { defaultA11yConfig } from '../../core/helpers/chai';
|
import { defaultA11yConfig } from '../../core/test-utils/chai';
|
||||||
import { UmbInstallerDatabaseElement } from './installer-database.element';
|
import { UmbInstallerDatabaseElement } from './installer-database.element';
|
||||||
|
|
||||||
// TODO: Write tests
|
// TODO: Write tests
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { expect, fixture, html } from '@open-wc/testing';
|
import { expect, fixture, html } from '@open-wc/testing';
|
||||||
|
|
||||||
import { defaultA11yConfig } from '../../core/helpers/chai';
|
import { defaultA11yConfig } from '../../core/test-utils/chai';
|
||||||
import { UmbInstallerErrorElement } from './installer-error.element';
|
import { UmbInstallerErrorElement } from './installer-error.element';
|
||||||
|
|
||||||
// TODO: Write tests
|
// TODO: Write tests
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { expect, fixture, html } from '@open-wc/testing';
|
import { expect, fixture, html } from '@open-wc/testing';
|
||||||
|
|
||||||
import { defaultA11yConfig } from '../core/helpers/chai';
|
import { defaultA11yConfig } from '../core/test-utils/chai';
|
||||||
import { UmbInstallerElement } from './installer.element';
|
import { UmbInstallerElement } from './installer.element';
|
||||||
|
|
||||||
// TODO: Write tests
|
// TODO: Write tests
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { expect, fixture, html } from '@open-wc/testing';
|
import { expect, fixture, html } from '@open-wc/testing';
|
||||||
|
|
||||||
import { defaultA11yConfig } from '../../core/helpers/chai';
|
import { defaultA11yConfig } from '../../core/test-utils/chai';
|
||||||
import { UmbInstallerInstallingElement } from './installer-installing.element';
|
import { UmbInstallerInstallingElement } from './installer-installing.element';
|
||||||
|
|
||||||
// TODO: Write tests
|
// TODO: Write tests
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { expect, fixture, html } from '@open-wc/testing';
|
import { expect, fixture, html } from '@open-wc/testing';
|
||||||
|
|
||||||
import { defaultA11yConfig } from '../../../core/helpers/chai';
|
import { defaultA11yConfig } from '../../../core/test-utils/chai';
|
||||||
import { UmbInstallerLayoutElement } from './installer-layout.element';
|
import { UmbInstallerLayoutElement } from './installer-layout.element';
|
||||||
|
|
||||||
// TODO: Write tests
|
// TODO: Write tests
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { expect, fixture, html } from '@open-wc/testing';
|
import { expect, fixture, html } from '@open-wc/testing';
|
||||||
|
|
||||||
import { defaultA11yConfig } from '../../core/helpers/chai';
|
import { defaultA11yConfig } from '../../core/test-utils/chai';
|
||||||
import { UmbInstallerUserElement } from './installer-user.element';
|
import { UmbInstallerUserElement } from './installer-user.element';
|
||||||
|
|
||||||
// TODO: Write tests
|
// TODO: Write tests
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { expect, fixture, html } from '@open-wc/testing';
|
import { expect, fixture, html } from '@open-wc/testing';
|
||||||
|
|
||||||
import { defaultA11yConfig } from '../core/helpers/chai';
|
import { defaultA11yConfig } from '../core/test-utils/chai';
|
||||||
import { UmbUpgraderView } from './upgrader-view.element';
|
import { UmbUpgraderView } from './upgrader-view.element';
|
||||||
|
|
||||||
describe('UmbUpgraderView', () => {
|
describe('UmbUpgraderView', () => {
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
"@umbraco-cms/context-api": ["src/core/context-api"],
|
"@umbraco-cms/context-api": ["src/core/context-api"],
|
||||||
"@umbraco-cms/extensions-api": ["src/core/extensions-api"],
|
"@umbraco-cms/extensions-api": ["src/core/extensions-api"],
|
||||||
"@umbraco-cms/observable-api": ["src/core/observable-api"],
|
"@umbraco-cms/observable-api": ["src/core/observable-api"],
|
||||||
"@umbraco-cms/utils": ["src/core/helpers"],
|
"@umbraco-cms/utils": ["src/core/utils"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
|
|||||||
Reference in New Issue
Block a user