-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: switch to d2l-test-runner and new vdiffs #82
Conversation
"test:headless": "web-test-runner --files \"./test/**/*.test.js\" --node-resolve", | ||
"test:headless:watch": "web-test-runner --files \"./test/**/*.test.js\" --node-resolve --watch" | ||
"test": "npm run lint && npm run test:unit", | ||
"test:unit": "d2l-test-runner" |
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.
I'd like to rename headless
to unit
since IMO it's a more meaningful name for these types of tests. If others agree, I can make the change in core as well.
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.
Sounds good to me, I've never liked headless
lol
@@ -1,5 +1,5 @@ | |||
import '../<%= hyphenatedName %>.js'; | |||
import { expect, fixture, html } from '@open-wc/testing'; | |||
import { expect, fixture, html } from '@brightspace-ui/testing'; | |||
import { runConstructor } from '@brightspace-ui/core/tools/constructor-test-helper.js'; |
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.
Wondering if this runConstructor
should also move into @brightspace-ui/testing
... seems weird for it to be in core now that we have our own testing library.
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.
Oh yeah it should, we talked about that somewhere else but I guess never made a story for it. Won't be able to remove it from core
for a long time but might as well get started!
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.
I've added runConstructor
to @brightspace-ui/testing
and switched this to use it.
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.
Awesome!
🎉 This PR is included in version 2.10.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.