Skip to content

Commit

Permalink
chore: upgrade package to 0.35.6 (#48)
Browse files Browse the repository at this point in the history
Co-authored-by: Alissa Crane <alissa.crane@coinbase.com>
  • Loading branch information
abcrane123 and alissacrane-cb authored Nov 21, 2024
1 parent c60866a commit dcde7b7
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 7 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test:coverage": "vitest run --coverage"
},
"dependencies": {
"@coinbase/onchainkit": "^0.33.6",
"@coinbase/onchainkit": "^0.35.6",
"next": "^14.2.5",
"permissionless": "^0.1.26",
"react": "^18",
Expand Down
4 changes: 2 additions & 2 deletions src/app/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,5 @@ a {
}

.templateSection > div {
max-width: 100%;;
}
max-width: 100%;
}
18 changes: 17 additions & 1 deletion src/components/LoginButton.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { render, screen } from '@testing-library/react';
import { describe, expect, it } from 'vitest';
import { beforeAll, describe, expect, it } from 'vitest';
import { http, WagmiProvider, createConfig } from 'wagmi';
import { base } from 'wagmi/chains';
import { mock } from 'wagmi/connectors';
Expand Down Expand Up @@ -35,6 +35,22 @@ const renderWithProviders = (component: JSX.Element) => {
};

describe('LoginButton', () => {
beforeAll(() => {
Object.defineProperty(window, 'matchMedia', {
writable: true,
value: (query: string) => ({
matches: false,
media: query,
onchange: null,
addListener: () => {}, // Deprecated
removeListener: () => {}, // Deprecated
addEventListener: () => {},
removeEventListener: () => {},
dispatchEvent: () => false,
}),
});
});

it('should render', () => {
renderWithProviders(<LoginButton />);
const walletWrapper = screen.getByTestId('ockConnectWallet_Container');
Expand Down
17 changes: 16 additions & 1 deletion src/components/SignupButton.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { render, screen } from '@testing-library/react';
import { describe, expect, it } from 'vitest';
import { beforeAll, describe, expect, it } from 'vitest';
import { http, WagmiProvider, createConfig } from 'wagmi';
import { base } from 'wagmi/chains';
import { mock } from 'wagmi/connectors';
Expand Down Expand Up @@ -35,6 +35,21 @@ const renderWithProviders = (component: JSX.Element) => {
};

describe('SignupButton', () => {
beforeAll(() => {
Object.defineProperty(window, 'matchMedia', {
writable: true,
value: (query: string) => ({
matches: false,
media: query,
onchange: null,
addListener: () => {}, // Deprecated
removeListener: () => {}, // Deprecated
addEventListener: () => {},
removeEventListener: () => {},
dispatchEvent: () => false,
}),
});
});
it('should render', () => {
renderWithProviders(<SignupButton />);
const wallet = screen.getByTestId('ockConnectWallet_Container');
Expand Down
17 changes: 16 additions & 1 deletion src/components/TransactionWrapper.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { render, screen } from '@testing-library/react';
import { describe, expect, it } from 'vitest';
import { beforeAll, describe, expect, it } from 'vitest';
import { http, WagmiProvider, createConfig } from 'wagmi';
import { base } from 'wagmi/chains';
import { mock } from 'wagmi/connectors';
Expand Down Expand Up @@ -34,6 +34,21 @@ const renderWithProviders = (component: JSX.Element) => {
};

describe('TransactionWrapper', () => {
beforeAll(() => {
Object.defineProperty(window, 'matchMedia', {
writable: true,
value: (query: string) => ({
matches: false,
media: query,
onchange: null,
addListener: () => {}, // Deprecated
removeListener: () => {}, // Deprecated
addEventListener: () => {},
removeEventListener: () => {},
dispatchEvent: () => false,
}),
});
});
it('should renders', () => {
renderWithProviders(
<TransactionWrapper address="0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" />,
Expand Down
17 changes: 16 additions & 1 deletion src/components/WalletWrapper.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { render, screen } from '@testing-library/react';
import { describe, expect, it } from 'vitest';
import { beforeAll, describe, expect, it } from 'vitest';
import { http, WagmiProvider, createConfig } from 'wagmi';
import { base } from 'wagmi/chains';
import { mock } from 'wagmi/connectors';
Expand Down Expand Up @@ -34,6 +34,21 @@ const renderWithProviders = (Component: React.ComponentType) => {
};

describe('WalletWrapper', () => {
beforeAll(() => {
Object.defineProperty(window, 'matchMedia', {
writable: true,
value: (query: string) => ({
matches: false,
media: query,
onchange: null,
addListener: () => {}, // Deprecated
removeListener: () => {}, // Deprecated
addEventListener: () => {},
removeEventListener: () => {},
dispatchEvent: () => false,
}),
});
});
it('should renders', () => {
renderWithProviders(WalletWrapper);
const wallet = screen.getByTestId('ockConnectWallet_Container');
Expand Down

0 comments on commit dcde7b7

Please sign in to comment.