config.test.ts 327 B

12345678910
  1. import { describe, expect, it } from 'vitest';
  2. import { defaultPreferences } from '../src/config';
  3. describe('defaultPreferences immutability test', () => {
  4. // 创建快照,确保默认配置对象不被修改
  5. it('should not modify the config object', () => {
  6. expect(defaultPreferences).toMatchSnapshot();
  7. });
  8. });