mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
[web] consolidate clsi downloads and add zod validation (#33069)
* [web] consolidate clsi downloads and add zod validation * [validation-tools] make prettier happy * [web] make clsiServerId optional * [web] fix type of buildId * [web] gracefully handle ObjectId * [web] fix type of buildId * [monorepo] address review feedback - cjs export - update module path in comments - skip adding ?clsiserverid if not set - allow nested output file download for submissions and add tests * [web] address review feedback * [web] cache one more zod schema * [web] fix unit tests GitOrigin-RevId: 0a1e618955983e035defd6d3c0528b81e0e85c95
This commit is contained in:
8
libraries/validation-tools/testUtils.js
Normal file
8
libraries/validation-tools/testUtils.js
Normal file
@@ -0,0 +1,8 @@
|
||||
function asZodError(...def) {
|
||||
return {
|
||||
name: 'ZodError',
|
||||
_zod: { def },
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { asZodError }
|
||||
Reference in New Issue
Block a user