最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Angular18 Jest unit test run time more than doubles after updating jest.config.test global{...} to transform{...} - Stack Overfl

programmeradmin0浏览0评论

In the package.json, I updated the devDependencies @angular-builders/jest": "^17.0.0" to "@angular-builders/jest": "^18.0.0" and "jest-preset-angular": "^13.1.1" to "jest-preset-angular": "^14.5.1"

I'm working with "@angular/core": "^18.0.0"` `"jest": "^29.7.0",

In the jest.config.test, I updated

`globals: {
    "ts-jest": {
      isolatedModules: true,
 }`

to

`transform: {
    '/\.[jt]sx?$/': ["ts-jest", {isolatedModules: true,}],
  }`

(had transformIgnorePatterns on both to skip node_modules)

ran npm install after update

Individal test run times did not increase

But overall (running npm test) the jest test run time went from 296.773s to 689.213s

Expecting similar performance after update.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论