| 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)) |