Problem to run tests with command 'npm run test' before code deployments

Hi everyone
Have a problem with test command
Configuration

version: 2.1
orbs:
  node: circleci/node@4.1.0
...
jobs:
  initial-check:
    docker:
    - image: cimg/base:stable
    steps:
    - checkout
    - node/install
    - node/install-packages:
        cache-path: ~/project/node_modules
        override-ci-command: npm install
    - run: npm run test

The code “- run: npm run test” fires error

Test duration: 174 ms
Assertions count: 37 (verbosity: 2.85)
The following leaks were detected:DOMException, structuredClone
Lint: No issues

All tests successful on local machine