Download apps/vscode/vitest.projects.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 723 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/apps/vscode/vitest.projects.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/apps/vscode/vitest.projects.ts
-
curl -L -o vitest.projects.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/apps/vscode/vitest.projects.ts
723 Bytes
| import react from '@vitejs/plugin-react'; | |
| import { resolve } from 'node:path'; | |
| const appRoot = import.meta.dirname; | |
| const alias = { | |
| '@': resolve(appRoot, 'webview-ui/src'), | |
| shared: resolve(appRoot, 'shared'), | |
| }; | |
| export const vscodeProjects = [ | |
| { | |
| root: appRoot, | |
| resolve: { alias }, | |
| test: { | |
| name: 'extension', | |
| include: ['test/**/*.test.ts'], | |
| exclude: ['test/webview/**'], | |
| environment: 'node', | |
| testTimeout: 15_000, | |
| }, | |
| }, | |
| { | |
| root: appRoot, | |
| plugins: [react()], | |
| resolve: { alias }, | |
| test: { | |
| name: 'webview', | |
| include: ['test/webview/**/*.test.{ts,tsx}'], | |
| environment: 'jsdom', | |
| setupFiles: ['./test/webview/setup.ts'], | |
| }, | |
| }, | |
| ]; | |