Skip to content

build(infra): use vitest #93

build(infra): use vitest

build(infra): use vitest #93

Triggered via push March 23, 2024 08:12
Status Failure
Total duration 4m 34s
Artifacts
verify-then-release
4m 24s
verify-then-release
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 1 warning
packages/markdown-loader/lib/article.test.js: packages/markdown-loader/lib/article.test.js#L3
Error: 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. ❯ Object.<anonymous> node_modules/vitest/index.cjs:1:7 ❯ packages/markdown-loader/lib/article.test.js:3:16
packages/markdown-loader/lib/utils/index.test.js: packages/markdown-loader/lib/utils/index.test.js#L3
Error: 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. ❯ Object.<anonymous> node_modules/vitest/index.cjs:1:7 ❯ packages/markdown-loader/lib/utils/index.test.js:3:16
packages/markdown-loader/lib/utils/toc.test.js: packages/markdown-loader/lib/utils/toc.test.js#L3
Error: 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. ❯ Object.<anonymous> node_modules/vitest/index.cjs:1:7 ❯ packages/markdown-loader/lib/utils/toc.test.js:3:16
verify-then-release
Process completed with exit code 1.
verify-then-release
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.