empty-module.spec.ts 388 B

12345678910111213
  1. import { describe, expect, it } from 'vitest';
  2. describe('empty-module', () => {
  3. it('should have a default export', async () => {
  4. const mod = await import('./empty-module');
  5. expect(mod).toHaveProperty('default');
  6. });
  7. it('should export an empty object as default', async () => {
  8. const mod = await import('./empty-module');
  9. expect(mod.default).toEqual({});
  10. });
  11. });