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
Since Release 1.0.0, none of my tests pass, there is an exemple with a really simple one
Steps to Reproduce
// simplified test caseit('Component rendered',()=>{constelement=createElement('c-info-GSL',{is: InfoGSL});document.body.appendChild(element);expect(element.shadowRoot.querySelector("lightning-record-view-form")).not.toBeNull();});
<!-- HTML for component under test --><template><divclass="acc-container"><lightning-record-view-formrecord-id={recordId}object-api-name="Account"><divclass="slds-grid"><divclass="slds-col slds-size_1-of-2"><lightning-output-fieldfield-name="ID_SL__c"></lightning-output-field></div><divclass="slds-col slds-size_1-of-2"><lightning-output-fieldfield-name="Price__c"></lightning-output-field></div></div></lightning-record-view-form></div></template>
// JS for component under testimport{LightningElement,api}from'lwc';exportdefaultclassAccInfoGSLextendsLightningElement{
@apirecordId;}
// Jest config overrides (if any)
# Command to repro
sfdx-lwc-jest -- --no-cache
Expected Results
pass
Actual Results
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
at Object.getCacheKey (node_modules/@lwc/jest-transformer/src/index.js:116:14)
at ScriptTransformer._getCacheKey (node_modules/@jest/transform/build/ScriptTransformer.js:280:41)
at ScriptTransformer._getFileCachePath (node_modules/@jest/transform/build/ScriptTransformer.js:351:27)
at ScriptTransformer.transformSource (node_modules/@jest/transform/build/ScriptTransformer.js:588:32)
at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:758:40)
at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:815:19)
Version
@salesforce/sfdx-lwc-jest: 1.0.0
Node: 15.4.0
Possible Solution
Additional context/Screenshots
The text was updated successfully, but these errors were encountered:
Description
Since Release 1.0.0, none of my tests pass, there is an exemple with a really simple one
Steps to Reproduce
// Jest config overrides (if any)
# Command to repro sfdx-lwc-jest -- --no-cache
Expected Results
pass
Actual Results
Version
Possible Solution
Additional context/Screenshots
The text was updated successfully, but these errors were encountered: