fix test path
diff --git a/pkgs/test/test/version_test.dart b/pkgs/test/test/version_test.dart
index be608fe..5989821 100644
--- a/pkgs/test/test/version_test.dart
+++ b/pkgs/test/test/version_test.dart
@@ -13,10 +13,8 @@
 
 void main() {
   test('testVersion is up to date', () {
-    final pubspec = Pubspec.parse(
-      File('pkgs/test/pubspec.yaml').readAsStringSync(),
-      sourceUrl: Uri.file('pkgs/test/pubspec.yaml'),
-    );
+    final file = File('pubspec.yaml');
+    final pubspec = Pubspec.parse(file.readAsStringSync(), sourceUrl: file.uri);
     expect(pubspec.version.toString(), testVersion);
   });
 }