Skip to content

Test app to show LWC Jest tests running from a feature file.

Notifications You must be signed in to change notification settings

paulroberttaylor/lwc-cucumber

Repository files navigation

Feature: Simple demo of using LWC Jest with Gherkin

    Scenario: Check a button fires an event with a payload

        Given I have a button with an id of myButton
        When I click the button with an id of myButton
        Then a custom event is called
        And the event has a message property of "hello"

HOW TO RUN

  1. npm i

  2. sfdx force:lightning:lwc:test:setup

  3. ./node_modules/.bin/lwc-jest -- --runTestsByPath ./force-app/main/default/lwc/myComponent/__tests__/steps/myComponent.steps.js

WHY USE AN EXTRA LAYER ON TOP OF LWC?

About

Test app to show LWC Jest tests running from a feature file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published