Feat(dx): Cypress to Playwright migration #4346
Annotations
1 error and 2 warnings
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
● Test suite failed to run
Playwright Test needs to be invoked via 'npx playwright test' and excluded from Jest test runs.
Creating one directory for Playwright tests and one for Jest is the recommended way of doing it.
See https://playwright.dev/docs/intro for more information about Playwright Test.
3 | import startup from './support/commands';
4 |
> 5 | test.describe('has title', () => {
| ^
6 | const mockStartupParams = {
7 | activeTheme: {},
8 | lastOpened: Date.now(),
at throwIfRunningInsideJest (../../node_modules/playwright/lib/common/testType.js:259:11)
at TestTypeImpl._describe (../../node_modules/playwright/lib/common/testType.js:103:5)
at Function.describe (../../node_modules/playwright/lib/transform/transform.js:256:12)
at Object.<anonymous> (e2e/themes.spec.ts:5:6)
● Test suite failed to run
Playwright Test needs to be invoked via 'npx playwright test' and excluded from Jest test runs.
Creating one directory for Playwright tests and one for Jest is the recommended way of doing it.
See https://playwright.dev/docs/intro for more information about Playwright Test.
1 | import { test, expect } from '@playwright/test';
2 |
> 3 | test('has title', async ({ page }) => {
| ^
4 | await page.goto('http://localhost:58630/#theme=system&tab=start&action=STARTUP.default');
5 |
6 | // Expect a title "to contain" a substring.
at throwIfRunningInsideJest (../../node_modules/playwright/lib/common/testType.js:259:11)
at TestTypeImpl._createTest (../../node_modules/playwright/lib/common/testType.js:79:5)
at ../../node_modules/playwright/lib/transform/transform.js:256:12
at Object.<anonymous> (e2e/example.spec.ts:3:5)
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
|
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/
|
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/
|
The logs for this run have expired and are no longer available.
Loading