Skip to content

Commit

Permalink
Enable library suggestions in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-wiemer committed Oct 17, 2024
1 parent fe7bdc8 commit 5f613d9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/common/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,10 @@ export enum LanguageId {

/** Defined in package.json */
export type ShowOutput = 'always' | 'never';

export enum LibIncludeType {
Disabled = 'Off',
Local = 'Local',
UserAndStandard = 'User and Standard',
All = 'All',
}
9 changes: 8 additions & 1 deletion src/test/config.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
updateConfig,
} from './utils';
import { resolve } from 'path';
import { ConfigKey, ShowOutput } from '../common/global';
import { ConfigKey, LibIncludeType, ShowOutput } from '../common/global';

const rootPath = path.join(__dirname, '..', '..', '..');

Expand Down Expand Up @@ -66,6 +66,13 @@ suite('exclude', () => {
['back to v2 no exclusions', 2, [], true],
];

before(async () => {
await updateConfig<{ librarySuggestions: LibIncludeType }>(
ConfigKey.general,
{ librarySuggestions: LibIncludeType.All },
);
});

tests.forEach(([name, version, exclude, expected]) => {
test(name, async () => {
const snippetText = 'MyExclu';
Expand Down

0 comments on commit 5f613d9

Please sign in to comment.