mirror of https://github.com/buster-so/buster.git
update package.json pass if no unit tests
This commit is contained in:
parent
ba61b6a3ea
commit
51da02efbb
|
@ -188,4 +188,11 @@ export async function getWorkspaceSettingsHandler(
|
|||
|
||||
### Soft Delete and Upsert Practices
|
||||
- In our database, we never hard delete, we always use soft deletes with the `deleted_at` field
|
||||
- For update operations, we should almost always perform an upsert unless otherwise specified
|
||||
- For update operations, we should almost always perform an upsert unless otherwise specified
|
||||
```
|
||||
|
||||
**Test Running Guidelines**:
|
||||
- When running tests, use the following Turbo commands:
|
||||
- `turbo test:unit` for unit tests
|
||||
- `turbo test:integration` for integration tests
|
||||
- `turbo test` for running all tests
|
|
@ -20,7 +20,7 @@
|
|||
"dev": "tsc --watch",
|
||||
"lint": "biome check --write",
|
||||
"test": "vitest run",
|
||||
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts'",
|
||||
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts' --passWithNoTests",
|
||||
"test:integration": "vitest run **/*.int.test.ts **/*.integration.test.ts",
|
||||
"test:coverage": "vitest run --coverage",
|
||||
"test:watch": "vitest",
|
||||
|
|
|
@ -7,7 +7,7 @@ import {
|
|||
createUserInOrganization,
|
||||
getOrganizationWithDefaults,
|
||||
getUserOrganizations,
|
||||
} from '../../src/user-organizations';
|
||||
} from './user-organizations';
|
||||
|
||||
// Mock the database module
|
||||
vi.mock('@buster/database', () => ({
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
"dev:mastra": "mastra dev --dir src",
|
||||
"lint": "biome check --write",
|
||||
"test": "vitest run",
|
||||
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts'",
|
||||
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts' --passWithNoTests",
|
||||
"test:integration": "vitest run **/*.int.test.ts **/*.integration.test.ts",
|
||||
"test:watch": "vitest watch",
|
||||
"test:coverage": "vitest run --coverage",
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
"test:coverage": "vitest run --coverage",
|
||||
"test:integration": "vitest run **/*.int.test.ts **/*.integration.test.ts",
|
||||
"test:introspection": "vitest run tests/integration/data-source-introspection.test.ts",
|
||||
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts'",
|
||||
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts' --passWithNoTests",
|
||||
"test:watch": "vitest",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
"stop": "pnpm run db:stop",
|
||||
"start": "echo 'Running db:init from turbo.json' && pnpm run db:init",
|
||||
"test": "vitest run",
|
||||
"test:unit": "DATABASE_URL=mock://test SUPABASE_URL=mock://test SUPABASE_SERVICE_ROLE_KEY=mock SUPABASE_ANON_KEY=mock vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts'",
|
||||
"test:unit": "DATABASE_URL=mock://test SUPABASE_URL=mock://test SUPABASE_SERVICE_ROLE_KEY=mock SUPABASE_ANON_KEY=mock vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts' --passWithNoTests",
|
||||
"test:integration": "vitest run **/*.int.test.ts **/*.integration.test.ts",
|
||||
"test:coverage": "vitest run --coverage",
|
||||
"test:watch": "vitest",
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
"build": "tsc",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"test": "vitest run",
|
||||
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts'",
|
||||
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts' --passWithNoTests",
|
||||
"test:integration": "vitest run **/*.int.test.ts **/*.integration.test.ts",
|
||||
"test:watch": "vitest watch",
|
||||
"test:coverage": "vitest run --coverage",
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"lint": "biome check --write",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"test": "vitest run",
|
||||
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts'",
|
||||
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts' --passWithNoTests",
|
||||
"test:integration": "vitest run **/*.int.test.ts **/*.integration.test.ts",
|
||||
"test:watch": "vitest"
|
||||
},
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
"dev": "tsc --watch",
|
||||
"lint": "biome check --write",
|
||||
"test": "vitest run",
|
||||
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts'",
|
||||
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts' --passWithNoTests",
|
||||
"test:watch": "vitest watch",
|
||||
"test:coverage": "vitest run --coverage",
|
||||
"test:integration": "vitest run src/**/*.int.test.ts"
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
"build:commonjs:watch": "npm run build:commonjs && tsc --module commonjs --moduleResolution node --watch",
|
||||
"lint": "biome check --write",
|
||||
"test": "vitest run",
|
||||
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts'",
|
||||
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts' --passWithNoTests",
|
||||
"test:integration": "vitest run **/*.int.test.ts **/*.integration.test.ts",
|
||||
"test:coverage": "vitest run --coverage",
|
||||
"test:watch": "vitest watch",
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
"typecheck": "tsc --noEmit",
|
||||
"lint": "biome check --write",
|
||||
"test": "vitest run",
|
||||
"test:unit": "DATABASE_URL=postgresql://test:test@localhost:5432/test vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts'",
|
||||
"test:unit": "DATABASE_URL=postgresql://test:test@localhost:5432/test vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts' --passWithNoTests",
|
||||
"test:integration": "vitest run **/*.int.test.ts **/*.integration.test.ts",
|
||||
"test:watch": "vitest watch",
|
||||
"test:coverage": "vitest run --coverage"
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"extends": "./base.json"
|
||||
}
|
|
@ -8,7 +8,7 @@
|
|||
"build": "tsc --build",
|
||||
"lint": "biome check --write",
|
||||
"test": "vitest run",
|
||||
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts'",
|
||||
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts' --passWithNoTests",
|
||||
"test:integration": "vitest run **/*.int.test.ts **/*.integration.test.ts",
|
||||
"test:coverage": "vitest --coverage",
|
||||
"test:ui": "vitest --ui",
|
||||
|
|
Loading…
Reference in New Issue