Skip to content

Commit e66662c

Browse files
author
Sharma
committed
Fixed SB compilation errors when SBs don't exist
1 parent 6c60423 commit e66662c

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.storybook-sdk/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"emitDecoratorMetadata": false
88
},
99
"exclude": ["../src/test.ts", "../src/**/*.spec.ts"],
10-
"include": ["../src/**/*", "./preview.ts", "../__mocks__/*"],
10+
"include": ["../src/app/_components/custom-sdk/**/*", "./preview.ts", "../__mocks__/*"],
1111
"files": ["./typings.d.ts"]
1212
}

__mocks__/authManager.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
/* eslint-disable react/jsx-filename-extension */
2+
// @ts-nocheck
13
/** This file contains the Mocks for the various auth-manager APIs */
4+
25
export function getHomeUrl() {
36
/* nothing */
47
}

__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)