@thisisagile/easy-test-web 18.16.2 → 19.0.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.
@@ -1 +1,2 @@
1
+ import "./chunk-EYJUDXDB.mjs";
1
2
  //# sourceMappingURL=TestElement.mjs.map
package/dist/Tester.mjs CHANGED
@@ -1,6 +1,6 @@
1
- // src/Tester.ts
2
- import { text, tryTo } from "@thisisagile/easy";
3
- var toUrl = (uc, host, id) => tryTo(() => host).map((domain) => ({ domain, i: id ? `/${id}` : "" })).map(({ domain, i }) => text(`${domain}/${uc.app}/${uc}${i}`)).map((url) => url.kebab.toString()).value;
1
+ import {
2
+ toUrl
3
+ } from "./chunk-L77RCSCA.mjs";
4
4
  export {
5
5
  toUrl
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/Tester.ts"],"sourcesContent":["import { TestElement } from './TestElement';\nimport { Id, text, tryTo, UseCase } from '@thisisagile/easy';\n\nexport interface Tester {\n host: string;\n\n url: string;\n\n by(key: string, value: string): TestElement;\n\n byClass(c: string): TestElement;\n\n byId(id: string): TestElement;\n\n byDataTestId(id: string): TestElement;\n\n byName(name: string): TestElement;\n\n row(contains: string): TestElement;\n\n submit(): TestElement;\n\n wait(): Promise<boolean>;\n\n close(): Promise<void>;\n\n redirect(url: string): Promise<boolean>;\n\n goto(to: UseCase, id?: Id): Promise<boolean>;\n}\n\nexport const toUrl = (uc: UseCase, host?: string, id?: Id): string =>\n tryTo(() => host)\n .map(domain => ({ domain, i: id ? `/${id}` : '' }))\n .map(({ domain, i }) => text(`${domain}/${uc.app}/${uc}${i}`))\n .map(url => url.kebab.toString()).value;\n"],"mappings":";AACA,SAAa,MAAM,aAAsB;AA8BlC,IAAM,QAAQ,CAAC,IAAa,MAAe,OAChD,MAAM,MAAM,IAAI,EACb,IAAI,aAAW,EAAE,QAAQ,GAAG,KAAK,IAAI,EAAE,KAAK,GAAG,EAAE,EACjD,IAAI,CAAC,EAAE,QAAQ,EAAE,MAAM,KAAK,GAAG,MAAM,IAAI,GAAG,GAAG,IAAI,EAAE,GAAG,CAAC,EAAE,CAAC,EAC5D,IAAI,SAAO,IAAI,MAAM,SAAS,CAAC,EAAE;","names":[]}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-EYJUDXDB.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,8 @@
1
+ // src/Tester.ts
2
+ import { text, tryTo } from "@thisisagile/easy";
3
+ var toUrl = (uc, host, id) => tryTo(() => host).map((domain) => ({ domain, i: id ? `/${id}` : "" })).map(({ domain, i }) => text(`${domain}/${uc.app}/${uc}${i}`)).map((url) => url.kebab.toString()).value;
4
+
5
+ export {
6
+ toUrl
7
+ };
8
+ //# sourceMappingURL=chunk-L77RCSCA.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/Tester.ts"],"sourcesContent":["import { TestElement } from './TestElement';\nimport { Id, text, tryTo, UseCase } from '@thisisagile/easy';\n\nexport interface Tester {\n host: string;\n\n url: string;\n\n by(key: string, value: string): TestElement;\n\n byClass(c: string): TestElement;\n\n byId(id: string): TestElement;\n\n byDataTestId(id: string): TestElement;\n\n byName(name: string): TestElement;\n\n row(contains: string): TestElement;\n\n submit(): TestElement;\n\n wait(): Promise<boolean>;\n\n close(): Promise<void>;\n\n redirect(url: string): Promise<boolean>;\n\n goto(to: UseCase, id?: Id): Promise<boolean>;\n}\n\nexport const toUrl = (uc: UseCase, host?: string, id?: Id): string =>\n tryTo(() => host)\n .map(domain => ({ domain, i: id ? `/${id}` : '' }))\n .map(({ domain, i }) => text(`${domain}/${uc.app}/${uc}${i}`))\n .map(url => url.kebab.toString()).value;\n"],"mappings":";AACA,SAAa,MAAM,aAAsB;AA8BlC,IAAM,QAAQ,CAAC,IAAa,MAAe,OAChD,MAAM,MAAM,IAAI,EACb,IAAI,aAAW,EAAE,QAAQ,GAAG,KAAK,IAAI,EAAE,KAAK,GAAG,EAAE,EACjD,IAAI,CAAC,EAAE,QAAQ,EAAE,MAAM,KAAK,GAAG,MAAM,IAAI,GAAG,GAAG,IAAI,EAAE,GAAG,CAAC,EAAE,CAAC,EAC5D,IAAI,SAAO,IAAI,MAAM,SAAS,CAAC,EAAE;","names":[]}
package/dist/index.mjs CHANGED
@@ -1,3 +1,8 @@
1
- export * from "./TestElement";
2
- export * from "./Tester";
1
+ import "./chunk-EYJUDXDB.mjs";
2
+ import {
3
+ toUrl
4
+ } from "./chunk-L77RCSCA.mjs";
5
+ export {
6
+ toUrl
7
+ };
3
8
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './TestElement';\nexport * from './Tester';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;","names":[]}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thisisagile/easy-test-web",
3
- "version": "18.16.2",
3
+ "version": "19.0.0",
4
4
  "description": "Straightforward wrapper library for web testing frameworks",
5
5
  "author": "Sander Hoogendoorn",
6
6
  "license": "MIT",
@@ -23,8 +23,8 @@
23
23
  "scripts": {
24
24
  "lint": "yarn g:eslint . --ext .js,.jsx,.ts,.tsx --fix",
25
25
  "format": "yarn g:prettier --check --write src test *.json",
26
- "build": "yarn g:tsc",
27
- "build:tsup": "yarn g:tsup --onSuccess \"yarn g:tsc --emitDeclarationOnly --declaration\"",
26
+ "build": "yarn build:tsup",
27
+ "build:tsup": "yarn g:tsup && yarn g:tsc --emitDeclarationOnly --declaration && node ../../scripts/check-exports.mjs",
28
28
  "test": "yarn g:jest --coverage",
29
29
  "prepack": "yarn g:copy-readme"
30
30
  },
@@ -37,6 +37,24 @@
37
37
  "access": "public"
38
38
  },
39
39
  "dependencies": {
40
- "@thisisagile/easy": "^18.16.2"
40
+ "@thisisagile/easy": "^19.0.0"
41
+ },
42
+ "exports": {
43
+ ".": {
44
+ "types": "./dist/index.d.ts",
45
+ "import": "./dist/index.mjs",
46
+ "require": "./dist/index.js"
47
+ },
48
+ "./TestElement": {
49
+ "types": "./dist/TestElement.d.ts",
50
+ "import": "./dist/TestElement.mjs"
51
+ },
52
+ "./Tester": {
53
+ "types": "./dist/Tester.d.ts",
54
+ "import": "./dist/Tester.mjs"
55
+ },
56
+ "./src/*": "./src/*",
57
+ "./dist/*": "./dist/*",
58
+ "./package.json": "./package.json"
41
59
  }
42
60
  }