mirror of
				https://github.com/monkeytypegame/monkeytype.git
				synced 2025-10-31 11:16:08 +08:00 
			
		
		
		
	- **test: support to run/watch all tests in vscode (@fehmer)** - **packages/contracts** - **move schema tests to schema package** - **packages/funbox** - **packages/utils** - **frontend** - **backend** --------- Co-authored-by: Miodec <jack@monkeytype.com>
		
			
				
	
	
		
			58 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { defineConfig, UserWorkspaceConfig } from "vitest/config";
 | |
| 
 | |
| export const projects: UserWorkspaceConfig[] = [
 | |
|   {
 | |
|     test: {
 | |
|       name: { label: "unit", color: "blue" },
 | |
|       setupFiles: ["__tests__/setup-tests.ts"],
 | |
|       include: ["__tests__/**/*.spec.ts"],
 | |
|       exclude: ["__tests__/__integration__"],
 | |
|       sequence: {
 | |
|         groupOrder: 0,
 | |
|       },
 | |
|     },
 | |
|   },
 | |
|   {
 | |
|     test: {
 | |
|       name: { label: "integration", color: "yellow" },
 | |
|       setupFiles: ["__tests__/__integration__/setup-integration-tests.ts"],
 | |
|       globalSetup: "__tests__/__integration__/global-setup.ts",
 | |
|       include: ["__tests__/__integration__/**/*.spec.ts"],
 | |
|       exclude: ["**/*.isolated.spec.ts"],
 | |
| 
 | |
|       sequence: {
 | |
|         concurrent: false,
 | |
|         groupOrder: 1,
 | |
|       },
 | |
|     },
 | |
|   },
 | |
|   {
 | |
|     test: {
 | |
|       name: { label: "integration-isolated", color: "magenta" },
 | |
|       setupFiles: ["__tests__/__integration__/setup-integration-tests.ts"],
 | |
|       globalSetup: "__tests__/__integration__/global-setup.ts",
 | |
|       include: ["__tests__/__integration__/**/*.isolated.spec.ts"],
 | |
| 
 | |
|       sequence: {
 | |
|         concurrent: false,
 | |
|         groupOrder: 2,
 | |
|       },
 | |
|       pool: "threads",
 | |
|       poolOptions: {
 | |
|         threads: {
 | |
|           singleThread: true,
 | |
|         },
 | |
|       },
 | |
|     },
 | |
|   },
 | |
| ];
 | |
| export default defineConfig({
 | |
|   test: {
 | |
|     projects: projects,
 | |
|     environment: "node",
 | |
|     pool: "forks",
 | |
|     coverage: {
 | |
|       include: ["**/*.ts"],
 | |
|     },
 | |
|   },
 | |
| });
 |