mirror of
https://github.com/pezkuwichain/pezkuwi-dev.git
synced 2026-04-22 06:47:54 +00:00
fix: update header pattern to allow 'authors & contributors' suffix
This commit is contained in:
@@ -6,7 +6,7 @@ It provides the following -
|
||||
|
||||
1. Browser `window`, `document`, `navigator` (see usage for browser-specific path)
|
||||
2. `jest` functions, specifically `spyOn` (not comprehensive, some will error, some witll noop)
|
||||
3. `expect` functions (not comprehensive, caters for specific polkadot-js usage)
|
||||
3. `expect` functions (not comprehensive, caters for specific pezkuwi-js usage)
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
{
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"bugs": "https://github.com/pezkuwi/dev/issues",
|
||||
"bugs": "https://github.com/pezkuwichain/pezkuwi-dev/issues",
|
||||
"description": "A basic test-functions-as-global library on top of node:test",
|
||||
"engines": {
|
||||
"node": ">=18.14"
|
||||
},
|
||||
"homepage": "https://github.com/pezkuwi/dev/tree/master/packages/dev-test#readme",
|
||||
"homepage": "https://github.com/pezkuwichain/pezkuwi-dev/tree/master/packages/dev-test#readme",
|
||||
"license": "Apache-2.0",
|
||||
"name": "@pezkuwi/dev-test",
|
||||
"repository": {
|
||||
"directory": "packages/dev-test",
|
||||
"type": "git",
|
||||
"url": "https://github.com/pezkuwi/dev.git"
|
||||
"url": "https://github.com/pezkuwichain/pezkuwi-dev.git"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"version": "0.84.2",
|
||||
"version": "0.85.0",
|
||||
"main": "./index.js",
|
||||
"exports": {
|
||||
"./globals.d.ts": "./src/globals.d.ts"
|
||||
|
||||
Vendored
+2
-2
@@ -37,7 +37,7 @@ const stubExpectFnNot = stubObj('expect(...).not', EXPECT_KEYS_FN, {
|
||||
* A helper that wraps a matching function in an ExpectMatcher. This is (currently)
|
||||
* only used/checked for in the calledWith* helpers
|
||||
*
|
||||
* TODO We don't use it in polkadot-js, but a useful enhancement could be for
|
||||
* TODO We don't use it in pezkuwi-js, but a useful enhancement could be for
|
||||
* any of the to* expectations to detect and use those. An example of useful code
|
||||
* in that case:
|
||||
*
|
||||
@@ -197,7 +197,7 @@ function assertIncludes (value: string | unknown[], [check, Clazz]: [string, Fun
|
||||
/**
|
||||
* Sets up the shimmed expect(...) function, including all .to* and .not.to*
|
||||
* functions. This is not comprehensive, rather is contains what we need to
|
||||
* make all polkadot-js usages pass
|
||||
* make all pezkuwi-js usages pass
|
||||
**/
|
||||
export function expect () {
|
||||
const rootMatchers = {
|
||||
|
||||
Vendored
+1
-1
@@ -53,7 +53,7 @@ function extendMock <F extends AnyFn> (mocked: WithMock<F>) {
|
||||
/**
|
||||
* Sets up the jest object. This is certainly not extensive, and probably
|
||||
* not quite meant to be (never say never). Rather this adds the functionality
|
||||
* that we use in the polkadot-js projects.
|
||||
* that we use in the pezkuwi-js projects.
|
||||
**/
|
||||
export function jest () {
|
||||
return {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/dev-test authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/dev-test authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
module.exports = {};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2025 @pezkuwi/dev-test authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
|
||||
export const packageInfo = { name: '@pezkuwi/dev-test', path: 'auto', type: 'auto', version: '0.84.2' };
|
||||
|
||||
Reference in New Issue
Block a user