Skip to content
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

Merged
merged 2 commits into from
Oct 12, 2023

Conversation

dlockhart
Copy link
Member

No description provided.

@dlockhart dlockhart requested a review from a team as a code owner October 12, 2023 15:41
"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"
Copy link
Member Author

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.

Copy link
Contributor

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';
Copy link
Member Author

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.

Copy link
Contributor

@svanherk svanherk Oct 12, 2023

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!

Copy link
Member Author

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.

Copy link
Contributor

@svanherk svanherk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@dlockhart dlockhart merged commit b55b05b into main Oct 12, 2023
1 check passed
@dlockhart dlockhart deleted the dlockhart/use-d2l-test-runner branch October 12, 2023 20:40
@ghost
Copy link

ghost commented Oct 12, 2023

🎉 This PR is included in version 2.10.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants