Skip to content

Commit 8e0afe1

Browse files
committed
fix: save ts-expect-error
1 parent 0a54422 commit 8e0afe1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/utils/type-challenges.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,7 @@ export async function getQuestionRaw(question: string): Promise<QuestionRaw> {
195195
const cache = localCache.getQuestionCacheJson();
196196
const { lastUpdated } = cache[question] || {};
197197
return deepmerge(DEFAULT_RAW, {
198-
[QuestionFiles.check]: {
199-
content: testCases.replace(/(\/\/).*@ts-expect-error\s+/g, ''),
200-
},
198+
[QuestionFiles.check]: { content: testCases },
201199
[QuestionFiles.template]: { content: lastUpdated ?? template },
202200
});
203201
}

0 commit comments

Comments
 (0)