Skip to content

feat: add skip button plugin #6

feat: add skip button plugin

feat: add skip button plugin #6

GitHub Actions / Tests annotations (🧪 jest-coverage-report-action) failed Apr 25, 2024 in 0s

Test suite run failed

Failed tests: 0/0. Failed suites: 2/2.

Details

Created failed tests' annotations. To disable them, see documentation.

  ● Test suite failed to run

    Vitest cannot be imported in a CommonJS module using require(). Please use "import" instead.

    If you are using "import" in your source code, then it's possible it was bundled into require() automatically by your bundler. In that case, do not bundle CommonJS output since it will never work with Vitest, or use dynamic import() which is available in all CommonJS modules.

    > 1 | import { afterEach, beforeAll, beforeEach, describe, expect, it } from 'vitest';
        | ^
      2 | import pillarbox from '@srgssr/pillarbox-web';
      3 | import { SkipButtonPlugin } from '../src/skip-button-plugin.js';
      4 |

      at Object.<anonymous> (node_modules/vitest/index.cjs:1:109)
      at Object.require (plugins/skip-button-plugin/test/skip-button-plugin.spec.js:1:1)


  ● Test suite failed to run

    Vitest cannot be imported in a CommonJS module using require(). Please use "import" instead.

    If you are using "import" in your source code, then it's possible it was bundled into require() automatically by your bundler. In that case, do not bundle CommonJS output since it will never work with Vitest, or use dynamic import() which is available in all CommonJS modules.

    > 1 | import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
        | ^
      2 | import SkipButton from '../src/skip-button'; // Adjust path as needed
      3 | import pillarbox from '@srgssr/pillarbox-web';
      4 |

      at Object.<anonymous> (node_modules/vitest/index.cjs:1:109)
      at Object.require (plugins/skip-button-plugin/test/skip-button.spec.js:1:1)