Skip to content

fix: update dependencies #1896

fix: update dependencies

fix: update dependencies #1896

Triggered via pull request October 10, 2024 17:52
Status Failure
Total duration 1m 56s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 2 warnings
test/node/msw-api/auto-update-worker.node.test.ts > worker script auto-update > updates the worker script on the postinstall hook: test/node/msw-api/auto-update-worker.node.test.ts#L53
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ test/node/msw-api/auto-update-worker.node.test.ts:53:9
test/node/msw-api/auto-update-worker.node.test.ts > worker script auto-update > updates multiple directories on the postinstall hook: test/node/msw-api/auto-update-worker.node.test.ts#L77
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ test/node/msw-api/auto-update-worker.node.test.ts:77:9
test/node/msw-api/cli/init.node.test.ts > throws if creating a directory under path failed: test/node/msw-api/cli/init.node.test.ts#L176
Error: require() of ES Module /Users/runner/work/msw/msw/node_modules/.pnpm/[email protected]/node_modules/chalk/source/index.js from /Users/runner/work/msw/msw/cli/init.js not supported. Instead change the require of index.js in /Users/runner/work/msw/msw/cli/init.js to a dynamic import() which is available in all CommonJS modules. ❯ Object.<anonymous> cli/init.js:3:15 ❯ test/node/msw-api/cli/init.node.test.ts:176:17 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_REQUIRE_ESM' }
test/node/msw-api/cli/init.node.test.ts > throws when called with "--save" flag and without the public directory: test/node/msw-api/cli/init.node.test.ts#L299
AssertionError: expected [Function] to throw error including 'Failed to copy the worker script: can…' but got 'Command failed: node /Users/runner/wo…' - Expected + Received - Failed to copy the worker script: cannot call the "init" command without a public directory but with the "--save" flag. Either drop the "--save" flag to copy the worker script to all paths listed in "msw.workerDirectory", or add an explicit public directory to the command, like "npx msw init ./public". + Command failed: node /Users/runner/work/msw/msw/cli/index.js init --save + /Users/runner/work/msw/msw/cli/init.js:3 + const chalk = require('chalk') + ^ + + Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/runner/work/msw/msw/node_modules/.pnpm/[email protected]/node_modules/chalk/source/index.js from /Users/runner/work/msw/msw/cli/init.js not supported. + Instead change the require of index.js in /Users/runner/work/msw/msw/cli/init.js to a dynamic import() which is available in all CommonJS modules. + at Object.<anonymous> (/Users/runner/work/msw/msw/cli/init.js:3:15) + at Object.<anonymous> (/Users/runner/work/msw/msw/cli/index.js:30:5) { + code: 'ERR_REQUIRE_ESM' + } + + Node.js v18.20.4 + ❯ test/node/msw-api/cli/init.node.test.ts:299:3
test/node/msw-api/cli/init.node.test.ts > prints the list of failed paths to copy: test/node/msw-api/cli/init.node.test.ts#L277
Error: require() of ES Module /Users/runner/work/msw/msw/node_modules/.pnpm/[email protected]/node_modules/chalk/source/index.js from /Users/runner/work/msw/msw/cli/init.js not supported. Instead change the require of index.js in /Users/runner/work/msw/msw/cli/init.js to a dynamic import() which is available in all CommonJS modules. ❯ Object.<anonymous> cli/init.js:3:15 ❯ test/node/msw-api/cli/init.node.test.ts:277:17 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_REQUIRE_ESM' }
build
Process completed with exit code 1.
build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3, actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build
No files were found with the provided path: test/browser/test-results. No artifacts will be uploaded.