Files
purewhiter--mobilegym/tests/noBenchmarkPatchedAppsMarker.test.ts
wehub-resource-sync 2114b14ee0
Sync main into demo / sync (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:35:26 +08:00

21 lines
577 B
TypeScript

import { describe, expect, it } from 'vitest';
import { readFileSync } from 'node:fs';
import { resolve } from 'node:path';
const repoRoot = resolve(__dirname, '..');
describe('deprecated benchmark patch marker', () => {
it('is not referenced by runtime TypeScript code', () => {
const files = [
'os/OSContext.tsx',
'os/types/globals.d.ts',
'apps/X/state.ts',
];
for (const file of files) {
const source = readFileSync(resolve(repoRoot, file), 'utf8');
expect(source, file).not.toContain('_benchmarkPatchedApps');
}
});
});