GithubHelp home page GithubHelp logo

only.group missing about vest HOT 4 CLOSED

faribauc avatar faribauc commented on September 21, 2024
only.group missing

from vest.

Comments (4)

faribauc avatar faribauc commented on September 21, 2024 1

Hi @ealush,

I'm not looking for a solution to a specific problem at this time, I was really just trying to make ngc-validate work on v5.

I've only just started exploring Vest. 😄

Keep up the good work! And thank you again for your quick replies!

Cheers! 🍻

from vest.

ealush avatar ealush commented on September 21, 2024 1

Awesome. Thank you for bringing that up, then. I appreciate it 🙏

from vest.

faribauc avatar faribauc commented on September 21, 2024 1

Welcome! Glad I could help a bit!

from vest.

ealush avatar ealush commented on September 21, 2024

Hey @faribauc, thank you again for reporting this. I am sorry that you experienced this as well.

In the migration from 4->5 I removed only.group and skip.group. The reason I removed it is that the top-level only/skip functions lacked a lot of granularity, and were remote from the context they apply to (you skip/only groups from the top of the suite, instead of when you actually want them to apply).

I did forget that bit about it in the doc, and I am sorry that you experienced it.

The alternative that I can propose to you is to selectively skip the groups in-context, would that solution work for you? If not, we can work out an alternative approach that could work better.

https://vestjs.dev/docs/writing_tests/advanced_test_features/grouping_tests#1-multi-stage-form

  group('overview_tab', () => {
    skip(currentTab !== 'overview_tab');

    test('productTitle', 'Must be at least 5 chars.', () => {
      enforce(data.productTitle).longerThanOrEquals(5);
    });

    test('productDescription', "Can't be longer than 2500 chars.", () => {
      enforce(data.productDescription).shorterThanOrEquals(2500);
    });

    test('productTags', 'Please provide up to 5 tags', () => {
      enforce(data.tags).lengthEquals(5);
    });
  });

from vest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.