Gathering detailed insights and metrics for @codeceptjs/helper
Gathering detailed insights and metrics for @codeceptjs/helper
Gathering detailed insights and metrics for @codeceptjs/helper
Gathering detailed insights and metrics for @codeceptjs/helper
npm install @codeceptjs/helper
93.7
Supply Chain
100
Quality
80.3
Maintenance
100
Vulnerability
99.3
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
1 Stars
26 Commits
4 Forks
5 Watching
1 Branches
6 Contributors
Updated on 10 Feb 2024
Minified
Minified + Gzipped
TypeScript (95.64%)
JavaScript (4.36%)
Cumulative downloads
Total Downloads
Last day
-5.9%
43,300
Compared to previous day
Last week
11.6%
224,923
Compared to previous week
Last month
40.2%
919,451
Compared to previous month
Last year
3.4%
7,294,882
Compared to previous year
1
5
Base class for all CodeceptJS helpers. This class has been moved into a separate package to allow other helpers to be extended from it, without requiring main codeceptjs package.
npm i @codeceptjs/helper --save
Create CodeceptJS helper as described in documentation.
1const Helper = require('@codeceptjs/helper'); 2 3class MyHelper extends Helper { 4 // implement custom helper here 5}
Abstract class. Helpers abstracts test execution backends.
Methods of Helper class will be available in tests in I
object.
They provide user-friendly abstracted actions over NodeJS libraries.
Hooks (methods starting with _
) can be used to setup/teardown,
or handle execution flow.
Methods are expected to return a value in order to be wrapped in promise.
config
anyAbstract method to validate config
config
anyReturns any
Sets config for current test
opts
anyHook executed before all tests
Hook executed before each test.
test
Mocha.TestHook executed after each test
Hook provides a test details Executed in the very beginning of a test
test
Mocha.TestHook executed after each passed test
test
Mocha.TestHook executed after each failed test
test
Mocha.TestHook executed before each step
step
CodeceptJS.StepHook executed after each step
step
CodeceptJS.StepHook executed before each suite
suite
Mocha.SuiteHook executed after each suite
suite
Mocha.SuiteHook executed after all tests are executed
suite
Mocha.SuiteAbstract method to provide common interface to accessing helpers internals inside a test.
description
fn
Access another configured helper: this.helpers['AnotherHelper']
Type: any
Print debug message to console (outputs only in debug mode)
msg
stringAbstract method to provide required config options
Returns any
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
Found 2/17 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More