@empiricalrun/playwright-utils 0.0.1-beta.1

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/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # playwright-utils
2
+
3
+ Playwright utils for test code repos of our customers
@@ -0,0 +1,4 @@
1
+ import { type PlaywrightTestConfig } from "@playwright/test";
2
+ declare const baseConfig: PlaywrightTestConfig;
3
+ export { baseConfig };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE7D,QAAA,MAAM,UAAU,EAAE,oBAiBjB,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.baseConfig = void 0;
4
+ const baseConfig = {
5
+ testDir: "./tests",
6
+ fullyParallel: true,
7
+ forbidOnly: false,
8
+ retries: process.env.CI ? 2 : 0,
9
+ workers: undefined,
10
+ reporter: [["html"], ["json", { outputFile: "test-results/summary.json" }]],
11
+ use: {
12
+ trace: "retain-on-failure",
13
+ video: "on",
14
+ viewport: { width: 1366, height: 768 },
15
+ actionTimeout: 15000,
16
+ },
17
+ expect: {
18
+ timeout: 15000,
19
+ },
20
+ timeout: 0,
21
+ };
22
+ exports.baseConfig = baseConfig;
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@empiricalrun/playwright-utils",
3
+ "version": "0.0.1-beta.1",
4
+ "publishConfig": {
5
+ "registry": "https://registry.npmjs.org/",
6
+ "access": "public"
7
+ },
8
+ "main": "dist/index.js",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/empirical-run/empirical.git"
12
+ },
13
+ "author": "Empirical Team <hey@empirical.run>",
14
+ "scripts": {
15
+ "dev": "tsc --build --watch",
16
+ "build": "tsc --build",
17
+ "clean": "tsc --build --clean",
18
+ "lint": "eslint .",
19
+ "test": "vitest run",
20
+ "test:watch": "vitest"
21
+ },
22
+ "devDependencies": {
23
+ "@playwright/test": "^1.44.1",
24
+ "@types/node": "^20.14.9"
25
+ }
26
+ }