mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 01:48:05 +00:00
fix
This commit is contained in:
parent
91e178d1ef
commit
468d263a9a
4 changed files with 5 additions and 8 deletions
2
.github/workflows/integration-tests.yml
vendored
2
.github/workflows/integration-tests.yml
vendored
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue