Skip to content

Commit 6ea8820

Browse files
committed
update e2e test
1 parent fee75e5 commit 6ea8820

File tree

13 files changed

+62
-28
lines changed

13 files changed

+62
-28
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
node_modules
2+
3+
# Output
4+
.output
5+
.vercel
6+
.netlify
7+
.wrangler
8+
/.svelte-kit
9+
/build
10+
11+
# OS
12+
.DS_Store
13+
Thumbs.db
14+
15+
# Env
16+
.env
17+
.env.*
18+
!.env.example
19+
!.env.test
20+
21+
# Vite
22+
vite.config.js.timestamp-*
23+
vite.config.ts.timestamp-*
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

test/browser/features/fixtures/packages/svelte-kit/tsconfig.json renamed to test/browser/features/fixtures/packages/svelte-kit/jsconfig.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,8 @@
22
"extends": "./.svelte-kit/tsconfig.json",
33
"compilerOptions": {
44
"allowJs": true,
5-
"checkJs": true,
6-
"esModuleInterop": true,
7-
"forceConsistentCasingInFileNames": true,
8-
"resolveJsonModule": true,
9-
"skipLibCheck": true,
10-
"sourceMap": true,
11-
"strict": true,
12-
// "moduleResolution": "bundler"
5+
"checkJs": false,
6+
"moduleResolution": "bundler"
137
}
148
// Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias
159
// except $lib which is handled by https://svelte.dev/docs/kit/configuration#files
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
{
2-
"name": "svelte-app",
2+
"name": "svelte-kit",
33
"private": true,
44
"version": "0.0.1",
55
"type": "module",
66
"scripts": {
7-
"build": "vite build"
7+
"dev": "vite dev",
8+
"build": "vite build",
9+
"preview": "vite preview",
10+
"prepare": "svelte-kit sync || echo ''"
811
},
912
"devDependencies": {
10-
"@sveltejs/adapter-auto": "^4.0.0",
13+
"@sveltejs/adapter-auto": "^6.0.0",
1114
"@sveltejs/kit": "^2.16.0",
1215
"@sveltejs/vite-plugin-svelte": "^5.0.0",
1316
"svelte": "^5.0.0",
14-
"vite": "^6.0.0"
17+
"vite": "^6.2.6"
1518
}
1619
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
%sveltekit.head%
8+
</head>
9+
<body data-sveltekit-preload-data="hover">
10+
<div style="display: contents">%sveltekit.body%</div>
11+
</body>
12+
</html>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// place files you want to import through the `$lib` alias in this folder.
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
<script>
2-
let { children } = $props();
2+
let { children } = $props();
33
44
import { afterNavigate, beforeNavigate } from '$app/navigation';
5-
import BugsnagPerformance from '@bugsnag/browser-performance';
65
import { SvelteKitRoutingProvider } from '@bugsnag/svelte-kit-performance';
6+
import BugsnagPerformance from '@bugsnag/browser-performance';
77
8-
BugsnagPerformance.start({
9-
apiKey: 'd87bab7258fc1b8c236c1d21a6665634',
10-
routingProvider: new SvelteKitRoutingProvider(beforeNavigate, afterNavigate)
11-
})
8+
// BugsnagPerformance.start({
9+
// apiKey: 'your-api-key',
10+
// routingProvider: new SvelteKitRoutingProvider(beforeNavigate, afterNavigate)
11+
// })
1212
</script>
1313

1414
<nav>
1515
<a href="/">Home</a>
1616
<a href="/contact/1" id="contact">Contact 1</a>
17-
<a href="/contact/2" id="contact-2">Contact 2</a>
18-
<a href="/contact/3" id="contact-3">Contact 3</a>
17+
<a href="/contact/1/profile" id="profile">Contact 1 profile</a>
1918
</nav>
2019

2120
{@render children()}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
<h1>SvelteKit Test</h1>
1+
<h1>Welcome to SvelteKit</h1>
2+
<p>Visit <a href="https://svelte.dev/docs/kit">svelte.dev/docs/kit</a> to read the documentation</p>
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
<script>
2+
const { data } = $props()
3+
4+
</script>
5+
16
<head>
2-
<title>Contact</title>
7+
<title>Contact {data.contactId}</title>
38
</head>
49

510
<h1>Contact</h1>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<h1>Profile</h1>
1+
<h1>Profile page</h1>

0 commit comments

Comments
 (0)