@rpcbase/test 0.0.0 → 0.1.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/test",
3
- "version": "0.0.0",
3
+ "version": "0.1.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "bin": {
package/dist/cli.d.ts DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
3
- //# sourceMappingURL=cli.d.ts.map
package/dist/cli.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}
package/dist/cli.js DELETED
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env node
2
- import fs from 'fs';
3
- import path from 'path';
4
- import { runCLI } from '@playwright/test/cli';
5
- const run = async () => {
6
- const configPath = fs.existsSync(path.join(process.cwd(), 'playwright.config.ts'))
7
- ? 'playwright.config.ts'
8
- : path.join(__dirname, 'playwright.config.ts');
9
- const result = await runCLI([`--config=${configPath}`]); // Pass any CLI options here
10
- if (result.exitCode !== 0) {
11
- console.error('Tests failed!');
12
- process.exit(result.exitCode);
13
- }
14
- else {
15
- console.log('All tests passed!');
16
- }
17
- };
18
- run();
package/dist/index.d.ts DELETED
@@ -1 +0,0 @@
1
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
package/dist/index.js DELETED
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,13 +0,0 @@
1
- import { LoaderFunction } from "react-router";
2
- import { Loader } from "@rpcbase/client";
3
- type RouteModule = {
4
- default: React.ComponentType<unknown>;
5
- loader?: Loader;
6
- };
7
- type RouteWithLoader = {
8
- Component: React.LazyExoticComponent<React.ComponentType<unknown>>;
9
- loader?: LoaderFunction;
10
- };
11
- export declare const loadRoute: (importPromise: Promise<RouteModule>) => RouteWithLoader;
12
- export {};
13
- //# sourceMappingURL=loadRoute.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"loadRoute.d.ts","sourceRoot":"","sources":["../src/loadRoute.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,CAAA;IACrC,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,KAAK,eAAe,GAAG;IACrB,SAAS,EAAE,KAAK,CAAC,mBAAmB,CAAC,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAA;IAClE,MAAM,CAAC,EAAE,cAAc,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,SAAS,kBAAmB,OAAO,CAAC,WAAW,CAAC,KAAG,eAa/D,CAAA"}
package/dist/loadRoute.js DELETED
@@ -1,14 +0,0 @@
1
- import { lazy } from "react";
2
- export const loadRoute = (importPromise) => {
3
- const Component = lazy(async () => {
4
- const module = await importPromise;
5
- return { default: module.default };
6
- });
7
- const loader = async (args) => {
8
- const module = await importPromise;
9
- if (!module.loader)
10
- return null;
11
- return module.loader(args);
12
- };
13
- return { Component, loader: loader };
14
- };
@@ -1,2 +0,0 @@
1
- export declare const runPlaywright: () => Promise<void>;
2
- //# sourceMappingURL=runPlaywright.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runPlaywright.d.ts","sourceRoot":"","sources":["../src/runPlaywright.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,qBAEzB,CAAA"}
@@ -1,2 +0,0 @@
1
- export const runPlaywright = async () => {
2
- };