This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tags": { | |
"allowUnknownTags": true, | |
"dictionaries": ["jsdoc", "closure"] | |
}, | |
"source": { | |
"include": ["force-app/main/default/lwc"], | |
"includePattern": ".+\\.js(doc|x)?$", | |
"excludePattern": "(^|\\/|\\\\)_" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { api, LightningElement } from 'lwc'; | |
/** | |
* An example LWC that adds a classic greeting to any page. | |
* @alias HelloWorld | |
* @extends LightningElement | |
* @hideconstructor | |
* | |
* @example | |
* <c-hello-world name="World"></c-hello-world> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { jestConfig } = require('@salesforce/sfdx-lwc-jest/config'); | |
module.exports = { | |
...jestConfig, | |
modulePathIgnorePatterns: ['<rootDir>/.localdevserver'] | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { jestConfig } = require('@salesforce/sfdx-lwc-jest/config'); | |
module.exports = { | |
...jestConfig, | |
coverageReporters: ['clover', 'json', 'text', 'lcov', 'cobertura'], | |
modulePathIgnorePatterns: ['/.localdevserver'], | |
reporters: [ | |
'default', | |
[ | |
'jest-junit', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- task: PublishCodeCoverageResults@1 | |
displayName: 'Publish Coverage Results' | |
inputs: | |
codeCoverageTool: Cobertura | |
summaryFileLocation: $(Build.SourcesDirectory)/coverage/cobertura-coverage.xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- task: PublishTestResults@2 | |
displayName: 'Publish Test Results' | |
inputs: | |
testResultsFormat: 'JUnit' | |
testResultsFiles: '**/test-results-*.xml' | |
failTaskOnFailedTests: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- bash: npm run test:unit:coverage | |
displayName: 'Execute LWC Unit Tests' | |
workingDirectory: $(Build.SourcesDirectory) | |
continueOnError: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<c-multi-select-combobox | |
label="Options" | |
name="options" | |
options={options} | |
onchange={handleChange} | |
></c-multi-select-combobox> | |
</template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class ParentComponent extends LightningElement { | |
options = [ | |
{ | |
label: 'Option 1', | |
value: 'option1' | |
}, | |
{ | |
label: 'Option 2', | |
value: 'option2' | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<iframe | |
src={url} | |
height={height} | |
width={width} | |
title="iFrame" | |
></iframe> | |
</template> |