Skip to content

Check variable value before update #4432

Check variable value before update

Check variable value before update #4432

Triggered via pull request October 24, 2024 07:05
Status Failure
Total duration 4m 31s
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 ● SetValuesOnVariable › when there is a variable which is connected to the token, we just update the value expect(jest.fn()).toBeCalledWith(...expected) Expected: "309", 8 Number of calls: 0 40 | ] as SingleToken<true, { path: string, variableId: string }>[]; 41 | setValuesOnVariable(variablesInFigma, tokens, collection, mode, baseFontSize); > 42 | expect(mockSetValueForMode).toBeCalledWith(mode, 8); | ^ 43 | }); 44 | 45 | it('should create a new variable when there is no variable which is connected to the token', () => { at Object.<anonymous> (src/plugin/setValuesOnVariable.test.ts:42:33) npm error Lifecycle script `test` failed with error: npm error Error: command failed npm error in workspace: @tokens-studio/[email protected] npm error at location: /home/runner/work/figma-plugin/figma-plugin/packages/tokens-studio-for-figma npm error Lifecycle script `test:coverage` failed with error: npm error Error: command failed npm error in workspace: @tokens-studio/[email protected] npm error at location: /home/runner/work/figma-plugin/figma-plugin/packages/tokens-studio-for-figma npm error Lifecycle script `test:coverage:ci` failed with error: npm error Error: command failed npm error in workspace: @tokens-studio/[email protected] npm error at location: /home/runner/work/figma-plugin/figma-plugin/packages/tokens-studio-for-figma
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/
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/
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/
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 Expired
6.8 MB