MCPcopy Create free account
hub / github.com/fontsource/fontsource / readFixture

Function readFixture

packages/core/tests/subsets.test.ts:13–19  ·  view source on GitHub ↗
(
	type: 'nam-files' | 'slices',
	filename: string,
)

Source from the content-addressed store, hash-verified

11);
12
13const readFixture = (
14 type: 'nam-files' | 'slices',
15 filename: string,
16): string => {
17 const fixturePath = join(__dirname, 'fixtures', type, filename);
18 return readFileSync(fixturePath, 'utf-8');
19};
20
21describe('generate subset data', () => {
22 describe('basic', () => {

Callers 1

subsets.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected