Skip to content

Commit

Permalink
chore: update @tui-sandbox/library from 6.1.0 to 7.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mikavilpas committed Nov 24, 2024
1 parent dc20a35 commit 80cb526
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 849 deletions.
26 changes: 25 additions & 1 deletion integration-tests/cypress/support/tui-sandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@
//
// This file is autogenerated by tui-sandbox. Do not edit it directly.
//
import type { BlockingCommandClientInput } from "@tui-sandbox/library/dist/src/server/server"
import type {
BlockingCommandClientInput,
ExCommandClientInput,
LuaCodeClientInput,
} from "@tui-sandbox/library/dist/src/server/server"
import type {
BlockingShellCommandOutput,
RunExCommandOutput,
RunLuaCodeOutput,
StartNeovimGenericArguments,
} from "@tui-sandbox/library/dist/src/server/types"
import type { OverrideProperties } from "type-fest"
Expand All @@ -26,6 +32,8 @@ declare global {
runBlockingShellCommand(
input: BlockingCommandClientInput,
): Promise<BlockingShellCommandOutput>
runLuaCode(input: LuaCodeClientInput): Promise<RunLuaCodeOutput>
runExCommand(input: ExCommandClientInput): Promise<RunExCommandOutput>
}
}

Expand Down Expand Up @@ -69,6 +77,18 @@ Cypress.Commands.add(
},
)

Cypress.Commands.add("runLuaCode", (input: LuaCodeClientInput) => {
cy.window().then(async (win) => {
return await win.runLuaCode(input)
})
})

Cypress.Commands.add("runExCommand", (input: ExCommandClientInput) => {
cy.window().then(async (win) => {
return await win.runExCommand(input)
})
})

before(function () {
// disable Cypress's default behavior of logging all XMLHttpRequests and
// fetches to the Command Log
Expand All @@ -93,6 +113,10 @@ declare global {
runBlockingShellCommand(
input: BlockingCommandClientInput,
): Chainable<BlockingShellCommandOutput>

runLuaCode(input: LuaCodeClientInput): Chainable<RunLuaCodeOutput>

runExCommand(input: ExCommandClientInput): Chainable<RunExCommandOutput>
}
}
}
2 changes: 1 addition & 1 deletion integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"zod": "3.23.8"
},
"devDependencies": {
"@tui-sandbox/library": "7.0.1",
"@tui-sandbox/library": "7.2.0",
"@types/node": "22.9.1",
"@types/tinycolor2": "1.4.6",
"@typescript-eslint/eslint-plugin": "8.15.0",
Expand Down
Loading

0 comments on commit 80cb526

Please sign in to comment.