You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run test suite on every live reload only on scope that is in the viewport. There's 2 approach based on how test suites got removed on the production code:
Either inline or import test suite in the linked module. This approach rely on tree shaking mechanism in JS bundler.
To make it toolless, use BroadcastChannel to communicate between dev, report, and test environment. For example:
localhost:3000 - dev environment. No test are running (__TEST__ === false). Trigger/send test signal via BroadcastChannel or WebSocket when<render-scope> intersect with viewport
localhost:??? - test environment. It might run in:
headless browser via WebSocket (run in different port i.e localhost:5000)
or just new tab or popup without spawning new browser instance (communicate via BroadcastChannel, run in same port i.e localhost:3000)
localhost:3000/.well-known/test-report or inside debug-panel #44 - view and control how test being run
The text was updated successfully, but these errors were encountered:
I've decided to use zora for testing both demo and internal implementation and expose a <button>test</button> to manually run the tests. Since use() and scope() are context specific, it must be used inside callback like @build decorator or others. So I plan to expose a lifecycle module specifically (but not limited) for testing.
Run test suite on every live reload only on scope that is in the viewport. There's 2 approach based on how test suites got removed on the production code:
or
<link>
test module. This rely on site generator to remove specific elements based on specific attribute.then site generator (i.e lume) can remove the testing code like
Food for Thought
To make it toolless, use BroadcastChannel to communicate between dev, report, and test environment. For example:
__TEST__ === false
). Trigger/send test signal via BroadcastChannel or WebSocket when<render-scope>
intersect with viewportThe text was updated successfully, but these errors were encountered: