Skip to content

Commit

Permalink
Merge branch 'develop-6.4.x' into epic/opf
Browse files Browse the repository at this point in the history
  • Loading branch information
Matejk00 authored Aug 1, 2023
2 parents 757f61d + 155e04f commit 89a7b88
Show file tree
Hide file tree
Showing 574 changed files with 17,517 additions and 2,928 deletions.
4 changes: 4 additions & 0 deletions .env-cmdrc
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
"CX_B2B": "true",
"CX_CPQ": "true"
},
"segment-refs": {
"CX_BASE_URL": "https://api.cg79x9wuu9-eccommerc1-p7-public.model-t.myhybris.cloud",
"CX_SEGMENT_REFS": "true"
},
"b2c": {
"CX_B2B": "false",
"CX_CDS": "false"
Expand Down
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@
}
]
}
]
],
"no-console": "error"
}
},
{
Expand Down
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@
# ================================================
/feature-libs/asm/ @SAP/spartacus-codeowners @SAP/spartacus-holidays

# ================================================
# User domain
# ================================================
/feature-libs/user/ @SAP/spartacus-codeowners @SAP/spartacus-holidays

# ================================================
# Product Configurator and CPQ integration
# ================================================
Expand Down
85 changes: 12 additions & 73 deletions .github/api-extractor-action/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 15 additions & 41 deletions .github/cache-builded-libs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ scripts/install/config.sh
*.launch
.settings/
*.sublime-workspace
*.swp

# IDE - VSCode
.vscode/settings.json
Expand Down
10 changes: 5 additions & 5 deletions core-libs/setup/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spartacus/setup",
"version": "5.0.0",
"version": "6.3.0-1",
"description": "Includes features that makes Spartacus and it's setup easier and streamlined.",
"keywords": [
"spartacus",
Expand All @@ -20,10 +20,10 @@
},
"peerDependencies": {
"@angular/core": "^15.2.4",
"@spartacus/cart": "5.0.0",
"@spartacus/core": "5.0.0",
"@spartacus/order": "5.0.0",
"@spartacus/user": "5.0.0"
"@spartacus/cart": "6.3.0-1",
"@spartacus/core": "6.3.0-1",
"@spartacus/order": "6.3.0-1",
"@spartacus/user": "6.3.0-1"
},
"optionalDependencies": {
"@angular/platform-server": "^15.2.4",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
import { NgSetupOptions, RenderOptions } from '@nguniversal/express-engine';
import { SERVER_REQUEST_URL } from '@spartacus/core';
import { EXPRESS_SERVER_LOGGER, LegacyExpressServerLogger } from '../logger';
import {
decorateExpressEngine,
NgExpressEngine,
NgExpressEngineDecorator,
NgExpressEngineInstance,
decorateExpressEngine,
} from './ng-express-engine-decorator';

jest.mock('fs', () => ({
readFileSync: () => '',
}));

jest.spyOn(console, 'log').mockImplementation(() => {});

describe('NgExpressEngineDecorator', () => {
describe('get', () => {
let originalEngine: NgExpressEngine;
Expand Down Expand Up @@ -100,9 +103,10 @@ describe('decorateExpressEngine', () => {
get: jest.fn(() => 'site.com'),
app,
connection: {},
},
res: <Partial<Response>>{
set: jest.fn(() => {}),
res: <Partial<Response>>{
set: jest.fn(() => {}),
locals: {},
},
},
} as any;

Expand Down Expand Up @@ -184,7 +188,15 @@ describe('decorateExpressEngine', () => {
it(`should pass parameters to the original engine instance`, () => {
expect(originalEngineInstance).toHaveBeenCalledWith(
mockPath,
mockOptions,
{
...mockOptions,
providers: [
{
provide: EXPRESS_SERVER_LOGGER,
useValue: new LegacyExpressServerLogger(),
},
],
},
expect.any(Function)
);
});
Expand Down Expand Up @@ -252,7 +264,15 @@ describe('decorateExpressEngine', () => {
it(`should pass parameters to the original engine instance`, () => {
expect(originalEngineInstance).toHaveBeenCalledWith(
mockPath,
mockOptions,
{
...mockOptions,
providers: [
{
provide: EXPRESS_SERVER_LOGGER,
useValue: new LegacyExpressServerLogger(),
},
],
},
expect.any(Function)
);
});
Expand Down
8 changes: 8 additions & 0 deletions core-libs/setup/ssr/logger/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* SPDX-FileCopyrightText: 2023 SAP Spartacus team <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

export * from './loggers/index';
export * from './services/index';
Loading

0 comments on commit 89a7b88

Please sign in to comment.