Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/sdk/account/decorators/deployGasTank.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { DEFAULT_PATHFINDER_URL } from "../../clients/createMeeClient"
import { testnetMcUSDC } from "../../constants"
import { type GasTankAccount, toGasTankAccount } from "../toGasTankAccount"

// @ts-ignore
const { runPaidTests } = inject("settings")

describe("mee.getGasTankBalance", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ import {
import { getMeeScanLink, getMultichainContract } from "../../utils"
import buildComposable from "./buildComposable"

// @ts-ignore
const { runPaidTests } = inject("settings")

describe.runIf(runPaidTests)("mee.buildComposable", () => {
Expand Down
1 change: 0 additions & 1 deletion src/sdk/account/decorators/withdrawFromGasTank.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { testnetMcUSDC } from "../../constants"
import { runtimeERC20BalanceOf } from "../../modules"
import { type GasTankAccount, toGasTankAccount } from "../toGasTankAccount"

// @ts-ignore
const { runPaidTests } = inject("settings")

describe("mee.withdrawFromGasTank", () => {
Expand Down
1 change: 0 additions & 1 deletion src/sdk/clients/createBundlerClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import { type MeeClient, createMeeClient } from "./createMeeClient"
import { erc7579Actions } from "./decorators/erc7579"
import { smartAccountActions } from "./decorators/smartAccount"

// @ts-ignore
const { runPaidTests } = inject("settings")

const COMPETITORS = [
Expand Down
1 change: 0 additions & 1 deletion src/sdk/clients/createMeeClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import { mcAUSDC, mcUSDC, testnetMcUSDC } from "../constants/tokens"
import { type MeeClient, createMeeClient } from "./createMeeClient"
import type { FeeTokenInfo } from "./decorators/mee/getQuote"

// @ts-ignore
const { runPaidTests } = inject("settings")

describe("mee.createMeeClient", async () => {
Expand Down
1 change: 0 additions & 1 deletion src/sdk/clients/decorators/mee/executeFusionQuote.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import getFusionQuote from "./getFusionQuote"
import type { FeeTokenInfo } from "./getQuote"
import waitForSupertransactionReceipt from "./waitForSupertransactionReceipt"

// @ts-ignore
const { runPaidTests } = inject("settings")

describe.runIf(runPaidTests)("mee.executeFusionQuote", () => {
Expand Down
1 change: 0 additions & 1 deletion src/sdk/clients/decorators/mee/getMmDtkQuote.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ import {
import getMmDtkQuote from "./getMmDtkQuote"
import { signMMDtkQuote } from "./signMmDtkQuote"

// @ts-ignore
const { runPaidTests } = inject("settings")

describe("mee.getMmDtkQuote", () => {
Expand Down
1 change: 0 additions & 1 deletion src/sdk/clients/decorators/mee/signOnChainQuote.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ import { ON_CHAIN_PREFIX, signOnChainQuote } from "./signOnChainQuote"
import type { Trigger } from "./signPermitQuote"
import waitForSupertransactionReceipt from "./waitForSupertransactionReceipt"

// @ts-ignore
const { runPaidTests } = inject("settings")

describe.runIf(runPaidTests)("mee.signOnChainQuote", () => {
Expand Down
1 change: 0 additions & 1 deletion src/sdk/clients/decorators/mee/signPermitQuote.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import { type FeeTokenInfo, getQuote } from "./getQuote"
import { type Trigger, signPermitQuote } from "./signPermitQuote"
import waitForSupertransactionReceipt from "./waitForSupertransactionReceipt"

// @ts-ignore
const { runPaidTests } = inject("settings")
describe("mee.signPermitQuote", () => {
let network: NetworkConfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import type { Validator } from "../toValidator"
import { meeSessionActions } from "./decorators/mee"
import { toSmartSessionsModule } from "./toSmartSessionsModule"

// @ts-ignore
const { runPaidTests } = inject("settings")
const COUNTER_ON_OPTIMISM = "0x167a039E79E4E90550333c7D97a12ebf5f6f116A"
const COUNTER_ON_BASE = "0x3D9aEd944CC8cD91a89aa318efd6CDCD870241e8"
Expand Down
6 changes: 0 additions & 6 deletions src/test/globalSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,3 @@ export const setup = async ({ provide }) => {
}

export const teardown = async () => {}

declare module "vitest" {
export interface ProvidedContext {
settings: { runPaidTests: boolean }
}
}
12 changes: 12 additions & 0 deletions src/test/vitest.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// vitest.d.ts
import "vitest"

declare module "vitest" {
interface ProvidedContext {
settings: {
runPaidTests: boolean
}
}
}

export {}
11 changes: 7 additions & 4 deletions tsconfig/tsconfig.types.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@
"declaration": true,
"declarationMap": true,
"noEmit": false,
"rootDir": "../src/sdk"
"rootDir": "../src/sdk",
"types": ["vitest"],
"typeRoots": ["./node_modules/@types", "./types"]
},
"exclude": [
"../src/test/**/*.*",
"../src/sdk/**/*.test.*",
"../src/sdk/**/*.spec.*",
]
}
"../src/sdk/**/*.spec.*"
],
"include": ["src/**/*", "vitest.d.ts"]
}
Loading