We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9a4cfc9 + b1c6abe commit aa5bd7cCopy full SHA for aa5bd7c
packages/theme-check-common/src/test/test-helper.ts
@@ -39,16 +39,19 @@ export function getTheme(themeDesc: MockTheme): Theme {
39
40
export async function check(
41
themeDesc: MockTheme,
42
- checks: CheckDefinition<SourceCodeType>[] = recommended,
+ checks: CheckDefinition[] = recommended,
43
mockDependencies: Partial<Dependencies> = {},
44
checkSettings: ChecksSettings = {},
45
): Promise<Offense[]> {
46
const theme = getTheme(themeDesc);
47
const config: Config = {
48
context: 'theme',
49
settings: { ...checkSettings },
50
- checks: checks,
+ checks,
51
rootUri,
52
+ onError: (err) => {
53
+ throw err;
54
+ },
55
};
56
57
const sections = new Map(
0 commit comments