Skip to content

Commit

Permalink
chore: make sure that tests import default loaders from root
Browse files Browse the repository at this point in the history
  • Loading branch information
d-fischer committed Oct 17, 2023
1 parent c6378b3 commit 5def8a4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
8 changes: 6 additions & 2 deletions test/failed-directories.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ import path from 'path';
import { beforeEach, afterAll, describe, expect, test, vi } from 'vitest';
import fs from 'fs';
import fsPromises from 'fs/promises';
import { cosmiconfig, cosmiconfigSync, OptionsSync } from '../src';
import { defaultLoaders } from '../src/defaults';
import {
cosmiconfig,
cosmiconfigSync,
OptionsSync,
defaultLoaders,
} from '../src';
import { isNotMjs, TempDir } from './util';

const temp = new TempDir();
Expand Down
9 changes: 7 additions & 2 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ import {
test,
vi,
} from 'vitest';
import { Loader, Loaders, LoaderSync, OptionsSync } from '../src';
import { defaultLoaders } from '../src/defaults';
import {
Loader,
Loaders,
LoaderSync,
OptionsSync,
defaultLoaders,
} from '../src';
import { Explorer } from '../src/Explorer';
import { ExplorerSync } from '../src/ExplorerSync';
import { InternalOptions, InternalOptionsSync, Options } from '../src/types';
Expand Down
9 changes: 7 additions & 2 deletions test/successful-directories.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ import {
test,
vi,
} from 'vitest';
import { cosmiconfig, cosmiconfigSync, Options, OptionsSync } from '../src';
import { defaultLoaders } from '../src/defaults';
import {
cosmiconfig,
cosmiconfigSync,
Options,
OptionsSync,
defaultLoaders,
} from '../src';
import { TempDir, isNotMjs } from './util';

const temp = new TempDir();
Expand Down

0 comments on commit 5def8a4

Please sign in to comment.