docs(i18n): fix port typo and add RTK Token Saver features
Fix port 201281 -> 20128/v1 typo in README.zh-CN.md diagram, add RTK Token Saver mention to README.vi.md/README.zh-CN.md, update Tier 3 free providers to 2026 lineup, and drop hardcoded /tmp node_modules path from tests/package.json and tests/README.md.
This commit is contained in:
@@ -4,25 +4,26 @@ Unit tests for the `/v1/embeddings` endpoint implementation.
|
||||
|
||||
## Setup
|
||||
|
||||
Vitest must be installed globally or in `/tmp/node_modules` (due to npm workspace hoisting from the root Next.js project):
|
||||
Install test dependencies from the `tests/` directory:
|
||||
|
||||
```bash
|
||||
cd /tmp && npm install vitest
|
||||
cd tests/ && npm install
|
||||
```
|
||||
|
||||
## Running Tests
|
||||
|
||||
```bash
|
||||
cd tests/
|
||||
NODE_PATH=/tmp/node_modules /tmp/node_modules/.bin/vitest run --reporter=verbose --config ./vitest.config.js
|
||||
```
|
||||
|
||||
Or using the package script (from the `tests/` directory):
|
||||
From the `tests/` directory:
|
||||
|
||||
```bash
|
||||
npm test
|
||||
```
|
||||
|
||||
Or run vitest directly with npx:
|
||||
|
||||
```bash
|
||||
npx vitest run --reporter=verbose --config ./vitest.config.js
|
||||
```
|
||||
|
||||
## Test Files
|
||||
|
||||
| File | What it tests |
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"type": "module",
|
||||
"description": "Unit tests for 9router embeddings endpoint",
|
||||
"scripts": {
|
||||
"test": "NODE_PATH=/tmp/node_modules /tmp/node_modules/.bin/vitest run --reporter=verbose",
|
||||
"test:watch": "NODE_PATH=/tmp/node_modules /tmp/node_modules/.bin/vitest --reporter=verbose"
|
||||
"test": "vitest run --reporter=verbose",
|
||||
"test:watch": "vitest --reporter=verbose"
|
||||
},
|
||||
"devDependencies": {
|
||||
"vitest": "^4.0.0"
|
||||
|
||||
Reference in New Issue
Block a user