How to run a single...
 
Notifications
Clear all

[Solved] How to run a single test for Lightning Web Component

2 Posts
1 Users
0 Likes
307 Views
Posts: 205
 CWL
Admin
Issue starter
(@cwl)
Member
Joined: 11 years ago

How do you just run a single test instead of all tests at once which is normally the default?

Issue Tags
lwc
1 Reply
Posts: 205
 CWL
Admin
Issue starter
(@cwl)
Member
Joined: 11 years ago

You can pass a file name after your script name like below:

npm run test:unit mycomponent.test.js

Reply
Share: