Skip to content

Commit e2b61b5

Browse files
authored
test(dart_frog_prod_server): remove unnecessary pubspec.yaml setup (#1250)
1 parent 3171396 commit e2b61b5

File tree

1 file changed

+2
-57
lines changed

1 file changed

+2
-57
lines changed

bricks/dart_frog_prod_server/hooks/test/src/create_external_packages_folder_test.dart

Lines changed: 2 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,8 @@ void main() {
1212
'bundles external dependencies with external dependencies',
1313
() async {
1414
final projectDirectory = Directory.systemTemp.createTempSync();
15-
File(path.join(projectDirectory.path, 'pubspec.yaml'))
16-
.writeAsStringSync(
17-
'''
18-
name: example
19-
version: 0.1.0
20-
environment:
21-
sdk: ^2.17.0
22-
dependencies:
23-
mason: any
24-
foo:
25-
path: ../../foo
26-
dev_dependencies:
27-
test: any
28-
''',
29-
);
3015
File(path.join(projectDirectory.path, 'pubspec.lock'))
31-
.writeAsStringSync(
32-
fooPath,
33-
);
16+
.writeAsStringSync(fooPath);
3417
final copyCalls = <String>[];
3518

3619
await createExternalPackagesFolder(
@@ -57,48 +40,10 @@ dev_dependencies:
5740
"don't bundle internal path dependencies",
5841
() async {
5942
final projectDirectory = Directory.systemTemp.createTempSync();
60-
File(path.join(projectDirectory.path, 'pubspec.yaml'))
61-
.writeAsStringSync(
62-
'''
63-
name: example
64-
version: 0.1.0
65-
environment:
66-
sdk: ^2.17.0
67-
dependencies:
68-
mason: any
69-
foo:
70-
path: ../../foo
71-
bar:
72-
path: packages/bar
73-
dev_dependencies:
74-
test: any
75-
''',
76-
);
7743
File(path.join(projectDirectory.path, 'pubspec.lock'))
78-
.writeAsStringSync(
79-
fooPathWithInternalDependency,
80-
);
44+
.writeAsStringSync(fooPathWithInternalDependency);
8145
final copyCalls = <String>[];
8246

83-
File(
84-
path.join(
85-
projectDirectory.path,
86-
'packages',
87-
'bar',
88-
'pubspec.yaml',
89-
),
90-
)
91-
..createSync(recursive: true)
92-
..writeAsStringSync(
93-
'''
94-
95-
name: bar
96-
version: 0.1.0
97-
environment:
98-
sdk: ^2.17.0
99-
''',
100-
);
101-
10247
await createExternalPackagesFolder(
10348
projectDirectory: projectDirectory,
10449
buildDirectory: Directory(path.join(projectDirectory.path, 'build')),

0 commit comments

Comments
 (0)