CLI for Oblique Strategies.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
395 B

  1. import {
  2. describe,
  3. expect,
  4. it,
  5. vi,
  6. } from 'vitest';
  7. import { readFile } from 'fs/promises';
  8. import { prefix, read } from '../file';
  9. vi.mock('fs/promises');
  10. describe('file', () => {
  11. it('reads from the local file system', async () => {
  12. await read('foo');
  13. expect(readFile).toBeCalled();
  14. });
  15. it('exports a prefix', () => {
  16. expect(prefix).toBeTypeOf('string');
  17. });
  18. });