Files inside of a __tests__ folder inside of an LWC are being deployed

Issue #1444 resolved
Ben Dvorachek created an issue

When deploying a LWC that has a __tests__ folder inside of it, the javascript files inside of that folder get “picked up” by the deployment and added to the bundle being pushed to the server. This is occurring while using an old Metadata style project via the connection manager.

This causes any deployment of an LWC that contains a __tests__ folder to fail.

IC version 2.0.8.7

IntelliJ IDEA 2019.2.3

Comments (4)

  1. Scott Wells repo owner

    Hmmm...I could have sworn that I fixed that. Let me take a look and I'll see what's going on. I'll let you know if I need anything else from you, but hopefully it should be simple to reproduce and fix.

  2. Scott Wells repo owner

    Yep, here it is quite clearly:

    2019-10-09 12:03:48,174 [  36853]  DEBUG - er.ForceComMetadataApiDeployer -   Adding files to the archive: 
    2019-10-09 12:03:48,174 [  36853]  DEBUG - er.ForceComMetadataApiDeployer -     sge_dynamicForm.test.js 
    2019-10-09 12:03:48,179 [  36858]  DEBUG - er.ForceComMetadataApiDeployer -     sge_dynamicForm.js 
    2019-10-09 12:03:48,180 [  36859]  DEBUG - er.ForceComMetadataApiDeployer -     sge_dynamicForm.html 
    2019-10-09 12:03:48,180 [  36859]  DEBUG - er.ForceComMetadataApiDeployer -     sge_dynamicForm.js-meta.xml 
    

    I'll see if I can get a quick fix out for that.

  3. Log in to comment