@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,31 +1 @@
1
- // libs/testing/src/perf/metrics-collector.ts
2
- function isGcAvailable() {
3
- return typeof global.gc === "function";
4
- }
5
-
6
- // libs/testing/src/perf/perf-setup.ts
7
- if (!isGcAvailable()) {
8
- console.warn(
9
- '\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'
10
- );
11
- }
12
- jest.setTimeout(12e4);
13
- if (process.env["DEBUG"] !== "1" && process.env["PERF_VERBOSE"] !== "1") {
14
- const originalLog = console.log;
15
- const originalInfo = console.info;
16
- const originalDebug = console.debug;
17
- const originalWarn = console.warn;
18
- const originalError = console.error;
19
- beforeAll(() => {
20
- console.log = jest.fn();
21
- console.info = jest.fn();
22
- console.debug = jest.fn();
23
- console.warn = originalWarn;
24
- console.error = originalError;
25
- });
26
- afterAll(() => {
27
- console.log = originalLog;
28
- console.info = originalInfo;
29
- console.debug = originalDebug;
30
- });
31
- }
1
+ 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,25 +1 @@
1
- // libs/testing/src/playwright/index.ts
2
- 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`.";
3
- function notImplemented() {
4
- throw new Error(PLAYWRIGHT_NOT_IMPLEMENTED_MESSAGE);
5
- }
6
- function notImplementedApi(target) {
7
- return new Proxy(target, {
8
- apply: notImplemented,
9
- get: (api, property) => typeof property === "string" && !(property in api) ? notImplemented() : Reflect.get(api, property)
10
- });
11
- }
12
- var playwrightIntegration = {
13
- version: "0.4.0",
14
- status: "planned",
15
- description: "Playwright integration for OAuth flow testing - not implemented"
16
- };
17
- var test = notImplementedApi((_name, _fn) => notImplemented());
18
- var expect = notImplementedApi(
19
- Object.assign(() => notImplemented(), { notImplemented: true })
20
- );
21
- export {
22
- expect,
23
- playwrightIntegration,
24
- test
25
- };
1
+ 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}));export{expect,playwrightIntegration,test};