معرفی شرکت ها


@ava/babel-plugin-throws-helper-4.0.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Babel plugin for protecting against improper use of `t.throws()` in AVA
ویژگی مقدار
سیستم عامل -
نام فایل @ava/babel-plugin-throws-helper-4.0.0
نام @ava/babel-plugin-throws-helper
نسخه کتابخانه 4.0.0
نگهدارنده ['sindresorhus', 'novemberborn']
ایمیل نگهدارنده ['sindresorhus@gmail.com', 'mark@novemberborn.net']
نویسنده James Talmage
ایمیل نویسنده james@talmage.io
آدرس صفحه اصلی git+https://github.com/avajs/babel-plugin-throws-helper.git
آدرس اینترنتی https://github.com/avajs/babel-plugin-throws-helper#readme
مجوز MIT
# babel-plugin-throws-helper [![Build Status](https://travis-ci.org/avajs/babel-plugin-throws-helper.svg?branch=master)](https://travis-ci.org/avajs/babel-plugin-throws-helper) > Babel plugin for protecting against improper use of `t.throws()` in [AVA](https://ava.li) Probably not useful except as an internal plugin for the AVA test runner. [Genesis of the idea.](https://github.com/sindresorhus/eslint-plugin-ava/issues/75) ## Issue > I've seen a lot of incorrect use of the throws assertion in other test runner and even done the mistake myself sometimes. Now I'm beginning to see it with AVA too, so would be nice to be preemptive about it. > > People don't realize they need to wrap their call in a function, so many end up doing `t.throws(foo())` instead of `t.throws(() => foo());`. It's an easy mistake to make. The difficulty is that `t.throws(foo())` is allowed if `foo()` returns a promise or a function. There is no good way to differentiate between the two at runtime. So providing a good error message is going to take some AST transform magic. ## Solution See [`test.js.md`](test.js.md) for the transformation this plugin performs. ## License MIT © [James Talmage](https://github.com/jamestalmage)


زبان مورد نیاز

مقدار نام
12.8.0 Npm


نحوه نصب


نصب پکیج tgz @ava/babel-plugin-throws-helper-4.0.0:

    npm install @ava/babel-plugin-throws-helper-4.0.0.tgz