mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 09:53:45 +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
|
- name: Setup Node.js for TypeScript client tests
|
||||||
if: ${{ matrix.client == 'server' }}
|
if: ${{ matrix.client == 'server' }}
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|
|
||||||
|
|
@ -260,7 +260,7 @@ run_client_ts_tests() {
|
||||||
echo "Installing TypeScript client test dependencies using: $install_cmd"
|
echo "Installing TypeScript client test dependencies using: $install_cmd"
|
||||||
$install_cmd
|
$install_cmd
|
||||||
echo "Running TypeScript tests: ${files[*]}"
|
echo "Running TypeScript tests: ${files[*]}"
|
||||||
npx jest --config jest.integration.config.ts "${files[@]}"
|
npx jest --config jest.integration.config.js "${files[@]}"
|
||||||
|
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,8 @@
|
||||||
// This source code is licensed under the terms described in the LICENSE file in
|
// This source code is licensed under the terms described in the LICENSE file in
|
||||||
// the root directory of this source tree.
|
// the root directory of this source tree.
|
||||||
|
|
||||||
import type { JestConfigWithTsJest } from 'ts-jest';
|
/** @type {import('ts-jest').JestConfigWithTsJest} */
|
||||||
|
module.exports = {
|
||||||
const config: JestConfigWithTsJest = {
|
|
||||||
preset: 'ts-jest/presets/default-esm',
|
preset: 'ts-jest/presets/default-esm',
|
||||||
testEnvironment: 'node',
|
testEnvironment: 'node',
|
||||||
extensionsToTreatAsEsm: ['.ts'],
|
extensionsToTreatAsEsm: ['.ts'],
|
||||||
|
|
@ -30,5 +29,3 @@ const config: JestConfigWithTsJest = {
|
||||||
testTimeout: 60000, // 60 seconds (integration tests can be slow)
|
testTimeout: 60000, // 60 seconds (integration tests can be slow)
|
||||||
watchman: false, // Disable watchman to avoid permission issues
|
watchman: false, // Disable watchman to avoid permission issues
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
"description": "TypeScript client integration tests for Llama Stack",
|
"description": "TypeScript client integration tests for Llama Stack",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "jest --config jest.integration.config.ts"
|
"test": "jest --config jest.integration.config.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"llama-stack-client": "^0.3.2"
|
"llama-stack-client": "^0.3.2"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue