Skip to content
Merged
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 .config/repo/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ export default defineConfig({
'test/repo/unit/**/*.test.mts',
'test/repo/integration/**/*.test.mts',
],
exclude: ['test/repo/e2e/**'],
},
})
2 changes: 1 addition & 1 deletion .config/repo/vitest.e2e.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ process.env['TZ'] ??= 'UTC'
export default defineConfig({
test: {
...repoTestOptions,
include: ['test/repo/e2e/**/*.test.mts'],
include: ['test/e2e/**/*.test.mts'],
},
})
11 changes: 11 additions & 0 deletions .github/workflows/ci-gates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,14 @@ jobs:
run: pnpm install --frozen-lockfile
- name: Run tests
run: pnpm test
- name: Check terminal screenshots
id: screenshots
run: pnpm exec vitest run --config .config/repo/vitest.e2e.config.mts test/e2e/termless.test.mts
Comment thread
jdalton marked this conversation as resolved.
Resolved
- name: Upload terminal screenshot differences
if: failure() && steps.screenshots.outcome == 'failure'
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
name: terminal-screenshots-${{ matrix.os }}
path: .cache/terminal-screenshots/
include-hidden-files: true
if-no-files-found: ignore
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
"server-stdio:debug": "pnpm run build:bundle && SOCKET_DEBUG=1 SOCKET_API_TOKEN=${SOCKET_API_TOKEN:-${SOCKET_API_KEY}} node ./dist/index.cjs",
"test": "vitest run --config .config/repo/vitest.config.mts",
"test:e2e": "vitest run --config .config/repo/vitest.e2e.config.mts",
"test:e2e:update": "vitest run --update --config .config/repo/vitest.e2e.config.mts",
Comment thread
jdalton marked this conversation as resolved.
Resolved
"snapshots:refresh": "vitest run --update --config .config/repo/vitest.e2e.config.mts test/e2e/termless.test.mts",
"test:fuzz": "node scripts/repo/fuzz.mts",
"test:tsc": "tsgo --noEmit -p tsconfig.json"
},
Expand All @@ -79,13 +81,16 @@
"@socketsecurity/lib-stable": "catalog:",
"@socketsecurity/sdk": "catalog:",
"@socketsecurity/sdk-stable": "catalog:",
"@termless/core": "0.11.0",
"@termless/vterm": "0.11.0",
"@types/node": "catalog:",
"@typescript/native-preview": "catalog:",
"@vitest/coverage-v8": "catalog:",
"@vitiate/core": "catalog:",
"fast-check": "catalog:",
"mcp-tada": "catalog:",
"nock": "catalog:",
"node-pty": "1.2.0-beta.18",
"oxfmt": "catalog:",
"oxlint": "catalog:",
"rolldown": "catalog:",
Expand Down
102 changes: 99 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ allowBuilds:
"@socketsecurity/sdk": false
"@swc/core": true
esbuild: true
node-pty: true
autoInstallPeers: true
blockExoticSubdeps: true
catalog:
Expand Down Expand Up @@ -75,6 +76,12 @@ catalog:
yaml: 2.9.1
enablePrePostScripts: true
overrides:
"@termless/core>@napi-rs/canvas": "-"
"@termless/core>@resvg/resvg-js": "-"
"@termless/core>@twemoji/svg": "-"
"@termless/core>gifenc": "-"
"@termless/core>playwright": "-"
"@termless/core>upng-js": "-"
"@sinclair/typebox": "catalog:"
"@socketregistry/packageurl-js": "catalog:"
"@socketsecurity/lib": "catalog:"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/repo/e2e/server.test.mts → test/e2e/server.test.mts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Client } from '@modelcontextprotocol/client'
import { StdioClientTransport } from '@modelcontextprotocol/client/stdio'
import { afterAll, beforeAll, describe, expect, test } from 'vitest'

import { SERVER_SOURCE } from '../../../scripts/repo/paths.mts'
import { SERVER_SOURCE } from '../../scripts/repo/paths.mts'

const FIXTURE_RESPONSE = [
{ type: 'npm', namespace: '@babel', name: 'core', version: '7.24.0' },
Expand Down
Loading
Loading