Skip to content

Commit

Permalink
Use @stripe/connect-js/pure (#9674)
Browse files Browse the repository at this point in the history
  • Loading branch information
ismaeldcom authored Nov 5, 2024
1 parent 67f24e6 commit d741c61
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions changelog/fix-stripe-connect-breaks-underscore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fix
Comment: Change the way we load an external lib to avoid issues with underscore.


2 changes: 1 addition & 1 deletion client/onboarding/steps/embedded-kyc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React, { useCallback, useEffect, useState } from 'react';
import {
loadConnectAndInitialize,
StripeConnectInstance,
} from '@stripe/connect-js';
} from '@stripe/connect-js/pure';
import {
ConnectAccountOnboarding,
ConnectComponentsProvider,
Expand Down
4 changes: 2 additions & 2 deletions client/onboarding/steps/test/embedded-onboarding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
import React from 'react';
import { render, screen, waitFor } from '@testing-library/react';
import apiFetch from '@wordpress/api-fetch';
import { loadConnectAndInitialize } from '@stripe/connect-js';
import { loadConnectAndInitialize } from '@stripe/connect-js/pure';

/**
* Internal dependencies
*/
import EmbeddedKyc from '../embedded-kyc';

jest.mock( '@wordpress/api-fetch' );
jest.mock( '@stripe/connect-js', () => ( {
jest.mock( '@stripe/connect-js/pure', () => ( {
loadConnectAndInitialize: jest.fn(),
} ) );

Expand Down

0 comments on commit d741c61

Please sign in to comment.