Skip to content

Commit

Permalink
test: set correct environment in test
Browse files Browse the repository at this point in the history
  • Loading branch information
dickermoshe committed Sep 19, 2024
1 parent 9209864 commit 115c4a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/custom_lint/test/src/workspace_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -844,14 +844,19 @@ dependency_overrides:
test('runs offline if possible', () async {
final workingDir =
await createSimpleWorkspace(withPackageConfig: false, [
'custom_lint_builder',
Pubspec(
'custom_lint_builder',
environment: {'sdk': VersionConstraint.parse('^3.0.0')},
),
Pubspec(
'plugin1',
dependencies: {'custom_lint_builder': HostedDependency()},
environment: {'sdk': VersionConstraint.parse('^3.0.0')},
),
Pubspec(
'a',
devDependencies: {'plugin1': HostedDependency()},
environment: {'sdk': VersionConstraint.parse('^3.0.0')},
),
]);

Expand Down

0 comments on commit 115c4a7

Please sign in to comment.