sidlatau / neotest-dart

30 stars 10 forks source link

Add ability to use class names as group descriptions #11

Closed mikeborodin closed 9 months ago

mikeborodin commented 10 months ago

In one of the projects I work on we have class names provided as argument for group descriptions (Object?) like this: It helps avoiding inconsistency when we rename the subject class.

 group(LoginUseCase, () {
    test('should pass', () {
      expect(true, true);
    });
  });

This PR updates the TS query to match the first argument even if it's not a string.

Screenshot:

image
sidlatau commented 9 months ago

Thanks, @mikeborodin!