@thisisagile/easy-test-react 18.17.0 → 19.0.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/dist/index.mjs CHANGED
@@ -1,11 +1,24 @@
1
- export * from "./ElementTester";
2
- export * from "./Tester";
3
- export * from "./waitForRender";
4
- const mockTimezone = () => {
1
+ import {
2
+ ElementTester,
3
+ Tester,
4
+ renders,
5
+ rendersWait
6
+ } from "./chunk-DAQNFE75.mjs";
7
+ import {
8
+ waitForRender
9
+ } from "./chunk-UIR5DDLV.mjs";
10
+
11
+ // src/index.ts
12
+ var mockTimezone = () => {
5
13
  jest.spyOn(Intl.DateTimeFormat.prototype, "resolvedOptions").mockReturnValue(Intl.DateTimeFormat("en-US", { timeZone: "UTC" }).resolvedOptions());
6
14
  };
7
15
  mockTimezone();
8
16
  export {
9
- mockTimezone
17
+ ElementTester,
18
+ Tester,
19
+ mockTimezone,
20
+ renders,
21
+ rendersWait,
22
+ waitForRender
10
23
  };
11
24
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './ElementTester';\nexport * from './Tester';\nexport * from './waitForRender';\n\nexport const mockTimezone = () => {\n jest.spyOn(Intl.DateTimeFormat.prototype, 'resolvedOptions').mockReturnValue(Intl.DateTimeFormat('en-US', { timeZone: 'UTC' }).resolvedOptions());\n};\nmockTimezone();\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AAEP,MAAM,eAAe,MAAM;AAChC,OAAK,MAAM,KAAK,eAAe,WAAW,iBAAiB,EAAE,gBAAgB,KAAK,eAAe,SAAS,EAAE,UAAU,MAAM,CAAC,EAAE,gBAAgB,CAAC;AAClJ;AACA,aAAa;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './ElementTester';\nexport * from './Tester';\nexport * from './waitForRender';\n\nexport const mockTimezone = () => {\n jest.spyOn(Intl.DateTimeFormat.prototype, 'resolvedOptions').mockReturnValue(Intl.DateTimeFormat('en-US', { timeZone: 'UTC' }).resolvedOptions());\n};\nmockTimezone();\n"],"mappings":";;;;;;;;;;;AAIO,IAAM,eAAe,MAAM;AAChC,OAAK,MAAM,KAAK,eAAe,WAAW,iBAAiB,EAAE,gBAAgB,KAAK,eAAe,SAAS,EAAE,UAAU,MAAM,CAAC,EAAE,gBAAgB,CAAC;AAClJ;AACA,aAAa;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thisisagile/easy-test-react",
3
- "version": "18.17.0",
3
+ "version": "19.0.1",
4
4
  "description": "Straightforward wrapper library for testing-library/react",
5
5
  "author": "Sander Hoogendoorn",
6
6
  "license": "MIT",
@@ -22,8 +22,8 @@
22
22
  "scripts": {
23
23
  "lint": "yarn g:eslint . --ext .js,.jsx,.ts,.tsx --fix",
24
24
  "format": "yarn g:prettier --check --write src test *.json",
25
- "build": "yarn g:tsc",
26
- "build:tsup": "yarn g:tsup --onSuccess \"yarn g:tsc --emitDeclarationOnly --declaration\"",
25
+ "build": "yarn build:tsup",
26
+ "build:tsup": "yarn g:tsup && yarn g:tsc --emitDeclarationOnly --declaration",
27
27
  "test": "yarn g:jest --coverage",
28
28
  "prepack": "yarn g:copy-readme"
29
29
  },
@@ -44,9 +44,31 @@
44
44
  "@testing-library/dom": "^10.4.0",
45
45
  "@testing-library/jest-dom": "^6.6.3",
46
46
  "@testing-library/react": "^16.3.0",
47
- "@thisisagile/easy": "^18.17.0",
47
+ "@thisisagile/easy": "^19.0.1",
48
48
  "@types/react": "^18.3.18",
49
49
  "react": "^18.3.1",
50
50
  "react-dom": "^18.3.1"
51
+ },
52
+ "exports": {
53
+ ".": {
54
+ "types": "./dist/index.d.ts",
55
+ "import": "./dist/index.mjs",
56
+ "require": "./dist/index.js"
57
+ },
58
+ "./ElementTester": {
59
+ "types": "./dist/ElementTester.d.ts",
60
+ "import": "./dist/ElementTester.mjs"
61
+ },
62
+ "./Tester": {
63
+ "types": "./dist/Tester.d.ts",
64
+ "import": "./dist/Tester.mjs"
65
+ },
66
+ "./waitForRender": {
67
+ "types": "./dist/waitForRender.d.ts",
68
+ "import": "./dist/waitForRender.mjs"
69
+ },
70
+ "./src/*": "./src/*",
71
+ "./dist/*": "./dist/*",
72
+ "./package.json": "./package.json"
51
73
  }
52
74
  }