Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions apps/api/src/index.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { describe, expect, it } from 'vitest';

describe('API', () => {
it('should pass basic test', () => {
expect(true).toBe(true);
});
});
7 changes: 7 additions & 0 deletions apps/app/src/index.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { describe, expect, it } from 'vitest';

describe('App', () => {
it('should pass basic test', () => {
expect(true).toBe(true);
});
});
7 changes: 7 additions & 0 deletions apps/web/src/index.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { describe, expect, it } from 'vitest';

describe('Web', () => {
it('should pass basic test', () => {
expect(true).toBe(true);
});
});
33 changes: 14 additions & 19 deletions biome.json
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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"
]
}
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@
"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",
"build:cli": "tsup",
"dev": "turbo run dev",
"clean": "turbo run clean",
"format": "biome format --write .",
"format:fix": "biome format --write .",
"check": "biome check .",
"prepare": "husky install"
},
Expand Down
7 changes: 7 additions & 0 deletions packages/auth/src/index.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { describe, expect, it } from 'vitest';

describe('Auth', () => {
it('should pass basic test', () => {
expect(true).toBe(true);
});
});
7 changes: 7 additions & 0 deletions packages/cms/src/index.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { describe, expect, it } from 'vitest';

describe('CMS', () => {
it('should pass basic test', () => {
expect(true).toBe(true);
});
});
17 changes: 17 additions & 0 deletions packages/core/src/index.test.ts
Original file line number Diff line number Diff line change
@@ -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\]/);
});
});
10 changes: 10 additions & 0 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
7 changes: 7 additions & 0 deletions packages/database/src/index.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { describe, expect, it } from 'vitest';

describe('Database', () => {
it('should pass basic test', () => {
expect(true).toBe(true);
});
});
2 changes: 1 addition & 1 deletion scripts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 16 additions & 0 deletions test-release-feature.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
"composite": false,
"tsBuildInfoFile": null
}
}
}
Loading