diff --git a/apps/api/src/index.test.ts b/apps/api/src/index.test.ts new file mode 100644 index 0000000..a0e20e8 --- /dev/null +++ b/apps/api/src/index.test.ts @@ -0,0 +1,7 @@ +import { describe, expect, it } from 'vitest'; + +describe('API', () => { + it('should pass basic test', () => { + expect(true).toBe(true); + }); +}); diff --git a/apps/app/src/index.test.ts b/apps/app/src/index.test.ts new file mode 100644 index 0000000..21736d4 --- /dev/null +++ b/apps/app/src/index.test.ts @@ -0,0 +1,7 @@ +import { describe, expect, it } from 'vitest'; + +describe('App', () => { + it('should pass basic test', () => { + expect(true).toBe(true); + }); +}); diff --git a/apps/web/src/index.test.ts b/apps/web/src/index.test.ts new file mode 100644 index 0000000..006c9cf --- /dev/null +++ b/apps/web/src/index.test.ts @@ -0,0 +1,7 @@ +import { describe, expect, it } from 'vitest'; + +describe('Web', () => { + it('should pass basic test', () => { + expect(true).toBe(true); + }); +}); diff --git a/biome.json b/biome.json index b036bfe..1458389 100644 --- a/biome.json +++ b/biome.json @@ -1,7 +1,16 @@ { - "$schema": "https://biomejs.dev/schemas/1.5.0/schema.json", - "organizeImports": { - "enabled": true + "$schema": "https://biomejs.dev/schemas/2.0.5/schema.json", + "files": { + "ignoreUnknown": false, + "ignore": [ + "**/dist", + "**/build", + "**/.next", + "**/out", + "**/coverage", + "**/node_modules", + "**/.turbo" + ] }, "linter": { "enabled": true, @@ -26,32 +35,18 @@ "indentStyle": "space", "indentWidth": 2, "lineEnding": "lf", - "lineWidth": 100, - "attributePosition": "auto" + "lineWidth": 100 }, "javascript": { "formatter": { "jsxQuoteStyle": "double", "quoteProperties": "asNeeded", - "trailingComma": "es5", + "trailingCommas": "es5", "semicolons": "always", "arrowParentheses": "always", "bracketSpacing": true, "bracketSameLine": false, "quoteStyle": "single" } - }, - "files": { - "ignore": [ - "**/node_modules/**", - "**/dist/**", - "**/.next/**", - "**/out/**", - "**/coverage/**", - "**/.turbo/**", - "**/build/**", - "**/*.min.js", - "**/*.min.css" - ] } } diff --git a/package.json b/package.json index d1e31e3..2e5c2d5 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "scripts": { "analyze": "turbo run analyze", "lint": "turbo run lint", + "lint:fix": "biome check --write .", "typecheck": "turbo run typecheck", "test": "turbo run test", "build": "turbo run build", @@ -28,6 +29,7 @@ "dev": "turbo run dev", "clean": "turbo run clean", "format": "biome format --write .", + "format:fix": "biome format --write .", "check": "biome check .", "prepare": "husky install" }, diff --git a/packages/auth/src/index.test.ts b/packages/auth/src/index.test.ts new file mode 100644 index 0000000..65c55bb --- /dev/null +++ b/packages/auth/src/index.test.ts @@ -0,0 +1,7 @@ +import { describe, expect, it } from 'vitest'; + +describe('Auth', () => { + it('should pass basic test', () => { + expect(true).toBe(true); + }); +}); diff --git a/packages/cms/src/index.test.ts b/packages/cms/src/index.test.ts new file mode 100644 index 0000000..32a8425 --- /dev/null +++ b/packages/cms/src/index.test.ts @@ -0,0 +1,7 @@ +import { describe, expect, it } from 'vitest'; + +describe('CMS', () => { + it('should pass basic test', () => { + expect(true).toBe(true); + }); +}); diff --git a/packages/core/src/index.test.ts b/packages/core/src/index.test.ts new file mode 100644 index 0000000..5ac13a7 --- /dev/null +++ b/packages/core/src/index.test.ts @@ -0,0 +1,17 @@ +import { describe, expect, it } from 'vitest'; +import { formatMessage, validateInput } from './index'; + +describe('Core', () => { + it('should validate input correctly', () => { + expect(validateInput('test')).toBe(true); + expect(validateInput('')).toBe(false); + expect(validateInput(' ')).toBe(false); + }); + + it('should format message with timestamp', () => { + const message = 'Test message'; + const formatted = formatMessage(message); + expect(formatted).toContain(message); + expect(formatted).toMatch(/^\[\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z\]/); + }); +}); diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 5810fa1..a2de591 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -17,4 +17,14 @@ export function validateInput(input: string): boolean { return input.trim().length > 0; } +/** + * Format a message with timestamp for logging + * @param message - The message to format + * @returns Formatted message with timestamp + */ +export function formatMessage(message: string): string { + const timestamp = new Date().toISOString(); + return `[${timestamp}] ${message}`; +} + export * from './types'; diff --git a/packages/database/src/index.test.ts b/packages/database/src/index.test.ts new file mode 100644 index 0000000..37fd722 --- /dev/null +++ b/packages/database/src/index.test.ts @@ -0,0 +1,7 @@ +import { describe, expect, it } from 'vitest'; + +describe('Database', () => { + it('should pass basic test', () => { + expect(true).toBe(true); + }); +}); diff --git a/scripts/index.ts b/scripts/index.ts index 56c11b9..c156f33 100644 --- a/scripts/index.ts +++ b/scripts/index.ts @@ -5,7 +5,7 @@ */ import { readFileSync } from 'node:fs'; -import { join, dirname } from 'node:path'; +import { dirname, join } from 'node:path'; import { fileURLToPath } from 'node:url'; // Get the directory of this script diff --git a/test-release-feature.md b/test-release-feature.md new file mode 100644 index 0000000..be88471 --- /dev/null +++ b/test-release-feature.md @@ -0,0 +1,16 @@ +# Test Release Feature + +This file is created to test the end-to-end release pipeline. + +## Test Scenarios Covered: +1. Feature branch creation and PR flow +2. Conventional commit validation +3. CI/CD pipeline execution +4. Release automation + +## Expected Outcomes: +- PR validation should enforce branch naming +- CI pipeline should run all checks +- Merge to main should trigger release +- Changelog should be auto-generated +- Version should be bumped appropriately \ No newline at end of file diff --git a/tsconfig.build.json b/tsconfig.build.json index 6efd98d..bd78d95 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -5,4 +5,4 @@ "composite": false, "tsBuildInfoFile": null } -} \ No newline at end of file +}