-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve generated types for non-fetching routes (#702)
* FIX: type imports not generated correctly for non-fetching endpoints * FIX: route queries break without associated script * FIX: add +page stubs to ensure tests pass * FIX: Spoof route file in test, fix mock file contents * FIX: error message * modified fsPatch to include query files, improved e2e coverage, removed unnecessary mock fom kit.test.ts * Removed incorrect comment. * Remove commented mocks that are not longer needed * FIX: Remove unncessary checks in statSync
- Loading branch information
1 parent
be0d880
commit 83d9340
Showing
10 changed files
with
57 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'houdini-svelte': patch | ||
--- | ||
|
||
FIX: type imports not generated correctly for non-fetching endpoints |
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,5 @@ | ||
query StubLayoutQuery { | ||
user(id: "1", snapshot: "layout-query") { | ||
id | ||
} | ||
} |
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 @@ | ||
// stub file to ensure that types are generated for non-houdini files | ||
// see: https://github.com/HoudiniGraphql/houdini/issues/700 | ||
// should fail on the end to end type check if not generated properly | ||
import type { PageData } from './$houdini'; |
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 @@ | ||
// stub file to ensure that types are generated for non-houdini files | ||
// see: https://github.com/HoudiniGraphql/houdini/issues/700 | ||
// should fail on the end to end type check if not generated properly | ||
import type { LayoutData } from './$houdini'; |
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,5 @@ | ||
query StubPageQuery { | ||
user(id: "1", snapshot: "page-query") { | ||
id | ||
} | ||
} |
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 @@ | ||
// stub file to ensure that types are generated for non-houdini files | ||
// see: https://github.com/HoudiniGraphql/houdini/issues/700 | ||
// should fail on the end to end type check if not generated properly | ||
import type { PageData } from './$houdini'; |
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 @@ | ||
// stub file to ensure that types are generated for non-houdini files | ||
// see: https://github.com/HoudiniGraphql/houdini/issues/700 | ||
// should fail on the end to end type check if not generated properly | ||
import type { PageData } from './$houdini'; |
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
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