Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: check if generated CTS match committed CTS #107

Merged
merged 7 commits into from
Feb 2, 2022
Merged

Conversation

millotp
Copy link
Collaborator

@millotp millotp commented Jan 26, 2022

🧭 What and Why

To make sure the CTS was correctly generated, we check the git diff after generation, and fail if not correct.
Also harmonize the output path into utils to remove hardcoded path.

@millotp millotp requested a review from a team January 26, 2022 13:16
@millotp millotp self-assigned this Jan 26, 2022
@millotp millotp requested review from eunjae-lee and removed request for a team January 26, 2022 13:16
tests/src/utils.ts Outdated Show resolved Hide resolved
tests/src/utils.ts Outdated Show resolved Hide resolved
Comment on lines 1 to 10
{
"javascript": {
"extension": "test.ts",
"outputFolder": "tests"
},
"java": {
"extension": "test.java",
"outputFolder": "src/test/java/com/algolia"
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing formatting? It should be:

{
  "javascript": {
    "extension": "test.ts",
    "outputFolder": "tests"
  },
  "java": {
    "extension": "test.java",
    "outputFolder": "src/test/java/com/algolia"
  }
}

);
}

export function outputPath({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export function outputPath({
export function getOutputPath({

Otherwise it feels like it's a variable name

@shortcuts
Copy link
Member

Good idea :D

Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NICE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants