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

test(global-data): Add test for using global data #80

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Zearin
Copy link

@Zearin Zearin commented Apr 30, 2023

TL;DR

Tried adding a test for using global data in a WebC component.

I think it’s close, but I can’t quite get it to work.

Background

I love WebC…but I’m having a dickens of a time trying to accomplish simple things in an existing project.

I thought to myself, “Self, you can’t seem to access global data in your existing project. I bet you could look at the tests for the Eleventy WebC plugin and figure out how it works!”

Just looking at the test titles, I couldn’t find a test that did that. (That said, some of the test titles are more descriptive than others, so it’s possible that I missed something.) So I wrote a new test, but I can’t get it to output the data in any useful way. I just keep getting [object Object].

“Help me, Obi Wan @zachleat: You’re my only hope!”
—Me

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

Successfully merging this pull request may close these issues.

1 participant