-
Notifications
You must be signed in to change notification settings - Fork 1
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
SFX-95: Testing Setup #4
Conversation
- Install nyc, source-map-support, ts-node, nyc-config-typescript. - Add test and tdd scripts to package level. - Add "mocha" types to tsconfig
sinon-chai makes assertions using chai expect and sinon less awkward
This keeps tests isolated.
- Make singleRun = true default. - Change chrome browser to headless
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.
Just a few suggestions and questions, but it otherwise looks good.
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.
If we're not going to move out the files from the test
directory into the devtools repo (at least not yet), then this looks good.
@@ -0,0 +1,20 @@ | |||
import { expect, stub } from '../../utils'; |
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 was a source of great pain for me. I didn't manage to get the same file running in Karma and Mocha. I'm curious if you ran into any issues here.
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.
Plenty of issues.... Every time we added a new tool for testing it would break.
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.
Looks good, solid work!
DESCRIPTION: