@stablyai/playwright-test 2.0.9 → 2.0.11
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/dist/index.cjs +12 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +26 -1
- package/dist/index.d.ts +26 -1
- package/dist/index.mjs +10 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -4
package/dist/index.cjs
CHANGED
|
@@ -3774,11 +3774,15 @@ __export(src_exports, {
|
|
|
3774
3774
|
Agent: () => import_playwright_base3.Agent,
|
|
3775
3775
|
defineConfig: () => defineConfig,
|
|
3776
3776
|
expect: () => expect,
|
|
3777
|
+
getDirname: () => getDirname,
|
|
3778
|
+
getFilename: () => getFilename,
|
|
3777
3779
|
setApiKey: () => import_playwright_base3.setApiKey,
|
|
3778
3780
|
stablyReporter: () => vl,
|
|
3779
3781
|
test: () => test
|
|
3780
3782
|
});
|
|
3781
3783
|
module.exports = __toCommonJS(src_exports);
|
|
3784
|
+
var import_path3 = require("path");
|
|
3785
|
+
var import_url2 = require("url");
|
|
3782
3786
|
var import_test = require("@playwright/test");
|
|
3783
3787
|
var import_playwright_base = require("@stablyai/playwright-base");
|
|
3784
3788
|
var import_playwright_base2 = require("@stablyai/playwright-base");
|
|
@@ -8298,6 +8302,12 @@ function vl(t2) {
|
|
|
8298
8302
|
// src/index.ts
|
|
8299
8303
|
var import_playwright_base3 = require("@stablyai/playwright-base");
|
|
8300
8304
|
__reExport(src_exports, require("@playwright/test"), module.exports);
|
|
8305
|
+
function getDirname(importMetaUrl) {
|
|
8306
|
+
return (0, import_path3.dirname)((0, import_url2.fileURLToPath)(importMetaUrl));
|
|
8307
|
+
}
|
|
8308
|
+
function getFilename(importMetaUrl) {
|
|
8309
|
+
return (0, import_url2.fileURLToPath)(importMetaUrl);
|
|
8310
|
+
}
|
|
8301
8311
|
var test = import_test.test.extend({
|
|
8302
8312
|
agent: async ({ context }, use) => {
|
|
8303
8313
|
const agent = context.newAgent();
|
|
@@ -8320,6 +8330,8 @@ var defineConfig = import_test.defineConfig;
|
|
|
8320
8330
|
Agent,
|
|
8321
8331
|
defineConfig,
|
|
8322
8332
|
expect,
|
|
8333
|
+
getDirname,
|
|
8334
|
+
getFilename,
|
|
8323
8335
|
setApiKey,
|
|
8324
8336
|
stablyReporter,
|
|
8325
8337
|
test,
|