Przeglądaj źródła

Add lint test for JS clients

Loris Leiva 1 rok temu
rodzic
commit
032e0f57cc
1 zmienionych plików z 11 dodań i 1 usunięć
  1. 11 1
      scripts/snapshot.mjs

+ 11 - 1
scripts/snapshot.mjs

@@ -82,12 +82,22 @@ for (const projectName of projects) {
   // Test clients.
   for (const client of CLIENTS) {
     if (`clients:${client}:test` in pkg.scripts) {
-      await executeStep(`test ${client} clients`, async () => {
+      await executeStep(`test ${client} client`, async () => {
         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.
   echo('');
 }