Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# LlamaIndexTS Core E2E Tests
## Overview
We are using Node.js Test Runner to run E2E tests for LlamaIndexTS Core.
It supports the following features:
- Run tests in parallel
- Pure Node.js Environment
- Switch between mock and real LLM API
- Customizable logics
## Usage
- Run with mock register:
```shell
node --import tsx --import ./mock-register.js --test ./node/basic.e2e.ts
```
- Run without mock register:
```shell
node --import tsx --test ./node/basic.e2e.ts
```
- Run with specific test:
```shell
node --import tsx --import ./mock-register.js --test-name-pattern=agent --test ./node/basic.e2e.ts
```
- Run with debug logs:
```shell
CONSOLA_LEVEL=5 node --import tsx --import ./mock-register.js --test-name-pattern=agent --test ./node/basic.e2e.ts
```