Skip to content

Commit 6ca7bf0

Browse files
committed
fix: save ts-expect-error
1 parent 4fcd9d5 commit 6ca7bf0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
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
}

yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -5469,7 +5469,7 @@ relateurl@^0.2.7:
54695469
resolved "https://registry.yarnpkg.com/relateurl/-/relateurl-0.2.7.tgz#54dbf377e51440aca90a4cd274600d3ff2d888a9"
54705470
integrity sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==
54715471

5472-
remark-gfm@^3:
5472+
remark-gfm@^3.0.1:
54735473
version "3.0.1"
54745474
resolved "https://registry.yarnpkg.com/remark-gfm/-/remark-gfm-3.0.1.tgz#0b180f095e3036545e9dddac0e8df3fa5cfee54f"
54755475
integrity sha512-lEFDoi2PICJyNrACFOfDD3JlLkuSbOa5Wd8EPt06HUdptv8Gn0bxYTdbU/XXQ3swAPkEaGxxPN9cbnMHvVu1Ig==

0 commit comments

Comments
 (0)