Skip to content

Commit c549d59

Browse files
[Bridge] Skip tests without TW_SECRET_KEY environment variable (#6545)
1 parent dd65506 commit c549d59

File tree

9 files changed

+223
-705
lines changed

9 files changed

+223
-705
lines changed

.changeset/ready-bobcats-tan.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@thirdweb-dev/wagmi-adapter": patch
3+
"thirdweb": patch
4+
---
5+
6+
Update dependencies

packages/service-utils/package.json

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,8 @@
2626
},
2727
"typesVersions": {
2828
"*": {
29-
"node": [
30-
"./dist/types/node/index.d.ts"
31-
],
32-
"cf-worker": [
33-
"./dist/types/cf-worker/index.d.ts"
34-
]
29+
"node": ["./dist/types/node/index.d.ts"],
30+
"cf-worker": ["./dist/types/cf-worker/index.d.ts"]
3531
}
3632
},
3733
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/pay",
@@ -40,9 +36,7 @@
4036
"url": "https://github.com/thirdweb-dev/js/issues"
4137
},
4238
"author": "thirdweb eng <[email protected]>",
43-
"files": [
44-
"dist/"
45-
],
39+
"files": ["dist/"],
4640
"sideEffects": false,
4741
"dependencies": {
4842
"@confluentinc/kafka-javascript": "^1.2.0",
@@ -53,7 +47,7 @@
5347
"@cloudflare/workers-types": "4.20250312.0",
5448
"@types/node": "22.13.10",
5549
"typescript": "5.8.2",
56-
"vitest": "3.0.8"
50+
"vitest": "3.0.9"
5751
},
5852
"scripts": {
5953
"format": "biome format ./src --write",

packages/thirdweb/package.json

Lines changed: 26 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -137,66 +137,26 @@
137137
},
138138
"typesVersions": {
139139
"*": {
140-
"adapters/*": [
141-
"./dist/types/exports/adapters/*.d.ts"
142-
],
143-
"auth": [
144-
"./dist/types/exports/auth.d.ts"
145-
],
146-
"chains": [
147-
"./dist/types/exports/chains.d.ts"
148-
],
149-
"contract": [
150-
"./dist/types/exports/contract.d.ts"
151-
],
152-
"deploys": [
153-
"./dist/types/exports/deploys.d.ts"
154-
],
155-
"event": [
156-
"./dist/types/exports/event.d.ts"
157-
],
158-
"extensions/*": [
159-
"./dist/types/exports/extensions/*.d.ts"
160-
],
161-
"pay": [
162-
"./dist/types/exports/pay.d.ts"
163-
],
164-
"react": [
165-
"./dist/types/exports/react.d.ts"
166-
],
167-
"react-native": [
168-
"./dist/types/exports/react-native.d.ts"
169-
],
170-
"rpc": [
171-
"./dist/types/exports/rpc.d.ts"
172-
],
173-
"storage": [
174-
"./dist/types/exports/storage.d.ts"
175-
],
176-
"transaction": [
177-
"./dist/types/exports/transaction.d.ts"
178-
],
179-
"utils": [
180-
"./dist/types/exports/utils.d.ts"
181-
],
182-
"wallets": [
183-
"./dist/types/exports/wallets.d.ts"
184-
],
185-
"wallets/*": [
186-
"./dist/types/exports/wallets/*.d.ts"
187-
],
188-
"modules": [
189-
"./dist/types/exports/modules.d.ts"
190-
],
191-
"social": [
192-
"./dist/types/exports/social.d.ts"
193-
],
194-
"ai": [
195-
"./dist/types/exports/ai.d.ts"
196-
],
197-
"bridge": [
198-
"./dist/types/exports/bridge.d.ts"
199-
]
140+
"adapters/*": ["./dist/types/exports/adapters/*.d.ts"],
141+
"auth": ["./dist/types/exports/auth.d.ts"],
142+
"chains": ["./dist/types/exports/chains.d.ts"],
143+
"contract": ["./dist/types/exports/contract.d.ts"],
144+
"deploys": ["./dist/types/exports/deploys.d.ts"],
145+
"event": ["./dist/types/exports/event.d.ts"],
146+
"extensions/*": ["./dist/types/exports/extensions/*.d.ts"],
147+
"pay": ["./dist/types/exports/pay.d.ts"],
148+
"react": ["./dist/types/exports/react.d.ts"],
149+
"react-native": ["./dist/types/exports/react-native.d.ts"],
150+
"rpc": ["./dist/types/exports/rpc.d.ts"],
151+
"storage": ["./dist/types/exports/storage.d.ts"],
152+
"transaction": ["./dist/types/exports/transaction.d.ts"],
153+
"utils": ["./dist/types/exports/utils.d.ts"],
154+
"wallets": ["./dist/types/exports/wallets.d.ts"],
155+
"wallets/*": ["./dist/types/exports/wallets/*.d.ts"],
156+
"modules": ["./dist/types/exports/modules.d.ts"],
157+
"social": ["./dist/types/exports/social.d.ts"],
158+
"ai": ["./dist/types/exports/ai.d.ts"],
159+
"bridge": ["./dist/types/exports/bridge.d.ts"]
200160
}
201161
},
202162
"browser": {
@@ -226,8 +186,8 @@
226186
"@radix-ui/react-icons": "1.3.2",
227187
"@radix-ui/react-tooltip": "1.1.8",
228188
"@tanstack/react-query": "5.67.3",
229-
"@walletconnect/ethereum-provider": "2.17.5",
230-
"@walletconnect/sign-client": "2.17.5",
189+
"@walletconnect/ethereum-provider": "2.19.1",
190+
"@walletconnect/sign-client": "2.19.1",
231191
"abitype": "1.0.8",
232192
"cross-spawn": "7.0.6",
233193
"fuse.js": "7.1.0",
@@ -342,7 +302,7 @@
342302
"@aws-sdk/credential-providers": "3.592.0",
343303
"@biomejs/biome": "1.9.4",
344304
"@chromatic-com/storybook": "3.2.6",
345-
"@codspeed/vitest-plugin": "4.0.0",
305+
"@codspeed/vitest-plugin": "4.0.1",
346306
"@coinbase/wallet-mobile-sdk": "1.1.2",
347307
"@mobile-wallet-protocol/client": "1.0.0",
348308
"@react-native-async-storage/async-storage": "2.1.2",
@@ -361,8 +321,8 @@
361321
"@types/react": "19.0.10",
362322
"@viem/anvil": "0.0.10",
363323
"@vitejs/plugin-react": "^4.3.4",
364-
"@vitest/coverage-v8": "3.0.8",
365-
"@vitest/ui": "3.0.8",
324+
"@vitest/coverage-v8": "3.0.9",
325+
"@vitest/ui": "3.0.9",
366326
"dotenv-mono": "^1.3.14",
367327
"ethers5": "npm:ethers@5",
368328
"ethers6": "npm:ethers@6",
@@ -387,6 +347,6 @@
387347
"typedoc-better-json": "0.9.4",
388348
"typescript": "5.8.2",
389349
"vite": "6.2.1",
390-
"vitest": "3.0.8"
350+
"vitest": "3.0.9"
391351
}
392352
}

packages/thirdweb/src/bridge/Buy.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { describe, expect, it } from "vitest";
33
import { TEST_CLIENT } from "~test/test-clients.js";
44
import * as Buy from "./Buy.js";
55

6-
describe("Bridge.Buy.quote", () => {
6+
describe.runIf(process.env.TW_SECRET_KEY)("Bridge.Buy.quote", () => {
77
it("should get a valid quote", async () => {
88
const quote = await Buy.quote({
99
originChainId: 1,

packages/thirdweb/src/bridge/Routes.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const server = setupServer(
1010
}),
1111
);
1212

13-
describe("Bridge.routes", () => {
13+
describe.runIf(process.env.TW_SECRET_KEY)("Bridge.routes", () => {
1414
beforeAll(() => server.listen());
1515
afterEach(() => server.resetHandlers());
1616
afterAll(() => server.close());

packages/thirdweb/src/bridge/Sell.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { describe, expect, it } from "vitest";
33
import { TEST_CLIENT } from "~test/test-clients.js";
44
import * as Sell from "./Sell.js";
55

6-
describe("Bridge.Sell.quote", () => {
6+
describe.runIf(process.env.TW_SECRET_KEY)("Bridge.Sell.quote", () => {
77
it("should get a valid quote", async () => {
88
const quote = await Sell.quote({
99
originChainId: 1,

packages/thirdweb/src/bridge/Status.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { describe, expect, it } from "vitest";
22
import { TEST_CLIENT } from "~test/test-clients.js";
33
import { status } from "./Status.js";
44

5-
describe("Bridge.status", () => {
5+
describe.runIf(process.env.TW_SECRET_KEY)("Bridge.status", () => {
66
it("should handle successful status", async () => {
77
const result = await status({
88
transactionHash:
Lines changed: 53 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,55 @@
11
{
2-
"name": "@thirdweb-dev/wagmi-adapter",
3-
"version": "0.2.39",
4-
"repository": {
5-
"type": "git",
6-
"url": "git+https://github.com/thirdweb-dev/js.git#main"
7-
},
8-
"license": "Apache-2.0",
9-
"bugs": {
10-
"url": "https://github.com/thirdweb-dev/js/issues"
11-
},
12-
"author": "thirdweb eng <[email protected]>",
13-
"type": "module",
14-
"main": "./dist/cjs/exports/thirdweb.js",
15-
"module": "./dist/esm/exports/thirdweb.js",
16-
"types": "./dist/types/exports/thirdweb.d.ts",
17-
"typings": "./dist/types/exports/thirdweb.d.ts",
18-
"exports": {
19-
".": {
20-
"types": "./dist/types/exports/thirdweb.d.ts",
21-
"import": "./dist/esm/exports/thirdweb.js",
22-
"default": "./dist/cjs/exports/thirdweb.js"
23-
},
24-
"./package.json": "./package.json"
25-
},
26-
"files": [
27-
"dist/*",
28-
"src/*"
29-
],
30-
"devDependencies": {
31-
"@wagmi/core": "2.16.5",
32-
"rimraf": "6.0.1",
33-
"thirdweb": "workspace:*"
34-
},
35-
"peerDependencies": {
36-
"@wagmi/core": "^2.16.0",
37-
"thirdweb": "^5.85.0",
38-
"typescript": ">=5.0.4"
39-
},
40-
"peerDependenciesMeta": {
41-
"typescript": {
42-
"optional": true
43-
}
44-
},
45-
"scripts": {
46-
"format": "biome format ./src --write",
47-
"lint": "biome check ./src",
48-
"fix": "biome check ./src --fix",
49-
"build": "pnpm clean && pnpm build:cjs && pnpm build:esm && pnpm build:types",
50-
"build:cjs": "tsc --project ./tsconfig.build.json --module commonjs --outDir ./dist/cjs --verbatimModuleSyntax false && printf '{\"type\":\"commonjs\"}' > ./dist/cjs/package.json",
51-
"build:esm": "tsc --project ./tsconfig.build.json --module es2020 --outDir ./dist/esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./dist/esm/package.json",
52-
"build:types": "tsc --project ./tsconfig.build.json --module esnext --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap",
53-
"clean": "rimraf dist"
54-
},
55-
"engines": {
56-
"node": ">=18"
57-
}
2+
"name": "@thirdweb-dev/wagmi-adapter",
3+
"version": "0.2.39",
4+
"repository": {
5+
"type": "git",
6+
"url": "git+https://github.com/thirdweb-dev/js.git#main"
7+
},
8+
"license": "Apache-2.0",
9+
"bugs": {
10+
"url": "https://github.com/thirdweb-dev/js/issues"
11+
},
12+
"author": "thirdweb eng <[email protected]>",
13+
"type": "module",
14+
"main": "./dist/cjs/exports/thirdweb.js",
15+
"module": "./dist/esm/exports/thirdweb.js",
16+
"types": "./dist/types/exports/thirdweb.d.ts",
17+
"typings": "./dist/types/exports/thirdweb.d.ts",
18+
"exports": {
19+
".": {
20+
"types": "./dist/types/exports/thirdweb.d.ts",
21+
"import": "./dist/esm/exports/thirdweb.js",
22+
"default": "./dist/cjs/exports/thirdweb.js"
23+
},
24+
"./package.json": "./package.json"
25+
},
26+
"files": ["dist/*", "src/*"],
27+
"devDependencies": {
28+
"@wagmi/core": "2.16.7",
29+
"rimraf": "6.0.1",
30+
"thirdweb": "workspace:*"
31+
},
32+
"peerDependencies": {
33+
"@wagmi/core": "^2.16.0",
34+
"thirdweb": "^5.85.0",
35+
"typescript": ">=5.0.4"
36+
},
37+
"peerDependenciesMeta": {
38+
"typescript": {
39+
"optional": true
40+
}
41+
},
42+
"scripts": {
43+
"format": "biome format ./src --write",
44+
"lint": "biome check ./src",
45+
"fix": "biome check ./src --fix",
46+
"build": "pnpm clean && pnpm build:cjs && pnpm build:esm && pnpm build:types",
47+
"build:cjs": "tsc --project ./tsconfig.build.json --module commonjs --outDir ./dist/cjs --verbatimModuleSyntax false && printf '{\"type\":\"commonjs\"}' > ./dist/cjs/package.json",
48+
"build:esm": "tsc --project ./tsconfig.build.json --module es2020 --outDir ./dist/esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./dist/esm/package.json",
49+
"build:types": "tsc --project ./tsconfig.build.json --module esnext --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap",
50+
"clean": "rimraf dist"
51+
},
52+
"engines": {
53+
"node": ">=18"
54+
}
5855
}

0 commit comments

Comments
 (0)