MCPcopy Create free account
hub / github.com/chakra-ui/panda / createConfigResult

Function createConfigResult

packages/node/__tests__/diff-engine.test.ts:15–22  ·  view source on GitHub ↗
(config: UserConfig)

Source from the content-addressed store, hash-verified

13}
14
15const createConfigResult = (config: UserConfig) => {
16 const conf = { ...common, config: { ...config, include: [] } }
17
18 const serialized = stringifyJson(conf.config)
19 const deserialize = () => parseJson(serialized)
20
21 return { ...conf, serialized, deserialize } as LoadConfigResult
22}
23
24describe('DiffEngine affecteds', () => {
25 test('add theme.tokens', () => {

Callers 1

Calls 1

stringifyJsonFunction · 0.90

Tested by

no test coverage detected