-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
tests/CTS/config.json
Outdated
{ | ||
"javascript": { | ||
"extension": "test.ts", | ||
"outputFolder": "tests" | ||
}, | ||
"java": { | ||
"extension": "test.java", | ||
"outputFolder": "src/test/java/com/algolia" | ||
} | ||
} |
There was a problem hiding this comment.
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"
}
}
tests/src/utils.ts
Outdated
); | ||
} | ||
|
||
export function outputPath({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export function outputPath({ | |
export function getOutputPath({ |
Otherwise it feels like it's a variable name
Good idea :D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NICE
🧭 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.