test: integrate cypress
This commit is contained in:
parent
3a4695bc03
commit
781e25909d
21 changed files with 1396 additions and 39 deletions
|
@ -22,16 +22,15 @@ async function exportSwagger() {
|
|||
);
|
||||
|
||||
await Promise.all(
|
||||
filesToImport.map((file) => {
|
||||
return import(file)
|
||||
.then((module) => {
|
||||
if (module.default) {
|
||||
module.default(registry);
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(`Error importing ${file}:`, error);
|
||||
});
|
||||
filesToImport.map(async (file) => {
|
||||
try {
|
||||
const moduleImp = await import(file);
|
||||
if (moduleImp.default) {
|
||||
moduleImp.default(registry);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(`Error importing ${file}:`, error);
|
||||
}
|
||||
}),
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue