Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into feat/sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Nov 23, 2024
2 parents 12013c7 + dfda95b commit a769460
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 160 deletions.
1 change: 1 addition & 0 deletions test/unit/behaviour.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { createPage, setup, url } from '@nuxt/test-utils/e2e'
await setup({
rootDir: fileURLToPath(new URL('../..', import.meta.url)),
nuxtConfig: {
sourcemap: false,
nitro: {
prerender: {
crawlLinks: false,
Expand Down
163 changes: 3 additions & 160 deletions test/unit/bundle.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('project sizes', () => {
stats.client = await analyzeSizes('**/*.js', publicDir)
expect
.soft(roundToKilobytes(stats.client.totalBytes))
.toMatchInlineSnapshot(`"397k"`)
.toMatchInlineSnapshot(`"270k"`)
expect.soft(stats.client.files.map(f => f.replace(/\..*\.js/, '.js').replace(/_scripts\/.*\.js/, '_scripts/script.js')).sort())
.toMatchInlineSnapshot(`
[
Expand Down Expand Up @@ -81,12 +81,12 @@ describe('project sizes', () => {
stats.server = await analyzeSizes(['**/*.mjs', '!node_modules'], serverDir)
expect
.soft(roundToKilobytes(stats.server.totalBytes))
.toMatchInlineSnapshot(`"456k"`)
.toMatchInlineSnapshot(`"441k"`)

const modules = await analyzeSizes('node_modules/**/*', serverDir)
expect
.soft(roundToKilobytes(modules.totalBytes))
.toMatchInlineSnapshot(`"23172k"`)
.toMatchInlineSnapshot(`"8137k"`)

const packages = modules.files
.filter(m => m.endsWith('package.json'))
Expand All @@ -100,159 +100,8 @@ describe('project sizes', () => {
"@atproto/syntax",
"@atproto/xrpc",
"@babel/parser",
"@opentelemetry/api",
"@opentelemetry/api-logs",
"@opentelemetry/context-async-hooks",
"@opentelemetry/core",
"@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation",
"@opentelemetry/instrumentation-amqplib",
"@opentelemetry/instrumentation-amqplib/node_modules/@opentelemetry/core",
"@opentelemetry/instrumentation-amqplib/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-amqplib/node_modules/@opentelemetry/instrumentation",
"@opentelemetry/instrumentation-amqplib/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@opentelemetry/instrumentation-amqplib/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-connect",
"@opentelemetry/instrumentation-connect/node_modules/@opentelemetry/core",
"@opentelemetry/instrumentation-connect/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-connect/node_modules/@opentelemetry/instrumentation",
"@opentelemetry/instrumentation-connect/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@opentelemetry/instrumentation-connect/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-dataloader",
"@opentelemetry/instrumentation-dataloader/node_modules/@opentelemetry/instrumentation",
"@opentelemetry/instrumentation-dataloader/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@opentelemetry/instrumentation-express",
"@opentelemetry/instrumentation-express/node_modules/@opentelemetry/core",
"@opentelemetry/instrumentation-express/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-express/node_modules/@opentelemetry/instrumentation",
"@opentelemetry/instrumentation-express/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@opentelemetry/instrumentation-express/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-fastify",
"@opentelemetry/instrumentation-fastify/node_modules/@opentelemetry/core",
"@opentelemetry/instrumentation-fastify/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-fastify/node_modules/@opentelemetry/instrumentation",
"@opentelemetry/instrumentation-fastify/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@opentelemetry/instrumentation-fastify/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-fs",
"@opentelemetry/instrumentation-fs/node_modules/@opentelemetry/core",
"@opentelemetry/instrumentation-fs/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-fs/node_modules/@opentelemetry/instrumentation",
"@opentelemetry/instrumentation-fs/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@opentelemetry/instrumentation-generic-pool",
"@opentelemetry/instrumentation-generic-pool/node_modules/@opentelemetry/instrumentation",
"@opentelemetry/instrumentation-generic-pool/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@opentelemetry/instrumentation-graphql",
"@opentelemetry/instrumentation-graphql/node_modules/@opentelemetry/instrumentation",
"@opentelemetry/instrumentation-graphql/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@opentelemetry/instrumentation-hapi",
"@opentelemetry/instrumentation-hapi/node_modules/@opentelemetry/core",
"@opentelemetry/instrumentation-hapi/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-hapi/node_modules/@opentelemetry/instrumentation",
"@opentelemetry/instrumentation-hapi/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@opentelemetry/instrumentation-hapi/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-http",
"@opentelemetry/instrumentation-http/node_modules/@opentelemetry/core",
"@opentelemetry/instrumentation-http/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-http/node_modules/@opentelemetry/instrumentation",
"@opentelemetry/instrumentation-http/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@opentelemetry/instrumentation-http/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-ioredis",
"@opentelemetry/instrumentation-ioredis/node_modules/@opentelemetry/instrumentation",
"@opentelemetry/instrumentation-ioredis/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@opentelemetry/instrumentation-ioredis/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-kafkajs",
"@opentelemetry/instrumentation-kafkajs/node_modules/@opentelemetry/instrumentation",
"@opentelemetry/instrumentation-kafkajs/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@opentelemetry/instrumentation-kafkajs/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-knex",
"@opentelemetry/instrumentation-knex/node_modules/@opentelemetry/instrumentation",
"@opentelemetry/instrumentation-knex/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@opentelemetry/instrumentation-knex/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-koa",
"@opentelemetry/instrumentation-koa/node_modules/@opentelemetry/core",
"@opentelemetry/instrumentation-koa/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-koa/node_modules/@opentelemetry/instrumentation",
"@opentelemetry/instrumentation-koa/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@opentelemetry/instrumentation-koa/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-lru-memoizer",
"@opentelemetry/instrumentation-lru-memoizer/node_modules/@opentelemetry/instrumentation",
"@opentelemetry/instrumentation-lru-memoizer/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@opentelemetry/instrumentation-mongodb",
"@opentelemetry/instrumentation-mongodb/node_modules/@opentelemetry/instrumentation",
"@opentelemetry/instrumentation-mongodb/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@opentelemetry/instrumentation-mongodb/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-mongoose",
"@opentelemetry/instrumentation-mongoose/node_modules/@opentelemetry/core",
"@opentelemetry/instrumentation-mongoose/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-mongoose/node_modules/@opentelemetry/instrumentation",
"@opentelemetry/instrumentation-mongoose/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@opentelemetry/instrumentation-mongoose/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-mysql",
"@opentelemetry/instrumentation-mysql/node_modules/@opentelemetry/instrumentation",
"@opentelemetry/instrumentation-mysql/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@opentelemetry/instrumentation-mysql/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-mysql2",
"@opentelemetry/instrumentation-mysql2/node_modules/@opentelemetry/instrumentation",
"@opentelemetry/instrumentation-mysql2/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@opentelemetry/instrumentation-mysql2/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-nestjs-core",
"@opentelemetry/instrumentation-nestjs-core/node_modules/@opentelemetry/instrumentation",
"@opentelemetry/instrumentation-nestjs-core/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@opentelemetry/instrumentation-nestjs-core/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-pg",
"@opentelemetry/instrumentation-pg/node_modules/@opentelemetry/instrumentation",
"@opentelemetry/instrumentation-pg/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@opentelemetry/instrumentation-pg/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-redis-4",
"@opentelemetry/instrumentation-redis-4/node_modules/@opentelemetry/instrumentation",
"@opentelemetry/instrumentation-redis-4/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@opentelemetry/instrumentation-redis-4/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-tedious",
"@opentelemetry/instrumentation-tedious/node_modules/@opentelemetry/instrumentation",
"@opentelemetry/instrumentation-tedious/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@opentelemetry/instrumentation-tedious/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-undici",
"@opentelemetry/instrumentation-undici/node_modules/@opentelemetry/core",
"@opentelemetry/instrumentation-undici/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/instrumentation-undici/node_modules/@opentelemetry/instrumentation",
"@opentelemetry/instrumentation-undici/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@opentelemetry/redis-common",
"@opentelemetry/resources",
"@opentelemetry/resources/node_modules/@opentelemetry/core",
"@opentelemetry/resources/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/resources/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/sdk-trace-base",
"@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core",
"@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/semantic-conventions",
"@opentelemetry/semantic-conventions",
"@opentelemetry/sql-common",
"@opentelemetry/sql-common/node_modules/@opentelemetry/core",
"@opentelemetry/sql-common/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions",
"@prisma/instrumentation",
"@prisma/instrumentation/node_modules/@opentelemetry/instrumentation",
"@prisma/instrumentation/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@sanity/client",
"@sanity/eventsource",
"@sentry/core",
"@sentry/core/build/esm",
"@sentry/node",
"@sentry/node/build/esm",
"@sentry/node/node_modules/@opentelemetry/core",
"@sentry/node/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions",
"@sentry/node/node_modules/@opentelemetry/instrumentation",
"@sentry/node/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@sentry/node/node_modules/@opentelemetry/semantic-conventions",
"@sentry/nuxt",
"@sentry/nuxt/build/esm",
"@sentry/opentelemetry",
"@sentry/opentelemetry/build/esm",
"@sentry/opentelemetry/node_modules/@opentelemetry/core",
"@sentry/opentelemetry/node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions",
"@sentry/opentelemetry/node_modules/@opentelemetry/instrumentation",
"@sentry/opentelemetry/node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs",
"@sentry/opentelemetry/node_modules/@opentelemetry/semantic-conventions",
"@shikijs/core",
"@shikijs/engine-javascript",
"@shikijs/engine-oniguruma",
Expand Down Expand Up @@ -303,7 +152,6 @@ describe('project sizes', () => {
"feed",
"flat",
"follow-redirects",
"function-bind",
"get-it",
"github-slugger",
"graphemer",
Expand All @@ -320,7 +168,6 @@ describe('project sizes', () => {
"hookable",
"html-void-elements",
"image-meta",
"import-in-the-middle",
"inherits",
"is-absolute-url",
"is-alphabetical",
Expand Down Expand Up @@ -376,14 +223,12 @@ describe('project sizes', () => {
"micromark-util-sanitize-uri",
"micromark-util-subtokenize",
"mimic-response",
"module-details-from-path",
"ms",
"multiformats",
"node-emoji",
"oniguruma-to-es",
"parse-entities",
"parse5",
"path-parse",
"process-nextick-args",
"progress-stream",
"property-information",
Expand All @@ -398,8 +243,6 @@ describe('project sizes', () => {
"remark-mdc",
"remark-parse",
"remark-rehype",
"require-in-the-middle",
"resolve",
"rxjs",
"safe-buffer",
"sax",
Expand Down

0 comments on commit a769460

Please sign in to comment.