Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
A CLI replacement for AVA that works for AVA tests written in Earl Grey
npm i -D ava-earl
Add a test file:
require-macros: ava-earl -> {test, serial-test}
serial-test .baz:
@false(1 == 2)
@not("hello", "world")
@end()
test .foo:
@pass()
@end()
test .bar:
@plan(2)
set-timeout(fn, 100) where fn = ->
@equals(.bar, .bar)
@same({.a, .b}, {.a, .b})
Add ava-earl
to your package.json
scripts:
{
"scripts": {
"test": "agave"
}
}
ava-earl
's executable is calledagave
because it's memorable and has all the letters ofava
and the initials of Earl Grey.
Then run it:
$ npm test
The executable will only search for .eg
files. If you want to use ava
with JavaScript files then use ava
directly. Currently ava-earl
does not support running some tests in Earl Grey and others in JavaScript.
The macro allows you to write tests using the @
symbol to represent t
and it fills out the function details behind the scenes. It also aliases several functions that are builtins for Earl Grey:
in ava | in ava-earl |
---|---|
is | equals |
not | nequals |
true | is-true |
false | is-false |
pass | passes |
Currently it only supports named tests and the minimal amount of boilerplate already here makes me feel that it's really unnecessary to go any further. Not to mention, there might be some added complexity with supporting the named function format.
To learn more about ava
check out their documentation.
MIT © Jake Russo et al
FAQs
AVA CLI for Earl Grey test files.
The npm package ava-earl receives a total of 1 weekly downloads. As such, ava-earl popularity was classified as not popular.
We found that ava-earl demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.