Title: installing @angular/localize broke jasmine/types · Issue #48434 · angular/angular · GitHub
Open Graph Title: installing @angular/localize broke jasmine/types · Issue #48434 · angular/angular
X Title: installing @angular/localize broke jasmine/types · Issue #48434 · angular/angular
Description: Deliver web apps with confidence 🚀. Contribute to angular/angular development by creating an account on GitHub.
Open Graph Description: Deliver web apps with confidence 🚀. Contribute to angular/angular development by creating an account on GitHub.
X Description: Deliver web apps with confidence 🚀. Contribute to angular/angular development by creating an account on GitHub.
Opengraph URL: https://github.com/angular/angular
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"installing @angular/localize broke jasmine/types","articleBody":"### Which @angular/* package(s) are the source of the bug?\r\n\r\nlocalize\r\n\r\n### Is this a regression?\r\n\r\nYes\r\n\r\n### Description\r\n\r\nWhen I install `@angular/localize` in newly created angular project, jasmine types (`describe`, `it`, `expect`, `afterAll` etc) are not recognized inside `*.spec.ts`:\r\n\r\nTo reproduce:\r\n```powershell\r\nng new Angular15.net\r\ncd Angular15.net\r\nng add @angular/localize\r\n# code .\r\n```\r\n\r\n(these error messages are in czech - see below for english error messages)\r\n\r\n### Please provide a link to a minimal reproduction of the bug\r\n\r\n```powershell\r\nng new Angular15.net\r\ncd Angular15.net\r\nng add @angular/localize\r\n# code .\r\n```\r\n\r\n### Please provide the exception or error you saw\r\n\r\ndescribe():\r\n```true\r\nCannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig.(2593)\r\n```\r\n\r\nit():\r\n```true\r\nCannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig.(2593)\r\n```\r\n\r\nexpect():\r\n```true\r\nCannot find name 'expect'.(2304)\r\n```\r\n\r\n\r\n### Please provide the environment you discovered this bug in (run `ng version`)\r\n\r\n```true\r\nAngular CLI: 15.0.3\r\nNode: 18.12.1\r\nPackage Manager: yarn 1.22.19\r\nOS: win32 x64\r\n\r\nAngular: 15.0.3\r\n... animations, cli, common, compiler, compiler-cli, core, forms\r\n... localize, platform-browser, platform-browser-dynamic, router\r\n\r\nPackage Version\r\n---------------------------------------------------------\r\n@angular-devkit/architect 0.1500.3\r\n@angular-devkit/build-angular 15.0.3\r\n@angular-devkit/core 15.0.3\r\n@angular-devkit/schematics 15.0.3\r\n@schematics/angular 15.0.3\r\nrxjs 7.5.7\r\ntypescript 4.8.4\r\n```\r\n\r\n\r\n### Anything else?\r\n\r\n`yarn add --dev @types/jasmine@4.3.0`: does not help.\r\n\r\n`yarn test`: tests are executed successfully:\r\n\r\n","author":{"url":"https://github.com/kondelik","@type":"Person","name":"kondelik"},"datePublished":"2022-12-10T13:13:01Z","url":"https://github.com/angular/angular/issues/48434"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:97499e88-d887-1588-834b-e7f1ddbbd3bb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DEA8:2E7EBB:72C71C:92B0E3:6B00E245 |
| html-safe-nonce | 5069e626531a36ee849dbbd7ff1827c367caca210a7c2c854ba2c0f92ebdfe76 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERUE4OjJFN0VCQjo3MkM3MUM6OTJCMEUzOjZCMDBFMjQ1IiwidmlzaXRvcl9pZCI6IjY1MjM0ODI3MTA3ODkzODI3MjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fc40839c6c53064fe8702a24e4404c40dc26210a1c98c37eb844e1891d93eb88 |
| hovercard-subject-tag | repository:24195339 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/angular/angular/issues/48434 |
| twitter:image | https://repository-images.githubusercontent.com/24195339/d4194dc2-d880-43f7-960c-ea30e05c6531 |
| twitter:card | summary_large_image |
| og:image | https://repository-images.githubusercontent.com/24195339/d4194dc2-d880-43f7-960c-ea30e05c6531 |
| og:image:alt | Deliver web apps with confidence 🚀. Contribute to angular/angular development by creating an account on GitHub. |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14 |
| turbo-cache-control | no-cache |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 624179fb8b88d26ba5bba08894eb60a1c5a1d93d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width