feat: renew mvp
This commit is contained in:
+3
-6
@@ -11,16 +11,13 @@ test('loadConfig supports ht.config.ts defineConfig shape', async () => {
|
||||
import { defineConfig } from 'html-transform'
|
||||
export default defineConfig({
|
||||
prototype: './proto',
|
||||
output: './out',
|
||||
plan: { interactiveReview: true }
|
||||
vision: { captureStates: ['default'] }
|
||||
})
|
||||
`)
|
||||
|
||||
const config = await loadConfig(cwd)
|
||||
|
||||
assert.equal(config.prototypeDir, join(cwd, 'proto'))
|
||||
assert.equal(config.outputDir, join(cwd, 'out'))
|
||||
assert.equal(config.plan.interactiveReview, true)
|
||||
assert.equal(config.project.qualityCommands.lint, 'pnpm lint')
|
||||
assert.equal(config.htDir, join(cwd, '.ht'))
|
||||
assert.deepEqual(config.vision.captureStates, ['default'])
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user