Skip to content

Commit

Permalink
fix build_runner_core tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemac53 committed Oct 8, 2024
1 parent 31f53ff commit b60151a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions build_runner_core/test/generate/resolver_reuse_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ void main() {
await buildStep.canRead(buildStep.inputId.addExtension('.foo'));
// Check that the `.imported.dart` library is still reachable
// through the resolver.
var importedLibrary =
inputLibrary.definingCompilationUnit.libraryImports.firstWhere(
(l) => l.librarySource.uri.path.endsWith('.imported.dart'));
var classNames = importedLibrary.enclosingElement3.classes
var importedLibrary = inputLibrary
.definingCompilationUnit.libraryImports
.firstWhere((l) => l
.importedLibrary!.definingCompilationUnit.source.uri.path
.endsWith('.imported.dart'))
.importedLibrary!;
var classNames = importedLibrary.definingCompilationUnit.classes
.map((c) => c.name)
.toList();
return buildStep.writeAsString(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void main() {
final buildRunner =
config.packages.singleWhere((p) => p.name == 'build_runner_core');

expect(buildRunner.languageVersion, LanguageVersion(3, 5));
expect(buildRunner.languageVersion, LanguageVersion(3, 6));
});
});

Expand Down

0 comments on commit b60151a

Please sign in to comment.