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 4fcd9d5 commit 6ca7bf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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 },
});
}
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5469,7 +5469,7 @@ relateurl@^0.2.7:
resolved "https://registry.yarnpkg.com/relateurl/-/relateurl-0.2.7.tgz#54dbf377e51440aca90a4cd274600d3ff2d888a9"
integrity sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==

remark-gfm@^3:
remark-gfm@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/remark-gfm/-/remark-gfm-3.0.1.tgz#0b180f095e3036545e9dddac0e8df3fa5cfee54f"
integrity sha512-lEFDoi2PICJyNrACFOfDD3JlLkuSbOa5Wd8EPt06HUdptv8Gn0bxYTdbU/XXQ3swAPkEaGxxPN9cbnMHvVu1Ig==
Expand Down

0 comments on commit 6ca7bf0

Please sign in to comment.