Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jun 29, 2024
1 parent e2ec5eb commit d5f55bb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
14 changes: 9 additions & 5 deletions packages/relay/transform/tests/fixture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,19 +123,23 @@ fn fixture_multi_projects(input: PathBuf) {
Config {
projects: vec![
ProjectConfig {
artifact_directory: Path::new(".")
root_dir: Path::new(".")
.canonicalize()
.unwrap()
.join("tests/fixture/multi-projects/project1"),

language: Default::default(),
artifact_directory: Some(
Path::new(".")
.canonicalize()
.unwrap()
.join("tests/projects1"),
),
},
ProjectConfig {
artifact_directory: Path::new(".")
root_dir: Path::new(".")
.canonicalize()
.unwrap()
.join("tests/fixture/multi-projects/project2"),
language: Default::default(),
..Default::default()
},
],
artifact_directory: None,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import __Foo from "$DIR/tests/fixture/multi-projects/project1/__generated__/Foo.graphql.ts";
import __Foo from "$DIR/tests/projects1/__generated__/Foo.graphql.ts";
__Foo;
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import __Foo from "$DIR/tests/fixture/multi-projects/project2/__generated__/Foo.graphql.ts";
import __Foo from "__generated__/Foo.graphql.ts";
__Foo;

0 comments on commit d5f55bb

Please sign in to comment.