Skip to content

Commit

Permalink
feat(spec): add region for the Predict API (#473)
Browse files Browse the repository at this point in the history
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
  • Loading branch information
anghelalexandra and shortcuts authored May 6, 2022
1 parent 394cf60 commit 282d6b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/cts/client/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ export async function generateClientTests(
).start();
const testsBlocks = await loadTests(client);

await createOutputDir({ language, testPath });

if (testsBlocks.length === 0) {
spinner.warn("skipping because tests doesn't exist");
return;
Expand All @@ -81,8 +83,6 @@ export async function generateClientTests(
verbose
).start();

await createOutputDir({ language, testPath });

const { suite: template, ...partialTemplates } = await loadTemplates({
language,
testPath,
Expand Down
2 changes: 1 addition & 1 deletion scripts/formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export async function formatter(
let cmd = '';
switch (language) {
case 'javascript':
cmd = `yarn eslint --ext=ts ${folder} --fix`;
cmd = `yarn eslint --ext=ts ${folder} --fix --no-error-on-unmatched-pattern`;
break;
case 'java':
cmd = `find ${folder} -type f -name "*.java" | xargs java --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
Expand Down
1 change: 1 addition & 0 deletions specs/predict/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ servers:
variables:
region:
enum:
- ue
- ew
default: ew
security:
Expand Down

0 comments on commit 282d6b3

Please sign in to comment.