import test from 'node:test' import assert from 'node:assert/strict' import { readFileSync } from 'node:fs' import { fileURLToPath } from 'node:url' import { dirname, resolve } from 'node:path' const currentDir = dirname(fileURLToPath(import.meta.url)) function readView(name) { return readFileSync(resolve(currentDir, name), 'utf8') } test('source store cards use vertical cover-first layout', () => { const source = readView('SourceStoreView.vue') assert.match(source, /\.source-card\s*\{[\s\S]*grid-template-rows:\s*auto minmax\(0,\s*1fr\);/) assert.doesNotMatch(source, /\.source-card\s*\{[\s\S]*grid-template-columns:\s*112px minmax\(0,\s*1fr\);/) }) test('source store cards do not actively render project summary', () => { const source = readView('SourceStoreView.vue') const template = source.match(/