import test from 'node:test' import assert from 'node:assert/strict' import fs from 'node:fs' import path from 'node:path' const homeFile = path.resolve('pages/home.vue') test('首页使用单一滚动容器并让两行活动分类吸顶', () => { const source = fs.readFileSync(homeFile, 'utf8') assert.match(source, /const TYPEGRID_PAGE_SIZE\s*=\s*8/) assert.match(source, /]*scroll-y[^>]*@scroll="handleScroll"[^>]*@scrolltolower="scrolltolower"/) assert.match(source, /