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

Function emptyConfig

packages/node/__tests__/diff-engine.test.ts:301–311  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

299 test('add first theme.recipe (from zero recipes)', () => {
300 // Start with a config that has NO recipes (eject to skip preset recipes, but provide theme object with tokens to keep theme from being removed)
301 const emptyConfig = (): Config => ({
302 eject: true,
303 outdir: 'styled-system',
304 cwd: '',
305 theme: {
306 tokens: {
307 // Add a token to prevent theme object from being removed entirely
308 colors: { primary: { value: '#000' } },
309 },
310 },
311 })
312
313 const config = emptyConfig() as UserConfig
314 let generator = new Generator(createConfigResult(config))

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected