Pure-function module that mirrors crates/manager-core/src/authz.rs and lets dashboard pages decide which create / edit / delete affordances to render. Widens the vitest include so the truth-table test runs. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
16 lines
456 B
TypeScript
16 lines
456 B
TypeScript
// Vitest config for unit-testing the Rhai parser / symbol table /
|
|
// formatter. Kept separate from vite.config.ts because the dev/build
|
|
// pipeline doesn't depend on a test runner.
|
|
//
|
|
// Tests use explicit `import { describe, it, expect } from 'vitest'`
|
|
// to keep globals out of the type environment.
|
|
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
include: ['src/lib/**/*.test.ts'],
|
|
environment: 'node'
|
|
}
|
|
});
|