Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nirgur committed Dec 16, 2024
1 parent 316a145 commit f4c845c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/sdks/web-component/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export default [
dir: 'dist/cjs',
format: 'cjs',
preserveModules: true,
exports: 'named',
},
],
plugins: [
Expand Down
4 changes: 4 additions & 0 deletions packages/sdks/web-component/src/lib/descope-wc/DescopeWc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ class DescopeWc extends BaseDescopeWc {
BaseDescopeWc.sdkConfigOverrides = config;
}

static get sdkConfigOverrides() {
return BaseDescopeWc.sdkConfigOverrides;
}

flowState: State<FlowState>;

stepState = new State<StepState>({} as StepState, {
Expand Down
6 changes: 6 additions & 0 deletions packages/sdks/web-component/test/debugger.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ Object.defineProperty(window.history, 'replaceState', {
},
});

(<any>globalThis).process = {
env: {
NODE_ENV: 'development',
},
};

describe('debugger', () => {
beforeEach(() => {
jest.useFakeTimers();
Expand Down
12 changes: 10 additions & 2 deletions pnpm-lock.yaml

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

0 comments on commit f4c845c

Please sign in to comment.