Comments (4)
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.
Awesome. Thank you for bringing that up, then. I appreciate it 🙏
from vest.
Welcome! Glad I could help a bit!
from vest.
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)
- Last next release does not include development builds in dist HOT 4
- Debounce HOT 9
- Pending info in summary HOT 7
- Omit without when HOT 5
- `skip` and `only` on the same level HOT 5
- Subscribe HOT 6
- Migration guide example code - eager -> mode HOT 1
- Problem with OmitWhen executing code when condition is true HOT 2
- Done and empty suite HOT 3
- In SvelteKit, all the asynchronous tests below do not work at all. HOT 1
- Cannot find name 'Predicate'. Did you mean 'Predicates'? HOT 5
- Stateless suite HOT 2
- isDate alway fails HOT 7
- Multiple groups using same tests function HOT 2
- Eager mode does not work in a group/omitWhen/skipWhen HOT 5
- Support for nested suites HOT 2
- isNotEmpty on a numeric field HOT 2
- Performance issues on forms with lists of > 150 items HOT 25
- [Bug] isDate returns false for all stings HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vest.