Skip to content

Commit 1944b93

Browse files
committed
update test next app to follow more like the latest generated app
1 parent c0cf85d commit 1944b93

File tree

6 files changed

+190
-343
lines changed

6 files changed

+190
-343
lines changed

integration-tests/fixtures/generate-bundle-stats/nextjs/__snapshots__/nextjs-plugin.test.ts.snap

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Bun Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`Generating nextjs stats 14 matches the snapshot 1`] = `
3+
exports[`Generating nextjs stats 15 matches the snapshot 1`] = `
44
{
55
"assets": ExpectArrayContaining {},
66
"builtAt": Any<Number>,
7-
"bundleName": StringContaining "test-nextjs-v14-client-array-push",
7+
"bundleName": StringContaining "test-nextjs-v15-client-array-push",
88
"bundler": {
99
"name": Any<String>,
1010
"version": Any<String>,
@@ -62,24 +62,3 @@ exports[`Generating nextjs stats 15 matches the snapshot 3`] = `
6262
"version": Any<String>,
6363
}
6464
`;
65-
66-
exports[`Generating nextjs stats 15 matches the snapshot 1`] = `
67-
{
68-
"assets": ExpectArrayContaining {},
69-
"builtAt": Any<Number>,
70-
"bundleName": StringContaining "test-nextjs-v15-client-array-push",
71-
"bundler": {
72-
"name": Any<String>,
73-
"version": Any<String>,
74-
},
75-
"chunks": ExpectArrayContaining {},
76-
"duration": Any<Number>,
77-
"modules": ExpectArrayContaining {},
78-
"outputPath": Any<String>,
79-
"plugin": {
80-
"name": StringMatching "@codecov/nextjs-webpack-plugin",
81-
"version": Any<String>,
82-
},
83-
"version": Any<String>,
84-
}
85-
`;

integration-tests/test-apps/nextjs/app/globals.css

Lines changed: 15 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,33 @@
11
:root {
2-
--max-width: 1100px;
3-
--border-radius: 12px;
4-
--font-mono: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono",
5-
"Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro",
6-
"Fira Mono", "Droid Sans Mono", "Courier New", monospace;
7-
8-
--foreground-rgb: 0, 0, 0;
9-
--background-start-rgb: 214, 219, 220;
10-
--background-end-rgb: 255, 255, 255;
11-
12-
--primary-glow: conic-gradient(
13-
from 180deg at 50% 50%,
14-
#16abff33 0deg,
15-
#0885ff33 55deg,
16-
#54d6ff33 120deg,
17-
#0071ff33 160deg,
18-
transparent 360deg
19-
);
20-
--secondary-glow: radial-gradient(
21-
rgba(255, 255, 255, 1),
22-
rgba(255, 255, 255, 0)
23-
);
24-
25-
--tile-start-rgb: 239, 245, 249;
26-
--tile-end-rgb: 228, 232, 233;
27-
--tile-border: conic-gradient(
28-
#00000080,
29-
#00000040,
30-
#00000030,
31-
#00000020,
32-
#00000010,
33-
#00000010,
34-
#00000080
35-
);
36-
37-
--callout-rgb: 238, 240, 241;
38-
--callout-border-rgb: 172, 175, 176;
39-
--card-rgb: 180, 185, 188;
40-
--card-border-rgb: 131, 134, 135;
2+
--background: #ffffff;
3+
--foreground: #171717;
414
}
425

436
@media (prefers-color-scheme: dark) {
447
:root {
45-
--foreground-rgb: 255, 255, 255;
46-
--background-start-rgb: 0, 0, 0;
47-
--background-end-rgb: 0, 0, 0;
48-
49-
--primary-glow: radial-gradient(rgba(1, 65, 255, 0.4), rgba(1, 65, 255, 0));
50-
--secondary-glow: linear-gradient(
51-
to bottom right,
52-
rgba(1, 65, 255, 0),
53-
rgba(1, 65, 255, 0),
54-
rgba(1, 65, 255, 0.3)
55-
);
56-
57-
--tile-start-rgb: 2, 13, 46;
58-
--tile-end-rgb: 2, 5, 19;
59-
--tile-border: conic-gradient(
60-
#ffffff80,
61-
#ffffff40,
62-
#ffffff30,
63-
#ffffff20,
64-
#ffffff10,
65-
#ffffff10,
66-
#ffffff80
67-
);
68-
69-
--callout-rgb: 20, 20, 20;
70-
--callout-border-rgb: 108, 108, 108;
71-
--card-rgb: 100, 100, 100;
72-
--card-border-rgb: 200, 200, 200;
8+
--background: #0a0a0a;
9+
--foreground: #ededed;
7310
}
7411
}
7512

76-
* {
77-
box-sizing: border-box;
78-
padding: 0;
79-
margin: 0;
80-
}
81-
8213
html,
8314
body {
8415
max-width: 100vw;
8516
overflow-x: hidden;
8617
}
8718

8819
body {
89-
color: rgb(var(--foreground-rgb));
90-
background: linear-gradient(
91-
to bottom,
92-
transparent,
93-
rgb(var(--background-end-rgb))
94-
)
95-
rgb(var(--background-start-rgb));
20+
color: var(--foreground);
21+
background: var(--background);
22+
font-family: Arial, Helvetica, sans-serif;
23+
-webkit-font-smoothing: antialiased;
24+
-moz-osx-font-smoothing: grayscale;
25+
}
26+
27+
* {
28+
box-sizing: border-box;
29+
padding: 0;
30+
margin: 0;
9631
}
9732

9833
a {

integration-tests/test-apps/nextjs/app/layout.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import type { Metadata } from "next";
2-
import { Inter } from "next/font/google";
32
import "./globals.css";
43

5-
const inter = Inter({ subsets: ["latin"] });
6-
74
export const metadata: Metadata = {
85
title: "Create Next App",
96
description: "Generated by create next app",
@@ -16,7 +13,7 @@ export default function RootLayout({
1613
}>) {
1714
return (
1815
<html lang="en">
19-
<body className={inter.className}>{children}</body>
16+
<body>{children}</body>
2017
</html>
2118
);
2219
}

0 commit comments

Comments
 (0)