Skip to content

Commit

Permalink
fix: save ts-expect-error
Browse files Browse the repository at this point in the history
  • Loading branch information
ZLY201 committed Jun 1, 2024
1 parent 0a54422 commit 8e0afe1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/utils/type-challenges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,7 @@ export async function getQuestionRaw(question: string): Promise<QuestionRaw> {
const cache = localCache.getQuestionCacheJson();
const { lastUpdated } = cache[question] || {};
return deepmerge(DEFAULT_RAW, {
[QuestionFiles.check]: {
content: testCases.replace(/(\/\/).*@ts-expect-error\s+/g, ''),
},
[QuestionFiles.check]: { content: testCases },
[QuestionFiles.template]: { content: lastUpdated ?? template },
});
}

0 comments on commit 8e0afe1

Please sign in to comment.