This commit is contained in:
Ashwin Bharambe 2025-11-18 15:51:41 -08:00
parent 91e178d1ef
commit 468d263a9a
4 changed files with 5 additions and 8 deletions

View file

@ -95,7 +95,7 @@ jobs:
- name: Setup Node.js for TypeScript client tests
if: ${{ matrix.client == 'server' }}
uses: actions/setup-node@v4
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: '20'
cache: 'npm'

View file

@ -260,7 +260,7 @@ run_client_ts_tests() {
echo "Installing TypeScript client test dependencies using: $install_cmd"
$install_cmd
echo "Running TypeScript tests: ${files[*]}"
npx jest --config jest.integration.config.ts "${files[@]}"
npx jest --config jest.integration.config.js "${files[@]}"
popd >/dev/null
}

View file

@ -4,9 +4,8 @@
// This source code is licensed under the terms described in the LICENSE file in
// the root directory of this source tree.
import type { JestConfigWithTsJest } from 'ts-jest';
const config: JestConfigWithTsJest = {
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest/presets/default-esm',
testEnvironment: 'node',
extensionsToTreatAsEsm: ['.ts'],
@ -30,5 +29,3 @@ const config: JestConfigWithTsJest = {
testTimeout: 60000, // 60 seconds (integration tests can be slow)
watchman: false, // Disable watchman to avoid permission issues
};
export default config;

View file

@ -5,7 +5,7 @@
"description": "TypeScript client integration tests for Llama Stack",
"type": "module",
"scripts": {
"test": "jest --config jest.integration.config.ts"
"test": "jest --config jest.integration.config.js"
},
"dependencies": {
"llama-stack-client": "^0.3.2"