Skip to content

Commit 7d5af75

Browse files
committed
more test fixes
1 parent 4713d41 commit 7d5af75

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

bricks/dart_frog_prod_server/hooks/test/pre_gen_test.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,18 @@ void main() {
174174
File(
175175
path.join(directory.path, 'pubspec.yaml'),
176176
).writeAsStringSync(workspaceRoot);
177+
final server = Directory(
178+
path.join(directory.path, 'server'),
179+
)..createSync();
180+
File(
181+
path.join(server.path, 'pubspec.yaml'),
182+
).writeAsStringSync(workspaceChild);
177183
final exitCalls = <int>[];
178184
await pre_gen.preGen(
179185
context,
180186
buildConfiguration: (_) => configuration,
181187
exit: exitCalls.add,
182-
directory: directory,
188+
directory: server,
183189
runProcess: successRunProcess,
184190
copyPath: (_, __) async {},
185191
);

bricks/dart_frog_prod_server/hooks/test/pubspecs.dart

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,16 @@ dev_dependencies:
6363
const workspaceRoot = '''
6464
name: _
6565
dependencies:
66-
foo:
67-
path: packages/foo
66+
server:
67+
path: packages/server
6868
workspace:
69-
- packages/foo
69+
- packages/server
70+
''';
71+
72+
/// An artificially crafted `pubspec.yaml` file with:
73+
///
74+
/// * Dart workspaces enabled
75+
const workspaceChild = '''
76+
name: server
77+
resolution: workspace
7078
''';

0 commit comments

Comments
 (0)