Add ESLint and Prettier configuration files, update .gitignore and .npmignore, and enhance CI/CD workflows with testing and release automation

This commit is contained in:
Luke Hagar
2025-09-26 05:16:13 +00:00
parent 8ffbcc25fa
commit 36e21f157e
38 changed files with 4547 additions and 1420 deletions

40
test/setup.ts Normal file
View File

@@ -0,0 +1,40 @@
// Test setup file for Bun
import { afterAll, beforeAll } from 'bun:test';
// Global test setup
beforeAll(() => {
// Set up any global test configuration
console.log('Setting up test environment...');
});
afterAll(() => {
// Clean up after all tests
console.log('Cleaning up test environment...');
});
// Mock console methods to reduce noise in tests
const originalConsoleWarn = console.warn;
const originalConsoleLog = console.log;
beforeAll(() => {
// Suppress console warnings during tests unless explicitly needed
console.warn = (...args: any[]) => {
if (args[0]?.includes?.('Vendor extensions loaded successfully')) {
return; // Suppress this specific message
}
originalConsoleWarn(...args);
};
console.log = (...args: any[]) => {
if (args[0]?.includes?.('Vendor extensions loaded successfully')) {
return; // Suppress this specific message
}
originalConsoleLog(...args);
};
});
afterAll(() => {
// Restore original console methods
console.warn = originalConsoleWarn;
console.log = originalConsoleLog;
});