test: Add basic tests for SnapUIRenderer #57323
main.yml
on: pull_request
Wait for CircleCI workflow status
/
Wait for CircleCI workflow status
34m 14s
Build storybook
/
Build storybook
2m 42s
Build beta
/
Build beta
8s
Matrix: Run tests / Unit tests
Matrix: Validate lavamoat policy webapp / Validate lavamoat policy webapp
Lint workflows
/
Lint workflows
6s
Test lint shellcheck
/
Test lint shellcheck
7s
Test lint
/
Test lint
6m 30s
Test lint changelog
/
Test lint changelog
1m 37s
Test lint lockfile
/
Test lint lockfile
2m 5s
Test yarn dedupe
/
Test yarn dedupe
2m 9s
Test deps depcheck
/
Test deps depcheck
1m 47s
Test storybook
/
Test storybook
8m 5s
Validate lavamoat allow scripts
/
Validate lavamoat allow scripts
1m 36s
Validate lavamoat policy build
/
Validate lavamoat policy build
2m 48s
Run tests
/
Webpack tests
1m 53s
Run tests
/
Integration tests
3m 47s
Test circular deps
/
Test circular dependencies
1m 57s
Test deps audit
/
Test deps audit
1m 51s
Runway
/
Runway
Publish prerelease
/
Publish prerelease
2m 20s
Log merge group failure
/
Log merge group failure
Annotations
7 errors and 10 warnings
Test lint / Test lint:
ui/components/app/snaps/snap-ui-renderer/snap-ui-renderer.test.js#L366
Replace `·label:·'Checkbox',·children:·Checkbox({·name:·'checkbox'·})` with `⏎··············label:·'Checkbox',⏎··············children:·Checkbox({·name:·'checkbox'·}),⏎···········`
|
Test lint / Test lint:
ui/components/app/snaps/snap-ui-renderer/snap-ui-renderer.test.js#L424
Replace `·name:·'checkbox',·type:·'InputChangeEvent',·value:·true` with `⏎················name:·'checkbox',⏎················type:·'InputChangeEvent',⏎················value:·true,⏎·············`
|
Test lint / Test lint
Process completed with exit code 1.
|
Run tests / Unit tests (5)
Process completed with exit code 1.
|
Run tests / Unit tests (2)
The job was canceled because "_5" failed.
|
Run tests / Unit tests (2)
The operation was canceled.
|
All jobs pass
Process completed with exit code 1.
|
Test lint / Test lint:
app/scripts/controllers/swaps/swaps.test.ts#L1265
Some tests seem to be commented
|
Test lint / Test lint:
app/scripts/controllers/swaps/swaps.test.ts#L1286
Some tests seem to be commented
|
Test lint / Test lint:
app/scripts/controllers/swaps/swaps.test.ts#L1306
Some tests seem to be commented
|
Test lint / Test lint:
app/scripts/controllers/swaps/swaps.test.ts#L1390
Some tests seem to be commented
|
Test lint / Test lint:
app/scripts/controllers/swaps/swaps.test.ts#L1406
Some tests seem to be commented
|
Test lint / Test lint:
app/scripts/controllers/swaps/swaps.test.ts#L1429
Some tests seem to be commented
|
Test lint / Test lint:
test/e2e/flask/solana/common-solana.ts#L91
'#fb9f18' Hex color values are not allowed. Consider using design tokens instead. For support reach out to the design system team #metamask-design-system on Slack
|
Test lint / Test lint:
ui/components/app/detected-token/detected-token.js#L117
React Hook useEffect has a missing dependency: 'tokensListDetected'. Either include it or remove the dependency array
|
Test lint / Test lint:
ui/components/app/name/name.stories.tsx#L129
Named exports should not use the name annotation if it is redundant to the name that would be generated by the export name
|
Test lint / Test lint:
ui/components/app/snaps/snap-home-page/snap-home-renderer.js#L49
React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remove the dependency array
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
coverage-integration
|
795 KB |
|
coverage-unit-1
|
1.07 MB |
|
coverage-unit-3
|
1.07 MB |
|
coverage-unit-4
|
1.08 MB |
|
coverage-unit-6
|
1.07 MB |
|
coverage-webpack
|
14.2 KB |
|