Skip to content

Commit

Permalink
chore: set build.assetsInlineLimit: 0 for SSR tests in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Nov 12, 2024
1 parent b07a8dd commit 77004d0
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/__tests__/fixtures/isomorphic-base-url/dev-server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ const devServer = await createServer({
ignored: ["**/node_modules/**", "**/dist/**", "**/__snapshots__/**"],
},
},
build: {
assetsInlineLimit: 0,
},
});

export default devServer.middlewares.use(async (req, res, next) => {
Expand Down
3 changes: 3 additions & 0 deletions src/__tests__/fixtures/isomorphic-basic/dev-server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ const devServer = await createServer({
ignored: ["**/node_modules/**", "**/dist/**", "**/__snapshots__/**"],
},
},
build: {
assetsInlineLimit: 0,
},
});

export default devServer.middlewares.use(async (req, res, next) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ const devServer = await createServer({
ignored: ["**/node_modules/**", "**/dist/**", "**/__snapshots__/**"],
},
},
build: {
assetsInlineLimit: 0,
},
});

export default devServer.middlewares.use(async (req, res, next) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ const devServer = await createServer({
ignored: ["**/node_modules/**", "**/dist/**", "**/__snapshots__/**"],
},
},
build: {
assetsInlineLimit: 0,
},
});

export default devServer.middlewares.use(async (req, res, next) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ const devServer = await createServer({
ignored: ["**/node_modules/**", "**/dist/**", "**/__snapshots__/**"],
},
},
build: {
assetsInlineLimit: 0,
},
});

export default devServer.middlewares.use(async (req, res, next) => {
Expand Down
3 changes: 3 additions & 0 deletions src/__tests__/fixtures/isomorphic-commonjs-svg/dev-server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ const devServer = await createServer({
ignored: ["**/node_modules/**", "**/dist/**", "**/__snapshots__/**"],
},
},
build: {
assetsInlineLimit: 0,
},
});

export default devServer.middlewares.use(async (req, res, next) => {
Expand Down
3 changes: 3 additions & 0 deletions src/__tests__/fixtures/isomorphic-commonjs/dev-server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ const devServer = await createServer({
ignored: ["**/node_modules/**", "**/dist/**", "**/__snapshots__/**"],
},
},
build: {
assetsInlineLimit: 0,
},
});

export default devServer.middlewares.use(async (req, res, next) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ const devServer = await createServer({
ignored: ["**/node_modules/**", "**/dist/**", "**/__snapshots__/**"],
},
},
build: {
assetsInlineLimit: 0,
},
});

export default devServer.middlewares.use(async (req, res, next) => {
Expand Down
3 changes: 3 additions & 0 deletions src/__tests__/fixtures/isomorphic-glob-import/dev-server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ const devServer = await createServer({
ignored: ["**/node_modules/**", "**/dist/**", "**/__snapshots__/**"],
},
},
build: {
assetsInlineLimit: 0,
},
});

export default devServer.middlewares.use(async (req, res, next) => {
Expand Down
3 changes: 3 additions & 0 deletions src/__tests__/fixtures/isomorphic-marko-dep/dev-server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ const devServer = await createServer({
ignored: ["**/node_modules/**", "**/dist/**", "**/__snapshots__/**"],
},
},
build: {
assetsInlineLimit: 0,
},
});

export default devServer.middlewares.use(async (req, res, next) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ const devServer = await createServer({
ignored: ["**/node_modules/**", "**/dist/**", "**/__snapshots__/**"],
},
},
build: {
assetsInlineLimit: 0,
},
});

export default devServer.middlewares.use(async (req, res, next) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ const devServer = await createServer({
ignored: ["**/node_modules/**", "**/dist/**", "**/__snapshots__/**"],
},
},
build: {
assetsInlineLimit: 0,
},
});

export default devServer.middlewares.use(async (req, res, next) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ const devServer = await createServer({
ignored: ["**/node_modules/**", "**/dist/**", "**/__snapshots__/**"],
},
},
build: {
assetsInlineLimit: 0,
},
});

export default devServer.middlewares.use(async (req, res, next) => {
Expand Down

0 comments on commit 77004d0

Please sign in to comment.