Skip to content

apply linear gradient incase variable reference not resolved #4391

apply linear gradient incase variable reference not resolved

apply linear gradient incase variable reference not resolved #4391

Triggered via pull request September 30, 2024 14:36
Status Failure
Total duration 4m 39s
Artifacts 1

node.js.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 6 warnings
Tests
@tokens-studio/figma-plugin#test: command (/home/runner/work/figma-plugin/figma-plugin/packages/tokens-studio-for-figma) yarn run test exited (1)
Tests
Process completed with exit code 1.
Test coverage
Error: Command failed: cd packages/tokens-studio-for-figma && npm run test:coverage:ci && cd ../.. && mv packages/tokens-studio-for-figma/coverage-summary.json coverage-summary.json npm warn ignoring workspace config at /home/runner/work/figma-plugin/figma-plugin/packages/tokens-studio-for-figma/.npmrc npm warn ignoring workspace config at /home/runner/work/figma-plugin/figma-plugin/packages/tokens-studio-for-figma/.npmrc npm warn ignoring workspace config at /home/runner/work/figma-plugin/figma-plugin/packages/tokens-studio-for-figma/.npmrc ● Can set values on node › changes fill if needed expect(received).toEqual(expected) // deep equality - Expected - 9 + Received + 1 Array [ - Object { - "color": Object { - "b": 0, - "g": 0, - "r": 1, - }, - "opacity": 1, - "type": "SOLID", - }, + undefined, ] 688 | }, 689 | ); > 690 | expect(textNodeMock.fills).toEqual([ | ^ 691 | { 692 | color: { 693 | r: 1, at Object.<anonymous> (src/plugin/__tests__/setValuesOnNode.test.ts:690:32) ● setColorValuesOnTarget › should be able to update the paints on a style expect(received).toEqual(expected) // deep equality - Expected - 9 + Received + 1 Array [ - Object { - "color": Object { - "b": 0, - "g": 0, - "r": 1, - }, - "opacity": 1, - "type": "SOLID", - }, + undefined, ] 62 | expect(mockStyle.description).toEqual('Red'); 63 | > 64 | expect(mockStyle.paints).toEqual([{ | ^ 65 | type: 'SOLID', 66 | opacity: 1, 67 | color: { r: 1, g: 0, b: 0 }, at Object.<anonymous> (src/plugin/__tests__/setColorValuesOnTarget.test.ts:64:30) ● setColorValuesOnTarget › should be able to update the fills on a node expect(received).toEqual(expected) // deep equality - Expected - 9 + Received + 1 Array [ - Object { - "color": Object { - "b": 0, - "g": 0, - "r": 1, - }, - "opacity": 1, - "type": "SOLID", - }, + undefined, ] 77 | await setColorValuesOnTarget({ target: mockNode, token: 'red', key: 'fills' }); 78 | > 79 | expect(mockNode.fills).toEqual([{ | ^ 80 | type: 'SOLID', 81 | opacity: 1, 82 | color: { r: 1, g: 0, b: 0 }, at Object.<anonymous> (src/plugin/__tests__/setColorValuesOnTarget.test.ts:79:28) ● setColorValuesOnTarget › should be able to update the strokes on a node expect(received).toEqual(expected) // deep equality - Expected - 9 + Received + 1 Array [ - Object { - "color": Object { - "b": 0, - "g": 0, - "r": 1, - }, - "opacity": 1, - "type": "SOLID", - }, + undefined, ] 92 | await setColorValuesOnTarget({ target: mockNode, token: 'red', key: 'strokes' }); 93 | > 94 | expect(mockNode.strokes).toEqual([{ | ^ 95 | type: 'SOLID', 96 | opacity: 1, 97 | color: { r: 1, g: 0, b: 0 }, at Object.<anonymous> (src/plugin/__tests__/setColorValuesOnTarget.test.ts:94:30) ● setColorValuesOnTarget › should be able to update the strokes on a node from a border style expect(received).toEqual(expected) // deep equality - Expected - 9 + Received + 1 Array [ - Object { - "color": Object { - "b": 0, - "g": 0, - "r": 1, - }, - "opacity": 1, - "type": "SOLID", - }, + undefined, ] 107 | await setColorValuesOnTarget({ target: mockNode, token: 'border', key: 'strokes' }); 108 |
Performance
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Create Package
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Tests
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Test coverage
The following actions uses node12 which is deprecated and will be forced to run on node16: anuraag016/Jest-Coverage-Diff@master. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Test coverage
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3, anuraag016/Jest-Coverage-Diff@master. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Cypress
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/

Artifacts

Produced during runtime
Name Size
package
6.8 MB