🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@subql/testing

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@subql/testing - npm Package Compare versions

Comparing version
2.3.1-1
to
2.3.1
dist/.tsbuildinfo

Sorry, the diff of this file is not supported yet

+3
export * from './interfaces';
import { CompatEntity } from '@subql/types-core';
export declare function subqlTest<E extends CompatEntity<any> = CompatEntity<any>>(name: string, blockHeight: number, dependentEntities: E[], expectedEntities: E[], handler: string): void;
"use strict";
// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.subqlTest = subqlTest;
__exportStar(require("./interfaces"), exports);
// Register test functions to a global array
function subqlTest(name, blockHeight, dependentEntities, expectedEntities, handler) {
global.subqlTests = global.subqlTests ?? [];
global.subqlTests.push({
name,
blockHeight,
dependentEntities,
expectedEntities,
handler,
});
}
//# sourceMappingURL=index.js.map
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,8DAA8D;AAC9D,mCAAmC;;;;;;;;;;;;;;;;AAOnC,8BAgBC;AArBD,+CAA6B;AAI7B,4CAA4C;AAC5C,SAAgB,SAAS,CACvB,IAAY,EACZ,WAAmB,EACnB,iBAAsB,EACtB,gBAAqB,EACrB,OAAe;IAEd,MAAc,CAAC,UAAU,GAAI,MAAc,CAAC,UAAU,IAAI,EAAE,CAAC;IAE7D,MAAc,CAAC,UAAU,CAAC,IAAI,CAAC;QAC9B,IAAI;QACJ,WAAW;QACX,iBAAiB;QACjB,gBAAgB;QAChB,OAAO;KACR,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors\n// SPDX-License-Identifier: GPL-3.0\n\nexport * from './interfaces';\n\nimport {CompatEntity} from '@subql/types-core';\n\n// Register test functions to a global array\nexport function subqlTest<E extends CompatEntity<any> = CompatEntity<any>>(\n name: string,\n blockHeight: number,\n dependentEntities: E[],\n expectedEntities: E[],\n handler: string\n): void {\n (global as any).subqlTests = (global as any).subqlTests ?? [];\n\n (global as any).subqlTests.push({\n name,\n blockHeight,\n dependentEntities,\n expectedEntities,\n handler,\n });\n}\n"]}
import { Entity } from '@subql/types-core';
export type HandlerFunction = <T = any>(input: T) => Promise<void>;
export type SubqlTest = {
name: string;
blockHeight: number;
dependentEntities: Entity[];
expectedEntities: Entity[];
handler: string;
};
"use strict";
// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=interfaces.js.map
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":";AAAA,8DAA8D;AAC9D,mCAAmC","sourcesContent":["// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors\n// SPDX-License-Identifier: GPL-3.0\n\nimport {Entity} from '@subql/types-core';\n\nexport type HandlerFunction = <T = any>(input: T) => Promise<void>;\n\nexport type SubqlTest = {\n name: string;\n blockHeight: number;\n dependentEntities: Entity[];\n expectedEntities: Entity[];\n handler: string;\n};\n"]}
+6
-1

@@ -9,2 +9,6 @@ # Changelog

## [2.3.1] - 2025-11-05
### Changed
- Update package manager (#2937)
## [2.3.0] - 2025-07-01

@@ -58,3 +62,4 @@ ### Removed

[Unreleased]: https://github.com/subquery/subql/compare/testing/2.3.0...HEAD
[Unreleased]: https://github.com/subquery/subql/compare/testing/2.3.1...HEAD
[2.3.1]: https://github.com/subquery/subql/compare/testing/2.3.0...testing/2.3.1
[2.3.0]: https://github.com/subquery/subql/compare/testing/2.2.4...testing/2.3.0

@@ -61,0 +66,0 @@ [2.2.4]: https://github.com/subquery/subql/compare/testing/2.2.3...testing/2.2.4

+2
-3
{
"name": "@subql/testing",
"version": "2.3.1-1",
"version": "2.3.1",
"scripts": {

@@ -26,4 +26,3 @@ "test": "echo \"Error: no test specified\" && exit 1",

"@subql/types-core": "^2.2.0"
},
"stableVersion": "2.3.1-0"
}
}