Skip to content

Commit

Permalink
chore: Enable schematics tests (#19177)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmch91 authored Aug 28, 2024
1 parent 540869b commit e968054
Show file tree
Hide file tree
Showing 49 changed files with 59 additions and 59 deletions.
2 changes: 1 addition & 1 deletion feature-libs/asm/schematics/add-asm/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { peerDependencies } from '../../package.json';
const collectionPath = path.join(__dirname, '../collection.json');
const scssFilePath = 'src/styles/spartacus/asm.scss';

xdescribe('Spartacus Asm schematics: ng-add', () => {
describe('Spartacus Asm schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_ASM,
collectionPath
Expand Down
2 changes: 1 addition & 1 deletion feature-libs/cart/schematics/add-cart/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { peerDependencies } from '../../package.json';
const collectionPath = path.join(__dirname, '../collection.json');
const scssFilePath = 'src/styles/spartacus/cart.scss';

xdescribe('Spartacus Cart schematics: ng-add', () => {
describe('Spartacus Cart schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_CART,
collectionPath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { peerDependencies } from '../../package.json';
const collectionPath = path.join(__dirname, '../collection.json');
const scssFilePath = 'src/styles/spartacus/checkout.scss';

xdescribe('Spartacus Checkout schematics: ng-add', () => {
describe('Spartacus Checkout schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_CHECKOUT,
collectionPath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { peerDependencies } from '../../package.json';
const collectionPath = path.join(__dirname, '../collection.json');
const scssFilePath = 'src/styles/spartacus/customer-ticketing.scss';

xdescribe('Spartacus Customer Ticketing schematics: ng-add', () => {
describe('Spartacus Customer Ticketing schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_CUSTOMER_TICKETING,
collectionPath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { peerDependencies } from '../../package.json';
const collectionPath = path.join(__dirname, '../collection.json');
const scssFilePath = 'src/styles/spartacus/estimated-delivery-date.scss';

xdescribe('Spartacus Estimated-Delivery-Date schematics: ng-add', () => {
describe('Spartacus Estimated-Delivery-Date schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_ESTIMATED_DELIVERY_DATE,
collectionPath
Expand Down
2 changes: 1 addition & 1 deletion feature-libs/order/schematics/add-order/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { peerDependencies } from '../../package.json';
const collectionPath = path.join(__dirname, '../collection.json');
const scssFilePath = 'src/styles/spartacus/order.scss';

xdescribe('Spartacus Order schematics: ng-add', () => {
describe('Spartacus Order schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_ORDER,
collectionPath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { peerDependencies } from '../../package.json';
const collectionPath = path.join(__dirname, '../collection.json');
const scssFilePath = 'src/styles/spartacus/organization.scss';

xdescribe('Spartacus Organization schematics: ng-add', () => {
describe('Spartacus Organization schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_ORGANIZATION,
collectionPath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { peerDependencies } from '../../package.json';
const collectionPath = path.join(__dirname, '../collection.json');
const scssFilePath = 'src/styles/spartacus/pdf-invoices.scss';

xdescribe('Spartacus PDF Invoices schematics: ng-add', () => {
describe('Spartacus PDF Invoices schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_PDF_INVOICES,
collectionPath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { peerDependencies } from '../../package.json';
const collectionPath = path.join(__dirname, '../collection.json');
const scssFilePath = 'src/styles/spartacus/pickup-in-store.scss';

xdescribe('Spartacus Pickup in Store schematics: ng-add', () => {
describe('Spartacus Pickup in Store schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_PICKUP_IN_STORE,
collectionPath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { peerDependencies } from '../../package.json';
const collectionPath = path.join(__dirname, '../collection.json');
const scssFilePath = 'src/styles/spartacus/product-configurator.scss';

xdescribe('Spartacus product configurator schematics: ng-add', () => {
describe('Spartacus product configurator schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_PRODUCT_CONFIGURATOR,
collectionPath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ import {
} from '@schematics/angular/application/schema';
import { Schema as WorkspaceOptions } from '@schematics/angular/workspace/schema';
import {
LibraryOptions as SpartacusProductOptions,
PRODUCT_MULTI_DIMENSIONAL_SELECTOR_FEATURE_NAME,
PRODUCT_MULTI_DIMENSIONAL_LIST_FEATURE_NAME,
productMultiDimensionalSelectorFeatureModulePath,
productMultiDimensionalListFeatureModulePath,
PRODUCT_MULTI_DIMENSIONAL_SELECTOR_FEATURE_NAME,
SPARTACUS_PRODUCT,
SPARTACUS_SCHEMATICS,
SpartacusOptions,
LibraryOptions as SpartacusProductOptions,
productMultiDimensionalListFeatureModulePath,
productMultiDimensionalSelectorFeatureModulePath,
} from '@spartacus/schematics';
import * as path from 'path';
import { peerDependencies } from '../../package.json';

const collectionPath = path.join(__dirname, '../collection.json');
const scssFilePath = 'src/styles/spartacus/product-multi-dimensional.scss';

xdescribe('Spartacus Product Multi-Dimensional schematics: ng-add', () => {
describe('Spartacus Product Multi-Dimensional schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_PRODUCT,
collectionPath
Expand Down
2 changes: 1 addition & 1 deletion feature-libs/product/schematics/add-product/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { peerDependencies } from '../../package.json';
const collectionPath = path.join(__dirname, '../collection.json');
const scssFilePath = 'src/styles/spartacus/product.scss';

xdescribe('Spartacus Product schematics: ng-add', () => {
describe('Spartacus Product schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_PRODUCT,
collectionPath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { peerDependencies } from '../../package.json';
const collectionPath = path.join(__dirname, '../collection.json');
const scssFilePath = 'src/styles/spartacus/qualtrics-embedded-feedback.scss';

xdescribe('Spartacus Qualtrics schematics: ng-add', () => {
describe('Spartacus Qualtrics schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_QUALTRICS,
collectionPath
Expand Down
2 changes: 1 addition & 1 deletion feature-libs/quote/schematics/add-quote/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { peerDependencies } from '../../package.json';
const collectionPath = path.join(__dirname, '../collection.json');
const scssFilePath = 'src/styles/spartacus/quote.scss';

xdescribe('Spartacus Quote schematics: ng-add', () => {
describe('Spartacus Quote schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_QUOTE,
collectionPath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { peerDependencies } from '../../package.json';
const collectionPath = path.join(__dirname, '../collection.json');
const scssFilePath = 'src/styles/spartacus/requested-delivery-date.scss';

xdescribe('Spartacus Requested Delivery Date schematics: ng-add', () => {
describe('Spartacus Requested Delivery Date schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_REQUESTED_DELIVERY_DATE,
collectionPath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { peerDependencies } from '../../package.json';

const collectionPath = path.join(__dirname, '../collection.json');

xdescribe('Spartacus SmartEdit schematics: ng-add', () => {
describe('Spartacus SmartEdit schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_SMARTEDIT,
collectionPath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { peerDependencies } from '../../package.json';
const collectionPath = path.join(__dirname, '../collection.json');
const scssFilePath = 'src/styles/spartacus/storefinder.scss';

xdescribe('Spartacus Storefinder schematics: ng-add', () => {
describe('Spartacus Storefinder schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_STOREFINDER,
collectionPath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { peerDependencies } from '../../package.json';

const collectionPath = path.join(__dirname, '../collection.json');

xdescribe('Spartacus Tracking schematics: ng-add', () => {
describe('Spartacus Tracking schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_TRACKING,
collectionPath
Expand Down
2 changes: 1 addition & 1 deletion feature-libs/user/schematics/add-user/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { peerDependencies } from '../../package.json';
const collectionPath = path.join(__dirname, '../collection.json');
const scssFilePath = 'src/styles/spartacus/user.scss';

xdescribe('Spartacus User schematics: ng-add', () => {
describe('Spartacus User schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_USER,
collectionPath
Expand Down
2 changes: 1 addition & 1 deletion integration-libs/cdc/schematics/add-cdc/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
import * as path from 'path';
import { peerDependencies } from '../../package.json';
const collectionPath = path.join(__dirname, '../collection.json');
xdescribe('Spartacus CDC schematics: ng-add', () => {
describe('Spartacus CDC schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_CDC,
collectionPath
Expand Down
2 changes: 1 addition & 1 deletion integration-libs/cdp/schematics/add-cdp/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import * as path from 'path';

const collectionPath = path.join(__dirname, '../collection.json');

xdescribe('Spartacus CDP schematics: ng-add', () => {
describe('Spartacus CDP schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_CDP,
collectionPath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { peerDependencies } from '../../package.json';
const collectionPath = path.join(__dirname, '../collection.json');
const featureModulePath =
'src/app/spartacus/features/cpq-quote/cpq-quote-feature.module.ts';
xdescribe('Spartacus Cpq-quote', () => {
describe('Spartacus Cpq-quote', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_CPQ_QUOTE,
collectionPath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { peerDependencies } from '../../package.json';

const collectionPath = path.join(__dirname, '../collection.json');

xdescribe('Spartacus Digital-Payments schematics: ng-add', () => {
describe('Spartacus Digital-Payments schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_DIGITAL_PAYMENTS,
collectionPath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { peerDependencies } from '../../package.json';
const collectionPath = path.join(__dirname, '../collection.json');
const scssFilePath = 'src/styles/spartacus/epd-visualization.scss';

xdescribe('Spartacus SAP EPD Visualization integration schematics: ng-add', () => {
describe('Spartacus SAP EPD Visualization integration schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_EPD_VISUALIZATION,
collectionPath
Expand Down
12 changes: 6 additions & 6 deletions integration-libs/omf/schematics/add-omf/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ import {
import { Schema as WorkspaceOptions } from '@schematics/angular/workspace/schema';
import {
OMF_FEATURE_NAME,
SPARTACUS_SCHEMATICS,
SPARTACUS_OMF,
ORDER_FEATURE_NAME,
LibraryOptions as OmfOptions,
SPARTACUS_OMF,
SPARTACUS_ORDER,
SPARTACUS_SCHEMATICS,
SpartacusOptions,
omfFeatureModulePath,
ORDER_FEATURE_NAME,
orderWrapperModulePath,
SPARTACUS_ORDER,
orderFeatureModulePath,
orderWrapperModulePath,
} from '@spartacus/schematics';
import * as path from 'path';
import { peerDependencies } from '../../package.json';

const collectionPath = path.join(__dirname, '../collection.json');

xdescribe('Spartacus OMF Schematics: ng-add', () => {
describe('Spartacus OMF Schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_OMF,
collectionPath
Expand Down
2 changes: 1 addition & 1 deletion integration-libs/opps/schematics/add-opps/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { peerDependencies } from '../../package.json';

const collectionPath = path.join(__dirname, '../collection.json');

xdescribe('Spartacus Opps Schematics: ng-add', () => {
describe('Spartacus Opps Schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_OPPS,
collectionPath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { peerDependencies } from '../../package.json';

const collectionPath = path.join(__dirname, '../collection.json');

xdescribe('Spartacus S/4HANA Service Integration (S4-Service) Schematics: ng-add', () => {
describe('Spartacus S/4HANA Service Integration (S4-Service) Schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_S4_SERVICE,
collectionPath
Expand Down
2 changes: 1 addition & 1 deletion integration-libs/s4om/schematics/add-s4om/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const collectionPath = path.join(__dirname, '../collection.json');
const featureModulePath =
'src/app/spartacus/features/s4om/s4om-feature.module.ts';

xdescribe('Spartacus S4OM schematics: ng-add', () => {
describe('Spartacus S4OM schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner('schematics', collectionPath);

let appTree: UnitTestTree;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { peerDependencies } from '../../package.json';

const collectionPath = path.join(__dirname, '../collection.json');

xdescribe('Spartacus segment-refs schematics: ng-add', () => {
describe('Spartacus segment-refs schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_SEGMENT_REFS,
collectionPath
Expand Down
2 changes: 1 addition & 1 deletion projects/schematics/src/add-cms-component/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function assertContentDoesNotExist(
}
}

xdescribe('add-cms-component', () => {
describe('add-cms-component', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_SCHEMATICS,
collectionPath
Expand Down
2 changes: 1 addition & 1 deletion projects/schematics/src/add-spartacus/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const defaultOptions: SpartacusOptions = {

const newLineRegEx = /(?:\\[rn]|[\r\n]+)+/g;

xdescribe('add-spartacus', () => {
describe('add-spartacus', () => {
beforeEach(async () => {
appTree = await schematicRunner.runExternalSchematic(
'@schematics/angular',
Expand Down
2 changes: 1 addition & 1 deletion projects/schematics/src/add-ssr/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { getPathResultsForFile } from '../shared/utils/file-utils';

const collectionPath = path.join(__dirname, '../collection.json');

xdescribe('add-ssr', () => {
describe('add-ssr', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_SCHEMATICS,
collectionPath
Expand Down
2 changes: 1 addition & 1 deletion projects/schematics/src/ng-add/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { getPathResultsForFile } from '../shared/utils/file-utils';

const collectionPath = path.join(__dirname, '../collection.json');

xdescribe('Spartacus Schematics: ng-add', () => {
describe('Spartacus Schematics: ng-add', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_SCHEMATICS,
collectionPath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import {
getSchematicsConfigByFeatureOrThrow,
} from './schematics-config-mappings';

xdescribe('schematics-config-mappings', () => {
describe('schematics-config-mappings', () => {
describe('libraryFeatureMapping', () => {
it('should generate a correct mapping', () => {
const result = generateMappings().libraryFeatureMapping;
Expand Down
2 changes: 1 addition & 1 deletion projects/schematics/src/shared/utils/config-utils_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from './config-utils';
import { getModulePropertyInitializer } from './new-module-utils';

xdescribe('Storefront config utils', () => {
describe('Storefront config utils', () => {
let project: Project;
let sourceFile: SourceFile;
beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import {
collectCrossSpartacusPeerDeps,
} from './dependency-utils';

xdescribe('dependency-util', () => {
describe('dependency-util', () => {
describe('analyzeCrossFeatureDependencies', () => {
it('DP - should return the correct set of ordered sub-features', () => {
const result = analyzeCrossFeatureDependencies([
Expand Down
2 changes: 1 addition & 1 deletion projects/schematics/src/shared/utils/feature-utils_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import {
userFeatureModulePath,
} from './test-utils';

xdescribe('Feature utils', () => {
describe('Feature utils', () => {
const schematicRunner = new SchematicTestRunner(
SPARTACUS_SCHEMATICS,
path.join(__dirname, '../../collection.json')
Expand Down
2 changes: 1 addition & 1 deletion projects/schematics/src/shared/utils/file-utils_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ const schematicRunner = new SchematicTestRunner(
collectionPath
);

xdescribe('File utils', () => {
describe('File utils', () => {
let appTree: UnitTestTree;
const workspaceOptions: WorkspaceOptions = {
name: 'workspace',
Expand Down
Loading

0 comments on commit e968054

Please sign in to comment.