Skip to content

Deprecate the export of package:matcher APIs #1978

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions integration_tests/regression/lib/issue_2142/test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'package:matcher/expect.dart';
import 'package:test/test.dart';
import 'import.dart';

Expand Down
1 change: 1 addition & 0 deletions integration_tests/regression/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ environment:
sdk: ^3.5.0-311.0.dev
resolution: workspace
dependencies:
matcher: any
test: any
1 change: 1 addition & 0 deletions integration_tests/spawn_hybrid/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
path: ^1.8.2
stream_channel: ^2.1.0
dev_dependencies:
matcher: any
other_package:
path: other_package/
test: any
1 change: 1 addition & 0 deletions integration_tests/spawn_hybrid/test/hybrid_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import 'dart:async';

import 'package:async/async.dart';
import 'package:matcher/expect.dart';
import 'package:path/path.dart' as p;
import 'package:stream_channel/stream_channel.dart';
import 'package:test/test.dart';
Expand Down
1 change: 1 addition & 0 deletions integration_tests/spawn_hybrid/test/hybrid_test_io.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ library;

import 'dart:io';

import 'package:matcher/expect.dart';
import 'package:path/path.dart' as p;
import 'package:test/test.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@TestOn('vm')
library;

import 'package:matcher/expect.dart';
import 'package:test/test.dart';

void main() {
Expand Down
1 change: 1 addition & 0 deletions integration_tests/wasm/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ environment:
sdk: ^3.5.0-311.0.dev
resolution: workspace
dev_dependencies:
matcher: any
test: any
1 change: 1 addition & 0 deletions integration_tests/wasm/test/hello_world_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@Retry(2)
library;

import 'package:matcher/expect.dart';
import 'package:test/test.dart';

void main() {
Expand Down
1 change: 1 addition & 0 deletions pkgs/fake_async/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ dependencies:
dev_dependencies:
async: ^2.5.0
dart_flutter_team_lints: ^2.0.0
matcher: any
test: ^1.16.0
1 change: 1 addition & 0 deletions pkgs/fake_async/test/fake_async_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import 'dart:async';

import 'package:clock/clock.dart';
import 'package:fake_async/fake_async.dart';
import 'package:matcher/expect.dart';
import 'package:test/test.dart';

void main() {
Expand Down
3 changes: 3 additions & 0 deletions pkgs/test/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@
version of the `test_api` package, but `flutter test` does not check the
version of packages in the pub solve for user test code.

* Deprecate the export of `package:matcher` APIs. Add an import to
`package:matcher/expect.dart`.

## 1.24.0

* Support the `--compiler` flag, which can be used to configure which compiler
Expand Down
Loading
Loading