Files
Balázs OrbánandGitHub 33db463fe4 chore: upgrade jest (#56909)
### What?

Upgrade jest to its latest version

### Why?

#56899 fails because historically Jest stripped the globals in Node.js, but 28+ isn't doing that anymore. If we upgrade, we don't have to keep track of Node.js globals and when they are added. This will be useful in removing even more polyfills for things that are natively shipped in Node.js now.

### How?

Jest 29 introduced a change to the snapshot format: https://jestjs.io/blog/2022/08/25/jest-29

First, I tried setting the old compat option to not require updating snapshots, but some tests were still failing: https://dev.azure.com/nextjs/next.js/_build/results?buildId=70633&view=logs&j=8af7cf9c-43a1-584d-6f5c-57bad8880974&t=7ae70e63-3625-50f4-6764-5b3e72b4bd7a&l=273 So going through the pain now instead.
2023-10-19 17:38:24 +00:00

163 lines
4.9 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`next.rs api should allow to write app Node.js page to disk: diagnostics 1`] = `[]`;
exports[`next.rs api should allow to write app Node.js page to disk: issues 1`] = `[]`;
exports[`next.rs api should allow to write app Node.js page to disk: rsc diagnostics 1`] = `[]`;
exports[`next.rs api should allow to write app Node.js page to disk: rsc issues 1`] = `[]`;
exports[`next.rs api should allow to write app Node.js route to disk: diagnostics 1`] = `[]`;
exports[`next.rs api should allow to write app Node.js route to disk: issues 1`] = `[]`;
exports[`next.rs api should allow to write app edge page to disk: diagnostics 1`] = `[]`;
exports[`next.rs api should allow to write app edge page to disk: issues 1`] = `[]`;
exports[`next.rs api should allow to write app edge page to disk: rsc diagnostics 1`] = `[]`;
exports[`next.rs api should allow to write app edge page to disk: rsc issues 1`] = `[]`;
exports[`next.rs api should allow to write app edge route to disk: diagnostics 1`] = `[]`;
exports[`next.rs api should allow to write app edge route to disk: issues 1`] = `[]`;
exports[`next.rs api should allow to write pages Node.js api to disk: diagnostics 1`] = `[]`;
exports[`next.rs api should allow to write pages Node.js api to disk: issues 1`] = `[]`;
exports[`next.rs api should allow to write pages Node.js page to disk: data diagnostics 1`] = `[]`;
exports[`next.rs api should allow to write pages Node.js page to disk: data issues 1`] = `[]`;
exports[`next.rs api should allow to write pages Node.js page to disk: diagnostics 1`] = `[]`;
exports[`next.rs api should allow to write pages Node.js page to disk: issues 1`] = `[]`;
exports[`next.rs api should allow to write pages edge api to disk: diagnostics 1`] = `[]`;
exports[`next.rs api should allow to write pages edge api to disk: issues 1`] = `[]`;
exports[`next.rs api should allow to write pages edge page to disk: data diagnostics 1`] = `[]`;
exports[`next.rs api should allow to write pages edge page to disk: data issues 1`] = `[]`;
exports[`next.rs api should allow to write pages edge page to disk: diagnostics 1`] = `[]`;
exports[`next.rs api should allow to write pages edge page to disk: issues 1`] = `[]`;
exports[`next.rs api should allow to write root page to disk: data diagnostics 1`] = `[]`;
exports[`next.rs api should allow to write root page to disk: data issues 1`] = `[]`;
exports[`next.rs api should allow to write root page to disk: diagnostics 1`] = `[]`;
exports[`next.rs api should allow to write root page to disk: issues 1`] = `[]`;
exports[`next.rs api should detect the correct routes: diagnostics 1`] = `
[
{
"category": "NextFeatureTelemetry_category_tbd",
"name": "EVENT_BUILD_FEATURE_USAGE",
"payload": {
"modularizeImports": "true",
},
},
{
"category": "NextFeatureTelemetry_category_tbd",
"name": "EVENT_BUILD_FEATURE_USAGE",
"payload": {
"platform-triplet": "true",
},
},
{
"category": "NextFeatureTelemetry_category_tbd",
"name": "EVENT_BUILD_FEATURE_USAGE",
"payload": {
"skipMiddlewareUrlNormalize": "false",
},
},
{
"category": "NextFeatureTelemetry_category_tbd",
"name": "EVENT_BUILD_FEATURE_USAGE",
"payload": {
"skipTrailingSlashRedirect": "false",
},
},
{
"category": "NextFeatureTelemetry_category_tbd",
"name": "EVENT_BUILD_FEATURE_USAGE",
"payload": {
"swcEmotion": "false",
},
},
{
"category": "NextFeatureTelemetry_category_tbd",
"name": "EVENT_BUILD_FEATURE_USAGE",
"payload": {
"swcExperimentalDecorators": "false",
},
},
{
"category": "NextFeatureTelemetry_category_tbd",
"name": "EVENT_BUILD_FEATURE_USAGE",
"payload": {
"swcImportSource": "false",
},
},
{
"category": "NextFeatureTelemetry_category_tbd",
"name": "EVENT_BUILD_FEATURE_USAGE",
"payload": {
"swcMinify": "true",
},
},
{
"category": "NextFeatureTelemetry_category_tbd",
"name": "EVENT_BUILD_FEATURE_USAGE",
"payload": {
"swcReactRemoveProperties": "false",
},
},
{
"category": "NextFeatureTelemetry_category_tbd",
"name": "EVENT_BUILD_FEATURE_USAGE",
"payload": {
"swcRelay": "false",
},
},
{
"category": "NextFeatureTelemetry_category_tbd",
"name": "EVENT_BUILD_FEATURE_USAGE",
"payload": {
"swcRemoveConsole": "false",
},
},
{
"category": "NextFeatureTelemetry_category_tbd",
"name": "EVENT_BUILD_FEATURE_USAGE",
"payload": {
"swcStyledComponents": "false",
},
},
{
"category": "NextFeatureTelemetry_category_tbd",
"name": "EVENT_BUILD_FEATURE_USAGE",
"payload": {
"transpilePackages": "false",
},
},
{
"category": "NextFeatureTelemetry_category_tbd",
"name": "EVENT_BUILD_FEATURE_USAGE",
"payload": {
"turbotrace": "false",
},
},
]
`;
exports[`next.rs api should detect the correct routes: issues 1`] = `[]`;