This commit is contained in:
imccyu
2026-08-13 01:33:31 +08:00
parent 978e573605
commit a7d4cd8e1b
31 changed files with 493 additions and 1243 deletions
+7 -4
View File
@@ -9,10 +9,13 @@ import { describe, expect, it } from 'vitest'
const root = fileURLToPath(new URL('..', import.meta.url))
function clientCssDeclarations(): string[] {
const clientRoot = resolve(root, 'packages/client')
return readdirSync(clientRoot, { withFileTypes: true })
.filter(entry => entry.isDirectory())
.map(entry => resolve(clientRoot, entry.name, 'src/css-modules.d.ts'))
const clientGroups = ['client', 'self-modification']
return clientGroups.flatMap(group => {
const clientRoot = resolve(root, 'packages', group)
return readdirSync(clientRoot, { withFileTypes: true })
.filter(entry => entry.isDirectory())
.map(entry => resolve(clientRoot, entry.name, 'src/css-modules.d.ts'))
})
.filter(existsSync)
.map(file => file.replaceAll(sep, '/'))
.sort()
+1 -1
View File
@@ -197,7 +197,7 @@ describe('the per-slot report budget', () => {
})
describe('the real workspace surface', () => {
it('collects every declared slot with a teachable contract', () => {
it('collects every declared slot with a teachable contract', { timeout: 30_000 }, () => {
const entries = collectSlotEntries(process.cwd())
expect(entries.length).toBeGreaterThan(30)
for (const entry of entries) {