
Research
/Security News
Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.
@autometa/runner
Advanced tools
[Full Docs](https://bendat.github.io/autometa/docs/cucumber/test_runner/intro/)
Autometa is under construction. It is currently unstable, poorly documented and not production ready for most cases.
Check back soon.
The following libraries may be considered relatively stable, but may contain bugs or unclear errors
this keyword on a class method. Respectfully a fork of bind-decoratoras constAutometa is an early-development automation framework toolkit, which provides libraries to help automate the automation process on node with libraries to help bootstrap your node automation framework, for API or E2E testing.
The Cucumber Runner lets you build and execute Cucumber style tests with alternative test runners. Currently supported are jest.
Initially inspired by jest-cucumber provides a customizable hybrid approach between cucumbers flat global steps and jest-cucumbers nested spec-like tests.
Dependency injection is supported to make initializing client classes needed to interface with your service or website simple and logic-free, with unique copies provided to each executing tests.
import { Feature, Given, When, Then, Before } from "@autometa/runner";
import { App } from "./my-app";
import * as seedData from "./seed-data";
Before("Seed the database", async ({ dbClient }: App) => {
await dbClient.seed(seedData);
});
Given("a user who wants to log in", () => {});
When("a user submits their credentials", () => {});
Then("a user sees their", () => {});
// tests assembled automatically
Feature("./my-feature.feature");
Steps can also be nested or groups to override higher level steps.
import {
Feature,
Given,
When,
Then,
Before,
ScenarioOutline,
Scenario,
Rule,
} from "@autometa/runner";
import { App } from "./my-app";
import * as seedData from "./seed-data";
Before("Seed the database", async ({ dbClient }: App) => {
await dbClient.seed(seedData);
});
Given("a user who wants to log in", () => {});
When("a user submits their credentials", () => {});
Feature(() => {
Scenario("a user logs in successfully", () => {
Then("a user sees their profile", () => {});
});
Scenario("a user cannot log in without a password", () => {
Then(
"a user is informed they cannot log in",
(expectedError: string) => {}
);
});
Rule("a rule", () => {
ScenarioOutline("some outline", () => {
// define steps unique to `some outline`
});
});
}, "./my-feature.feature");
Implementation of the Builder pattern that allows automatically generating builder classes from a DTO class prototype, with type-safe builder methods in place of DTO properties.
import { dto, Builder } from '@autometa/dto-builder'
export class UserDto {
id: number
username: string,
// default values, factories, dtos
@DTO.dto(AddressDto)
address: AddressDto
@DTO.date()
createdAt: Date
}
// or
// avoid duplicating interface properties
export class UserDto extends DTO<IUser> {}
const UserDtoBuilder = Builder(UserDto);
const user = new UserDtoBuilder().id(1).name('bob').build()
// compilation error, 'first argument of "id" must be a number"
new UserDtoBuilder().id('1').name('bob').build()
// force it to pass a string
new UserDtoBuilder().id('1' as unknown as number).name('bob').build()
FAQs
[Full Docs](https://bendat.github.io/autometa/docs/cucumber/test_runner/intro/)
The npm package @autometa/runner receives a total of 134 weekly downloads. As such, @autometa/runner popularity was classified as not popular.
We found that @autometa/runner 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.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.