Examples of how to test Stencil components - GitHub
文章推薦指數: 80 %
Examples of how to test Stencil components. Contribute to jagreehal/stencil-how-to-test-components development by creating an account on GitHub.
Skiptocontent
{{message}}
jagreehal
/
stencil-how-to-test-components
Public
Notifications
Fork
6
Star
58
ExamplesofhowtotestStencilcomponents
58
stars
6
forks
Star
Notifications
Code
Issues
1
Pullrequests
0
Actions
Projects
0
Wiki
Security
Insights
More
Code
Issues
Pullrequests
Actions
Projects
Wiki
Security
Insights
Thiscommitdoesnotbelongtoanybranchonthisrepository,andmaybelongtoaforkoutsideoftherepository.
master
Branches
Tags
Couldnotloadbranches
Nothingtoshow
{{refName}}
default
Couldnotloadtags
Nothingtoshow
{{refName}}
default
100
branches
0
tags
Code
Latestcommit
jagreehal
Mergepullrequest#77fromjagreehal/github-actions
…
2852353
Dec15,2020
Mergepullrequest#77fromjagreehal/github-actions
nowusesgithubactions
2852353
Gitstats
100
commits
Files
Permalink
Failedtoloadlatestcommitinformation.
Type
Name
Latestcommitmessage
Committime
.github/workflows
nowusesgithubactions
Dec15,2020
.vscode
nowusingnewSpecPageanddebuginstructions!
Jun10,2019
src
updated
Nov23,2019
static
initial
Mar1,2018
.eslintrc.json
updated
Nov23,2019
.gitignore
updated
Apr9,2018
.prettierrc.js
updated
Nov23,2019
README.md
nowusingnewSpecPageanddebuginstructions!
Jun10,2019
package-lock.json
udpatedtostencil-2.3.0
Dec15,2020
package.json
udpatedtostencil-2.3.0
Dec15,2020
stencil.config.js
updatedtousepuppeteerfortesting
Oct1,2018
tsconfig.json
updatedtousepuppeteerfortesting
Oct1,2018
Viewcode
ExamplesofhowtotestStencilComponentsusingJestandPuppeteer
EventEmitter
Methods
Props
Snapshots
Addedbonus!
README.md
ExamplesofhowtotestStencilComponentsusingJestandPuppeteer
ExamplesofhowtotestStencilcomponents...bothwhatworksanddoesn't!
EventEmitter
✅canasserteventshavebeenraised
Methods
✅cancallmethodsonelements
Props
✅cansetpropsonelement
✅canchangepropvalue
Snapshots
📷canusesnapshots
Addedbonus!
ForVSCodeuserscheckoutlaunch.jsonfordebuggingtests
{
"version":"0.2.0",
"configurations":[{
"type":"node",
"request":"launch",
"name":"E2ETestCurrentFile",
"cwd":"${workspaceFolder}",
"program":"${workspaceFolder}/node_modules/.bin/stencil",
"args":["test","--e2e","${relativeFile}"],
"console":"integratedTerminal",
"internalConsoleOptions":"neverOpen",
"disableOptimisticBPs":true,
"skipFiles":[
"${workspaceFolder}/node_modules/**/*.js",
"
延伸文章資訊
- 1Stencil Test - OpenGL Wiki
The Stencil Test is a per-sample operation performed after the Fragment Shader. The fragment's st...
- 2Unit Testing Stencil One - Tally Barak
This is nice, but it is not so much of testing. The main goal of unit testing is to verify that t...
- 3The Basics of Unit Testing in StencilJS | Elite Ionic
A unit test is a chunk of code that is written and then executed to test that a single "unit" of ...
- 4Creating Unit Tests for StencilJS Components - YouTube
- 5Examples of how to test Stencil components - GitHub
Examples of how to test Stencil components. Contribute to jagreehal/stencil-how-to-test-component...