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
13 changes: 13 additions & 0 deletions src/config/config-store.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,19 @@ describe('ConfigStore AI env overrides', () => {
})
})

describe('ConfigStore default ignore list', () => {
it('includes database runtime artifact patterns', () => {
const cfg = defaultConfig()

expect(cfg.watch.ignore).toContain('**/*.db')
expect(cfg.watch.ignore).toContain('**/*.db-wal')
expect(cfg.watch.ignore).toContain('**/*.db-shm')
expect(cfg.watch.ignore).toContain('**/*.sqlite')
expect(cfg.watch.ignore).toContain('**/*.sqlite-wal')
expect(cfg.watch.ignore).toContain('**/*.sqlite-shm')
})
})

describe('ConfigStore server config', () => {
it('provides default server config values', async () => {
const cfg = await loadWithEnv({})
Expand Down
11 changes: 11 additions & 0 deletions src/config/config-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,17 @@ const DEFAULT_IGNORE = [
'**/.nyc_output/**',
'**/*.lcov',

// ─── Database & Runtime Artifacts ───
'**/*.db',
'**/*.db-wal',
'**/*.db-shm',
'**/*.sqlite',
'**/*.sqlite-wal',
'**/*.sqlite-shm',
'**/*.sqlite3',
'**/*.sqlite3-wal',
'**/*.sqlite3-shm',

// ─── macOS ───
'**/.DS_Store',
'**/.com.google.Chrome.*',
Expand Down
Loading