浏览代码

Add lint test for JS clients

Loris Leiva 1 年之前
父节点
当前提交
032e0f57cc
共有 1 个文件被更改,包括 11 次插入1 次删除
  1. 11 1
      scripts/snapshot.mjs

+ 11 - 1
scripts/snapshot.mjs

@@ -82,12 +82,22 @@ for (const projectName of projects) {
   // Test clients.
   // Test clients.
   for (const client of CLIENTS) {
   for (const client of CLIENTS) {
     if (`clients:${client}:test` in pkg.scripts) {
     if (`clients:${client}:test` in pkg.scripts) {
-      await executeStep(`test ${client} clients`, async () => {
+      await executeStep(`test ${client} client`, async () => {
         await $`pnpm clients:${client}:test`;
         await $`pnpm clients:${client}:test`;
       });
       });
     }
     }
   }
   }
 
 
+  // Additional JavaScript client tests.
+  if (`clients:js:test` in pkg.scripts) {
+    await executeStep(`lint js client`, async () => {
+      cd(path.join(projectDirectory, 'clients', 'js'));
+      await $`pnpm lint`;
+      await $`pnpm format`;
+      cd(projectDirectory);
+    });
+  }
+
   // Add line break between projects.
   // Add line break between projects.
   echo('');
   echo('');
 }
 }