Skip to content

Commit 151cc2c

Browse files
authored
Merge branch 'main' into mod/tor/removeUnnecessaryPackages
2 parents 333f87d + 12f35ea commit 151cc2c

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

.storybook-sdk/main.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ import path from 'path';
33

44
const config: StorybookConfig = {
55
stories: ['../src/**/*.mdx', '../src/app/_components/custom-sdk/**/*.stories.@(js|jsx|ts|tsx)'],
6-
addons: ['@storybook/addon-links', '@storybook/addon-essentials', '@storybook/addon-interactions', '@chromatic-com/storybook'],
6+
addons: [
7+
'@storybook/addon-links',
8+
'@storybook/addon-essentials',
9+
'@storybook/addon-interactions',
10+
'@chromatic-com/storybook',
11+
'@storybook/addon-a11y'
12+
],
713
framework: {
814
name: '@storybook/angular',
915
options: {}
@@ -13,7 +19,7 @@ const config: StorybookConfig = {
1319
},
1420
webpackFinal: async config => {
1521
if (config.resolve?.alias) {
16-
config.resolve.alias['@pega/auth/lib/sdk-auth-manager'] = path.resolve(__dirname, '../__mocks__/authManager.tsx');
22+
config.resolve.alias['@pega/auth/lib/sdk-auth-manager'] = path.resolve(__dirname, '../__mocks__/authManager.ts');
1723
}
1824

1925
return config;

.storybook-sdk/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"resolveJsonModule": true,
77
"emitDecoratorMetadata": false
88
},
9-
"exclude": ["../src/test.ts", "../src/**/*.spec.ts"],
10-
"include": ["../src/**/*", "./preview.ts", "../__mocks__/*"],
9+
"include": ["../src/**/*.d.ts", "../src/app/_components/custom-sdk/**/*", "./preview.ts", "../__mocks__/*"],
10+
"exclude": ["../src/test.ts", "../src/**/*.spec.ts", "../src/app/_samples/**/*"],
1111
"files": ["./typings.d.ts"]
1212
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
// @ts-nocheck
12
/** This file contains the Mocks for the various auth-manager APIs */
3+
24
export function getHomeUrl() {
35
/* nothing */
46
}

__mocks__/pcoreMocks.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// @ts-nocheck
2+
/** This file contains the Mocks for the various pcore APIs */
13
export default function setPCoreMocks() {
24
if (!window.PCore) {
35
window.PCore = {} as any;

0 commit comments

Comments
 (0)