@tui-sandbox/library 11.10.0 → 11.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/src/server/applications/neovim/NeovimApplication.js +1 -5
- package/dist/src/server/applications/neovim/NeovimApplication.js.map +1 -1
- package/dist/src/server/applications/terminal/TerminalTestApplication.js +1 -0
- package/dist/src/server/applications/terminal/TerminalTestApplication.js.map +1 -1
- package/dist/src/server/types.d.ts +12 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/src/server/applications/neovim/NeovimApplication.ts +1 -6
- package/src/server/applications/terminal/TerminalTestApplication.ts +1 -0
- package/src/server/types.ts +13 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tui-sandbox/library",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.11.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/mikavilpas/tui-sandbox"
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@catppuccin/palette": "1.7.1",
|
|
15
|
-
"@trpc/client": "11.7.
|
|
16
|
-
"@trpc/server": "11.7.
|
|
15
|
+
"@trpc/client": "11.7.1",
|
|
16
|
+
"@trpc/server": "11.7.1",
|
|
17
17
|
"@xterm/addon-fit": "0.10.0",
|
|
18
18
|
"@xterm/addon-unicode11": "0.8.0",
|
|
19
19
|
"@xterm/xterm": "5.5.0",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/command-exists": "1.2.3",
|
|
33
33
|
"@types/cors": "2.8.19",
|
|
34
|
-
"@types/express": "5.0.
|
|
35
|
-
"@types/node": "24.9.
|
|
34
|
+
"@types/express": "5.0.5",
|
|
35
|
+
"@types/node": "24.9.2",
|
|
36
36
|
"cypress": "15.5.0",
|
|
37
37
|
"nodemon": "3.1.10",
|
|
38
38
|
"type-fest": "5.1.0",
|
|
39
39
|
"vite": "7.1.12",
|
|
40
|
-
"vitest": "4.0.
|
|
40
|
+
"vitest": "4.0.6"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"cypress": "^13 || ^14 || ^15",
|
|
@@ -204,14 +204,9 @@ export class NeovimApplication implements AsyncDisposable {
|
|
|
204
204
|
...process.env,
|
|
205
205
|
...({
|
|
206
206
|
HOME: testDirectory.rootPathAbsolute,
|
|
207
|
-
|
|
208
|
-
// this is needed so that neovim can load its configuration, emulating
|
|
209
|
-
// a common setup real neovim users have
|
|
210
207
|
XDG_CONFIG_HOME: join(testDirectory.rootPathAbsolute, ".config"),
|
|
211
|
-
// the data directory is where lazy.nvim stores its plugins. To prevent
|
|
212
|
-
// downloading a new set of plugins for each test, share the data
|
|
213
|
-
// directory.
|
|
214
208
|
XDG_DATA_HOME: join(testDirectory.testEnvironmentPath, ".repro", "data"),
|
|
209
|
+
TUI_SANDBOX_TEST_ENVIRONMENT_PATH: testDirectory.testEnvironmentPath,
|
|
215
210
|
} satisfies TestEnvironmentCommonEnvironmentVariables),
|
|
216
211
|
NVIM_APPNAME: NVIM_APPNAME ?? "nvim",
|
|
217
212
|
|
|
@@ -82,6 +82,7 @@ export default class TerminalTestApplication implements AsyncDisposable {
|
|
|
82
82
|
HOME: testDirectory.rootPathAbsolute,
|
|
83
83
|
XDG_CONFIG_HOME: join(testDirectory.rootPathAbsolute, ".config"),
|
|
84
84
|
XDG_DATA_HOME: join(testDirectory.testEnvironmentPath, ".repro", "data"),
|
|
85
|
+
TUI_SANDBOX_TEST_ENVIRONMENT_PATH: testDirectory.testEnvironmentPath,
|
|
85
86
|
...additionalEnvironmentVariables,
|
|
86
87
|
} satisfies TestEnvironmentCommonEnvironmentVariables
|
|
87
88
|
}
|
package/src/server/types.ts
CHANGED
|
@@ -46,14 +46,22 @@ export type ServerTestDirectory = z.infer<typeof serverTestDirectorySchema>
|
|
|
46
46
|
export type TestEnvironmentCommonEnvironmentVariables = {
|
|
47
47
|
HOME: string
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
/** This is needed so that the application being tested can load its
|
|
50
|
+
* configuration, emulating a common setup real users have
|
|
51
|
+
*/
|
|
51
52
|
XDG_CONFIG_HOME: string
|
|
52
53
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
/** The data directory is where the application stores its data. To prevent
|
|
55
|
+
* downloading a new set of plugins/whatever for each test, share the data
|
|
56
|
+
* directory.
|
|
57
|
+
*/
|
|
56
58
|
XDG_DATA_HOME: string
|
|
59
|
+
|
|
60
|
+
/** The path to the test environment directory, which is the blueprint for
|
|
61
|
+
* the test directory.
|
|
62
|
+
* @example /Users/mikavilpas/git/tui-sandbox/packages/integration-tests/test-environment
|
|
63
|
+
* */
|
|
64
|
+
TUI_SANDBOX_TEST_ENVIRONMENT_PATH: string
|
|
57
65
|
}
|
|
58
66
|
|
|
59
67
|
export type { StartNeovimGenericArguments } from "./applications/neovim/NeovimApplication.js"
|