How do I point Jest testEnvironment to a node module in StencilJS Config?


I'm trying to set testEnvironment to "jsdom" in stencil.config.ts like this:

<pre class="lang-js prettyprint-override"> testing: { testEnvironment: "jsdom" }

However, running npm test gives me this error:

<pre class="lang-sh prettyprint-override">[ ERROR ] runJest: ● Validation Error: Test environment C:/path/to/my/project/stencil.config.ts/jsdom cannot be found. Make sure the testEnvironment configuration option points to an existing node module. Configuration Documentation: https://jestjs.io/docs/configuration.html

How do I point Jest testEnvironment to a node module in StencilJS Config?

(Stencil version 1.12.2)



  • How do I point Jest testEnvironment to a node module in StencilJS Config?
  • How do I point Jest testEnvironment to a node module in StencilJS Config?
  • Linq query with a Conditional WHERE Clause
  • Remove Textmate Git Bundle
  • Why dealing with Value is faster than with Reference for Struct?
  • Handle tunneled custom routed event
  • How to check if the current repository is the top level git repo
  • How can I find the difference between two times [duplicate]
  • Creating and managing two independent random number sequences
  • XtraGrid - Export To Excel
  • Google Geocoding API limit exceeded on cell network, but not on wifi
  • How do I link when building with llvm libraries?
  • Bazel failed to include a external static library .a
  • Use 2D Text into 3D scenes in JavaFX results in blurry texts
  • On unchecking a checkbox trigger an event
  • Threads and Concurrent Modification Exception working with a list
  • Spring annotation @Order
  • Example of using Service Exists MSBuild task in Microsoft.Sdc.Tasks?
  • Auto send email based on the time and email address in database
  • Defer unused CSS
  • Android studio import problems. (Apktool)
  • Javascript inside HTML import not affecting imported HTML
  • C# code can't “see” the methods in my C++ dll
  • Add checkbox dynamically using angular 2
  • Java Collections.shuffle() weird behaviour [closed]
  • Copy and paste data from multiple workbooks to a worksheet in another Workbook
  • Disable account chooser FirebaseUI React
  • SQL Server 2012 not showing unicode character in results
  • Ajax call on Multiple selection in Select box
  • Java .policy file - how to prevent java.util.Date() from being accessible
  • openpyxl - adding new rows in excel file with merged cell existing
  • Create an average of multiple excel chart without the data source
  • using maven pom while creating jar:test-jar some times it says JAR will be empty - no content was ma
  • concise way of flattening multiindex columns
  • How do I add a mouse over tooltip to an Image using .DrawImage()
  • Google App Engine Datastore: Dealing with eventual consistency
  • ssh remote server login script
  • How to call different template for different category archive page in woocommerce
  • Running R's aov() mixed effects model from Python using rpy2
  • No OpKernel was registered to support Op 'Conv2D' with these attrs