Skip to content

Text type token text string being treated as number and not being set properly in variable #3036

Text type token text string being treated as number and not being set properly in variable

Text type token text string being treated as number and not being set properly in variable #3036

Status Failure
Total duration 4m 19s
Artifacts 1

node.js.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 7 warnings
Transformer Tests
Process completed with exit code 1.
Tests
Process completed with exit code 1.
Test coverage
Error: Command failed: LAUNCHDARKLY_FLAGS=tokenThemes,gitBranchSelector,multiFileSync,tokenFlowButton npx jest --collectCoverageFrom='["src/**/*.{js,jsx,ts,tsx}"]' --coverage --collectCoverage=true --coverageDirectory='./' --coverageReporters='json-summary' --forceExit --detectOpenHandles PASS src/storage/__tests__/GithubTokenStorage.test.ts ● Console console.error undefined 130 | return !!newBranch.data.ref; 131 | } catch (err) { > 132 | console.error(err); | ^ 133 | return false; 134 | } 135 | } at GithubTokenStorage.createBranch (src/storage/GithubTokenStorage.ts:132:15) at runMicrotasks (<anonymous>) at async Object.<anonymous> (src/storage/__tests__/GithubTokenStorage.test.ts:77:12) console.error Error SyntaxError: Unexpected token o in JSON at position 1 at JSON.parse (<anonymous>) at map (/home/runner/work/figma-plugin/figma-plugin/src/storage/GithubTokenStorage.ts:208:35) at Array.map (<anonymous>) at GithubTokenStorage.read (/home/runner/work/figma-plugin/figma-plugin/src/storage/GithubTokenStorage.ts:198:43) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5) at Object.<anonymous> (/home/runner/work/figma-plugin/figma-plugin/src/storage/__tests__/GithubTokenStorage.test.ts:321:12) 270 | } catch (e) { 271 | // Raise error (usually this is an auth error) > 272 | console.error('Error', e); | ^ 273 | return []; 274 | } 275 | } at GithubTokenStorage.read (src/storage/GithubTokenStorage.ts:272:15) at runMicrotasks (<anonymous>) at async Object.<anonymous> (src/storage/__tests__/GithubTokenStorage.test.ts:321:12) console.error Error Error: at Object.<anonymous> (/home/runner/work/figma-plugin/figma-plugin/src/storage/__tests__/GithubTokenStorage.test.ts:546:22) at /home/runner/work/figma-plugin/figma-plugin/node_modules/jest-mock/build/index.js:449:39 at Object.<anonymous> (/home/runner/work/figma-plugin/figma-plugin/node_modules/jest-mock/build/index.js:457:13) at Object.getContent (/home/runner/work/figma-plugin/figma-plugin/node_modules/jest-mock/build/index.js:170:19) at GithubTokenStorage.read (/home/runner/work/figma-plugin/figma-plugin/src/storage/GithubTokenStorage.ts:157:60) at Object.<anonymous> (/home/runner/work/figma-plugin/figma-plugin/src/storage/__tests__/GithubTokenStorage.test.ts:548:34) at Promise.then.completed (/home/runner/work/figma-plugin/figma-plugin/node_modules/jest-circus/build/utils.js:391:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/figma-plugin/figma-plugin/node_modules/jest-circus/build/utils.js:316:10) at _callCircusTest (/home/runner/work/figma-plugin/figma-plugin/node_modules/jest-circus/build/run.js:218:40) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5) at _runTest (/home/runner/work/figma-plugin/figma-plugin/node_modules/jest-circus/build/run.js:155:3) at _runTestsForDescribeBlock (/home/runner/work/figma-plugin/figma-plugin/node_modules/jest-circus/build/run.js:66:9) at _runTestsForDescribeBlock (/home/runner/work/figma-plugin/figma-plugin/node_modules/jest-circus/build/run.js:60:9) at run (/home/runner/work/figma-plugin/figma-plugin/node_modules/jest-circus/build/run.js:25:3) at runAndTransformResultsToJestFormat (/home/runner/work/figma-plugin/figma-plugin/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:170:21) at jestAdapter (/home/runner/work/figma-plugin/figma-plugin/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:82:19) at runTestInternal (/home/runner/work/figma-plugin/figma-plugin/node_mod
Transformer Tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Performance
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Create Package
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/upload-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-node@v1, actions/checkout@v2. 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 uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, 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/
Cypress
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, cypress-io/github-action@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Cypress
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Artifacts

Produced during runtime
Name Size
package Expired
23.1 MB