Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@metlo/testing

Package Overview
Dependencies
Maintainers
2
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metlo/testing - npm Package Compare versions

Comparing version 0.1.5 to 0.2.0

dist/generate/builder.d.ts

6

dist/index.d.ts

@@ -6,4 +6,8 @@ import { FailedAssertion, FailedRequest, TestConfig, TestResult } from "./types/test";

export declare const getFailedRequests: (res: TestResult) => FailedRequest[];
export { AssertionType, ExtractorType } from "./types/enums";
export declare const AssertionType: import("zod").Values<["EQ", "REGEXP", "JS"]>;
export declare const ExtractorType: import("zod").Values<["VALUE", "JS"]>;
export { KeyValType, TestConfig, TestRequest, TestResult, TestConfigSchema, FailedAssertion, FailedRequest, } from "./types/test";
export { GenTestEndpoint, GenTestContext, GeneratedTestRequest, GenTestEndpointDataField, } from "./generate/types";
export { TestBuilder, TestStepBuilder } from "./generate/builder";
export { TestTemplate } from "./templates/types";
export { runTest } from "./runner";

11

dist/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.runTest = exports.TestConfigSchema = exports.ExtractorType = exports.AssertionType = exports.getFailedRequests = exports.getFailedAssertions = exports.loadTestConfig = exports.dumpTestConfig = void 0;
exports.runTest = exports.TestStepBuilder = exports.TestBuilder = exports.TestConfigSchema = exports.ExtractorType = exports.AssertionType = exports.getFailedRequests = exports.getFailedAssertions = exports.loadTestConfig = exports.dumpTestConfig = void 0;
const tslib_1 = require("tslib");

@@ -8,2 +8,3 @@ const chalk_1 = tslib_1.__importDefault(require("chalk"));

const fs_1 = tslib_1.__importDefault(require("fs"));
const enums_1 = require("./types/enums");
const test_1 = require("./types/test");

@@ -85,9 +86,11 @@ const dumpTestConfig = (config) => {

exports.getFailedRequests = getFailedRequests;
var enums_1 = require("./types/enums");
Object.defineProperty(exports, "AssertionType", { enumerable: true, get: function () { return enums_1.AssertionType; } });
Object.defineProperty(exports, "ExtractorType", { enumerable: true, get: function () { return enums_1.ExtractorType; } });
exports.AssertionType = enums_1.AssertionType.enum;
exports.ExtractorType = enums_1.ExtractorType.enum;
var test_2 = require("./types/test");
Object.defineProperty(exports, "TestConfigSchema", { enumerable: true, get: function () { return test_2.TestConfigSchema; } });
var builder_1 = require("./generate/builder");
Object.defineProperty(exports, "TestBuilder", { enumerable: true, get: function () { return builder_1.TestBuilder; } });
Object.defineProperty(exports, "TestStepBuilder", { enumerable: true, get: function () { return builder_1.TestStepBuilder; } });
var runner_1 = require("./runner");
Object.defineProperty(exports, "runTest", { enumerable: true, get: function () { return runner_1.runTest; } });
//# sourceMappingURL=index.js.map

@@ -528,2 +528,3 @@ import { z } from "zod";

}>;
export type TestMeta = z.infer<typeof MetaSchema>;
export type Extractor = z.infer<typeof ExtractorSchema>;

@@ -530,0 +531,0 @@ export type Assertion = z.infer<typeof AssertionSchema>;

{
"name": "@metlo/testing",
"version": "0.1.5",
"version": "0.2.0",
"license": "MIT",

@@ -18,2 +18,3 @@ "main": "dist/index.js",

"@types/lodash.get": "^4.4.7",
"@types/uuid": "^9.0.0",
"prettier": "^2.7.1",

@@ -31,2 +32,3 @@ "ts-node": "^10.9.1",

"lodash.get": "^4.4.2",
"uuid": "^9.0.0",
"vm2": "^3.9.13",

@@ -33,0 +35,0 @@ "zod": "^3.20.2"

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc