Closed leonheess closed 1 year ago
In the pipeline the error is slightly longer:
/usr/local/bin/npm run test:unit
ts-jest[versions] (WARN) Version 4.5.2 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=2.7.0 <4.0.0). Please do not report issues in ts-jest if you are using unsupported versions.
PASS tests/unit/store/xxx.spec.js (11.211s)
> @mic/workflow-center@0.6.10 test:unit
PASS tests/unit/components/xxx.spec.js (7.199s)
> vue-cli-service test:unit
node:internal/process/promises:246
triggerUncaughtException(err, true /* fromPromise */);
^
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "Error: Unable to resolve bare specifier 'xxx' from http://localhost/ (SystemJS Error#8 https://git.io/JvFET#8)".] {
code: 'ERR_UNHANDLED_REJECTION'
}
##[warning]Couldn't find a debug log in the cache or working directory
##[error]Error: Npm failed with return code: 1
Finishing: Run npm run test:unit
Did you solve it @leonheess ?
Subject of the issue
Getting
ts-jest[versions] (WARN) Version 4.5.2 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=2.7.0 <4.0.0). Please do not report issues in ts-jest if you are using unsupported versions.
which makes the tests not run.Dependencies
jest config