-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b97082
commit b200772
Showing
12 changed files
with
149 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/server/core/tests/base/fixtures/data/bundles/main-server-loaders.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export async function handleRequest() { | ||
// eslint-disable-next-line no-undef | ||
return new Response('handle data'); | ||
return new Response('handle main'); | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/server/core/tests/base/fixtures/data/bundles/user-server-loaders.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export async function handleRequest() { | ||
// eslint-disable-next-line no-undef | ||
return new Response('handle user'); | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/server/core/tests/base/fixtures/render/ssr/bundles/main.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export function serverRender() { | ||
return 'SSR Render'; | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/server/core/tests/base/fixtures/render/ssr/bundles/user.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export function serverRender() { | ||
return 'SSR User Render'; | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/server/core/tests/base/fixtures/render/ssr/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<body> | ||
<h3>Hello Modern</h3> | ||
</body> |
32 changes: 32 additions & 0 deletions
32
packages/server/core/tests/base/fixtures/render/ssr/route.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[ | ||
{ | ||
"urlPath": "/user", | ||
"entryName": "user", | ||
"entryPath": "user.html", | ||
"isSPA": true, | ||
"isStream": false, | ||
"isSSR": true, | ||
"bundle": "bundles/user.js", | ||
"redirect": "", | ||
"responseHeader": [], | ||
"extra": { | ||
"entryName": "main" | ||
}, | ||
"specialHeader": [] | ||
}, | ||
{ | ||
"urlPath": "/", | ||
"entryName": "main", | ||
"entryPath": "index.html", | ||
"isSPA": true, | ||
"isStream": false, | ||
"isSSR": true, | ||
"bundle": "bundles/main.js", | ||
"redirect": "", | ||
"responseHeader": [], | ||
"extra": { | ||
"entryName": "main" | ||
}, | ||
"specialHeader": [] | ||
} | ||
] |
3 changes: 3 additions & 0 deletions
3
packages/server/core/tests/base/fixtures/render/ssr/user.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<body> | ||
<h3>User</h3> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/server/core/tests/base/mock.test.ts → .../core/tests/base/middlewares/mock.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters