website refactor
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
* Run with: npm test -- feature-loader.test.ts
|
||||
*/
|
||||
|
||||
import { describe, it, expect, beforeEach } from 'vitest';
|
||||
import { loadFeatureConfig, isFeatureEnabled, getFeatureState, getAllFeatures } from './feature-loader';
|
||||
import { beforeEach, describe, expect, it } from 'vitest';
|
||||
import { getAllFeatures, getFeatureState, isFeatureEnabled, loadFeatureConfig } from './feature-loader';
|
||||
import { FlattenedFeatures } from './feature-types';
|
||||
|
||||
describe('Feature Flag Configuration', () => {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { featureConfig } from './features.config';
|
||||
import {
|
||||
FeatureFlagConfig,
|
||||
FlattenedFeatures,
|
||||
ConfigLoadResult,
|
||||
FeatureState
|
||||
import {
|
||||
ConfigLoadResult,
|
||||
FeatureFlagConfig,
|
||||
FeatureState,
|
||||
FlattenedFeatures
|
||||
} from './feature-types';
|
||||
import { featureConfig } from './features.config';
|
||||
|
||||
/**
|
||||
* Default configuration path relative to project root
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
* Integration test to verify the feature flag system works end-to-end
|
||||
*/
|
||||
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { loadFeatureConfig, isFeatureEnabled, getFeatureState } from './feature-loader';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { getFeatureState, isFeatureEnabled, loadFeatureConfig } from './feature-loader';
|
||||
|
||||
describe('Feature Flag Integration Test', () => {
|
||||
it('should load config and provide correct feature states', async () => {
|
||||
|
||||
Reference in New Issue
Block a user