-
Notifications
You must be signed in to change notification settings - Fork 83
feat: Run tests for sub packages in CI #374
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
Conversation
c6c356b
to
8b40939
Compare
8b40939
to
01cfb98
Compare
5322be5
to
605e08a
Compare
.travis.yml
Outdated
stage: 'Test sub packages' | ||
node_js: '12' | ||
before_install: cd packages/datafile-manager | ||
before_script: tsc |
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.
Is this tsc
necessary?
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.
not needed. i just checked. looks like jest automatically compiles typescript before use
packages/utils/src/index.ts
Outdated
@@ -62,7 +62,7 @@ export function objectValues<K>(obj: { [key: string]: K }): K[] { | |||
return Object.keys(obj).map(key => obj[key]) | |||
} | |||
|
|||
export function objectEntries<K>(obj: { [key: string]: K }): [string, K][] { | |||
export function objectEntries<K>(obj: { [key: string]: K }): (string | K)[][] { |
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.
What is this change?
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.
This is fixing a tsc compilation error. return type was not correct.
packages/logging/package.json
Outdated
@@ -42,6 +42,7 @@ | |||
"devDependencies": { | |||
"@types/jest": "^23.3.12", | |||
"jest": "^23.6.0", | |||
"ts-jest": "^23.10.5" | |||
"ts-jest": "^23.10.5", | |||
"typescript": "^3.7.3" |
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.
Please change typescript dependency versions to "3.3.3333"
in all packages
Summary
Travis CI Only run tests for
optimizely-sdk
package. This PR makes Travis CI run unit tests for other sub packages onnode 12
Test Plan
Tested on Travis CI