import { readFileSync } from 'fs'; import { join } from 'path'; import { PLACEHOLDER_KEYS } from './label-element.types'; describe('PLACEHOLDER_KEYS', () => { // The frontend compares its own list with this file. it('the fixture file equals PLACEHOLDER_KEYS', () => { const fixture: unknown = JSON.parse( readFileSync( join(__dirname, '../../test/fixtures/placeholder-keys.json'), 'utf8', ), ); expect(fixture).toEqual([...PLACEHOLDER_KEYS]); }); });