Title: Fix Jest ES module import for @faker-js/faker v10+ by Copilot · Pull Request #4302 · github/vscode-codeql · GitHub
Open Graph Title: Fix Jest ES module import for @faker-js/faker v10+ by Copilot · Pull Request #4302 · github/vscode-codeql
X Title: Fix Jest ES module import for @faker-js/faker v10+ by Copilot · Pull Request #4302 · github/vscode-codeql
Description: The upgrade to @faker-js/faker 10.3.0 introduced ES module imports that Jest couldn't transform, causing SyntaxError: Cannot use import statement outside a module in test files. Changes Added @faker-js to transformScopes in test/jest-config.ts to enable Jest transformation of the faker package Fixed typo in comment: "pacakges" → "packages" The faker v10+ package ships with "type": "module" and requires explicit inclusion in Jest's transform configuration alongside other ES module dependencies like @microsoft and @octokit. 💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
Open Graph Description: The upgrade to @faker-js/faker 10.3.0 introduced ES module imports that Jest couldn't transform, causing SyntaxError: Cannot use import statement outside a module in test files. Changes Added ...
X Description: The upgrade to @faker-js/faker 10.3.0 introduced ES module imports that Jest couldn't transform, causing SyntaxError: Cannot use import statement outside a module in test files. Changes Ad...
Opengraph URL: https://github.com/github/vscode-codeql/pull/4302
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:d48b54d9-626f-b560-04be-ad4ad057201e |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | EDBE:E89C2:58A83:79CC3:6A6165EF |
| html-safe-nonce | 78147c021124c9f774e9a2e4b1ea386b7f1f96cdbf80fa4beb7d9f9203af4cd4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREJFOkU4OUMyOjU4QTgzOjc5Q0MzOjZBNjE2NUVGIiwidmlzaXRvcl9pZCI6IjY3ODczMzg0NDc0NDYxNzMxNjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 10a2c23b84cd7a0f437c0dcf3fcafd927f5fa2877110f151c800adf7e01beb95 |
| hovercard-subject-tag | pull_request:3276366294 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/github/vscode-codeql/pull/4302/files |
| twitter:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| og:image:alt | The upgrade to @faker-js/faker 10.3.0 introduced ES module imports that Jest couldn't transform, causing SyntaxError: Cannot use import statement outside a module in test files. Changes Added ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a69385f7d268ece7ad25b131bbd70f457024811fc79afcae43785a6849b724e2 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/github/vscode-codeql git https://github.com/github/vscode-codeql.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 211169016 |
| octolytics-dimension-repository_nwo | github/vscode-codeql |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 211169016 |
| octolytics-dimension-repository_network_root_nwo | github/vscode-codeql |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 484cf265a1f970d5c7a5e7c37cb677d8010aa12f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width