-
Notifications
You must be signed in to change notification settings - Fork 13
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
Migrate tests to Node's built-in test runner #953
Conversation
.eslintrc.js
Outdated
@@ -1,6 +1,6 @@ | |||
module.exports = { | |||
env: { | |||
"mocha": true, | |||
// "mocha": true, |
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.
Why the comment?
.github/workflows/ci.yml
Outdated
- name: Run tests | ||
run: npm run test | ||
# - name: Run tests | ||
# run: npm run test |
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.
?
.github/workflows/ci.yml
Outdated
- name: Run tests | ||
run: npm run test | ||
# - name: Run tests | ||
# run: npm run test |
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.
Same
package.json
Outdated
@@ -100,11 +97,10 @@ | |||
"dependencies": { | |||
"@grpc/grpc-js": "^1.11.1", | |||
"@grpc/proto-loader": "^0.7.13", | |||
"@opentelemetry/api": "^1.8.0", | |||
"@opentelemetry/api": "^1.3.0", |
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.
Why is api lowered to 1.3?
|
||
const error = new Error('test error'); | ||
|
||
Utils.onError(spanMock, error); | ||
|
||
sinon.assert.calledOnce(recordExceptionStub); | ||
sinon.assert.calledWith(recordExceptionStub, error); | ||
assert(recordExceptionStub.mock.callCount() === 1); |
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.
assert.equal
to get better error logs
No description provided.