@frontmcp/testing 1.10.8 → 1.10.9-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,50 +1 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // libs/testing/src/perf/perf-setup.ts
17
- var perf_setup_exports = {};
18
- module.exports = __toCommonJS(perf_setup_exports);
19
-
20
- // libs/testing/src/perf/metrics-collector.ts
21
- function isGcAvailable() {
22
- return typeof global.gc === "function";
23
- }
24
-
25
- // libs/testing/src/perf/perf-setup.ts
26
- if (!isGcAvailable()) {
27
- console.warn(
28
- '\n[PerfSetup] WARNING: Manual garbage collection is not available.\nFor accurate memory measurements, run Node.js with --expose-gc flag:\n node --expose-gc ./node_modules/.bin/jest\nor add to jest.perf.config.ts:\n "testEnvironmentOptions": { "execArgv": ["--expose-gc"] }\n'
29
- );
30
- }
31
- jest.setTimeout(12e4);
32
- if (process.env["DEBUG"] !== "1" && process.env["PERF_VERBOSE"] !== "1") {
33
- const originalLog = console.log;
34
- const originalInfo = console.info;
35
- const originalDebug = console.debug;
36
- const originalWarn = console.warn;
37
- const originalError = console.error;
38
- beforeAll(() => {
39
- console.log = jest.fn();
40
- console.info = jest.fn();
41
- console.debug = jest.fn();
42
- console.warn = originalWarn;
43
- console.error = originalError;
44
- });
45
- afterAll(() => {
46
- console.log = originalLog;
47
- console.info = originalInfo;
48
- console.debug = originalDebug;
49
- });
50
- }
1
+ "use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var perf_setup_exports={};module.exports=__toCommonJS(perf_setup_exports);function isGcAvailable(){return typeof global.gc==="function"}if(!isGcAvailable()){console.warn('\n[PerfSetup] WARNING: Manual garbage collection is not available.\nFor accurate memory measurements, run Node.js with --expose-gc flag:\n node --expose-gc ./node_modules/.bin/jest\nor add to jest.perf.config.ts:\n "testEnvironmentOptions": { "execArgv": ["--expose-gc"] }\n')}jest.setTimeout(12e4);if(process.env["DEBUG"]!=="1"&&process.env["PERF_VERBOSE"]!=="1"){const originalLog=console.log;const originalInfo=console.info;const originalDebug=console.debug;const originalWarn=console.warn;const originalError=console.error;beforeAll(()=>{console.log=jest.fn();console.info=jest.fn();console.debug=jest.fn();console.warn=originalWarn;console.error=originalError});afterAll(()=>{console.log=originalLog;console.info=originalInfo;console.debug=originalDebug})}
@@ -1,52 +1 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // libs/testing/src/playwright/index.ts
21
- var playwright_exports = {};
22
- __export(playwright_exports, {
23
- expect: () => expect,
24
- playwrightIntegration: () => playwrightIntegration,
25
- test: () => test
26
- });
27
- module.exports = __toCommonJS(playwright_exports);
28
- var PLAYWRIGHT_NOT_IMPLEMENTED_MESSAGE = "@frontmcp/testing/playwright is not implemented. For browser tests, use `test` and `expect` from `@playwright/test` against a server started with `TestServer.start()` from `@frontmcp/testing`. For OAuth flows without a browser, use `MockOAuthServer` and `TestTokenFactory` from `@frontmcp/testing`.";
29
- function notImplemented() {
30
- throw new Error(PLAYWRIGHT_NOT_IMPLEMENTED_MESSAGE);
31
- }
32
- function notImplementedApi(target) {
33
- return new Proxy(target, {
34
- apply: notImplemented,
35
- get: (api, property) => typeof property === "string" && !(property in api) ? notImplemented() : Reflect.get(api, property)
36
- });
37
- }
38
- var playwrightIntegration = {
39
- version: "0.4.0",
40
- status: "planned",
41
- description: "Playwright integration for OAuth flow testing - not implemented"
42
- };
43
- var test = notImplementedApi((_name, _fn) => notImplemented());
44
- var expect = notImplementedApi(
45
- Object.assign(() => notImplemented(), { notImplemented: true })
46
- );
47
- // Annotate the CommonJS export names for ESM import in node:
48
- 0 && (module.exports = {
49
- expect,
50
- playwrightIntegration,
51
- test
52
- });
1
+ "use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var playwright_exports={};__export(playwright_exports,{expect:()=>expect,playwrightIntegration:()=>playwrightIntegration,test:()=>test});module.exports=__toCommonJS(playwright_exports);var PLAYWRIGHT_NOT_IMPLEMENTED_MESSAGE="@frontmcp/testing/playwright is not implemented. For browser tests, use `test` and `expect` from `@playwright/test` against a server started with `TestServer.start()` from `@frontmcp/testing`. For OAuth flows without a browser, use `MockOAuthServer` and `TestTokenFactory` from `@frontmcp/testing`.";function notImplemented(){throw new Error(PLAYWRIGHT_NOT_IMPLEMENTED_MESSAGE)}function notImplementedApi(target){return new Proxy(target,{apply:notImplemented,get:(api,property)=>typeof property==="string"&&!(property in api)?notImplemented():Reflect.get(api,property)})}var playwrightIntegration={version:"0.4.0",status:"planned",description:"Playwright integration for OAuth flow testing - not implemented"};var test=notImplementedApi((_name,_fn)=>notImplemented());var expect=notImplementedApi(Object.assign(()=>notImplemented(),{notImplemented:true}));0&&(module.exports={expect,playwrightIntegration,test});