@thepalaceproject/circulation-admin 1.27.0-post.1 → 1.27.0-post.3

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/jest.config.js CHANGED
@@ -6,7 +6,7 @@ module.exports = {
6
6
  "\\.(css|less)$": "<rootDir>/tests/__mocks__/styleMock.js",
7
7
  },
8
8
  preset: "ts-jest",
9
- testEnvironment: "jsdom",
9
+ testEnvironment: "jest-fixed-jsdom",
10
10
  testEnvironmentOptions: {
11
11
  customExportConditions: [""],
12
12
  },
package/jest.polyfills.js CHANGED
@@ -3,15 +3,7 @@
3
3
  const globalThis = window;
4
4
 
5
5
  // eslint-disable-next-line @typescript-eslint/no-var-requires
6
- const { ReadableStream, TextDecoder, TextEncoder } = require("node:util");
7
- Object.defineProperties(globalThis, {
8
- ReadableStream: { value: ReadableStream },
9
- TextDecoder: { value: TextDecoder },
10
- TextEncoder: { value: TextEncoder },
11
- });
12
-
13
- // eslint-disable-next-line @typescript-eslint/no-var-requires
14
- const { fetch, Request, Response, Headers } = require("fetch-ponyfill")();
6
+ const { fetch, Headers, Request, Response } = require("fetch-ponyfill")();
15
7
  Object.defineProperties(globalThis, {
16
8
  fetch: { value: fetch, writable: true },
17
9
  Headers: { value: Headers },
package/package.json CHANGED
@@ -108,12 +108,13 @@
108
108
  "husky": "^4.3.0",
109
109
  "jest": "^29.3.1",
110
110
  "jest-environment-jsdom": "^29.3.1",
111
+ "jest-fixed-jsdom": "^0.0.9",
111
112
  "jsdom": "^20.0.3",
112
113
  "json-loader": "^0.5.4",
113
114
  "lint-staged": "^10.4.0",
114
115
  "mini-css-extract-plugin": "1.6.0",
115
116
  "mocha": "^10.2.0",
116
- "msw": "^2.3.0",
117
+ "msw": "^2.7.3",
117
118
  "nightwatch": "^3.2.0",
118
119
  "prettier": "2.1.2",
119
120
  "react-axe": "^3.3.0",
@@ -127,13 +128,13 @@
127
128
  "sinon": "7.5.0",
128
129
  "style-loader": "^0.13.1",
129
130
  "terser-webpack-plugin": "^5.3.6",
130
- "ts-jest": "^29.0.5",
131
- "ts-loader": "^9.4.2",
132
- "ts-node": "^10.9.1",
131
+ "ts-jest": "^29.2.6",
132
+ "ts-loader": "^9.5.2",
133
+ "ts-node": "^10.9.2",
133
134
  "tslint": "^6.1.3",
134
- "tslint-react-a11y": "1.1.0",
135
- "typedoc": "0.23.21",
136
- "typescript": "4.9.4",
135
+ "tslint-react-a11y": "^1.1.0",
136
+ "typedoc": "^0.27.9",
137
+ "typescript": "^5.7.3",
137
138
  "url-loader": "^4.1.1",
138
139
  "webpack": "^5.94.0",
139
140
  "webpack-cli": "^5.0.1",
@@ -150,5 +151,5 @@
150
151
  "*.{js,jsx,ts,tsx,css,md}": "prettier --write",
151
152
  "*.{js,css,md}": "prettier --write"
152
153
  },
153
- "version": "1.27.0-post.1"
154
+ "version": "1.27.0-post.3"
154
155
  }
@@ -22,11 +22,10 @@ describe("AdvancedSearchBuilder", () => {
22
22
  />
23
23
  );
24
24
 
25
- const publicationDateRadio = screen.getByRole("radio", {
26
- name: "publication date",
27
- });
28
-
29
- await user.click(publicationDateRadio);
25
+ await userEvent.selectOptions(
26
+ screen.getByRole("combobox", { name: "filter field key" }),
27
+ screen.getByRole("option", { name: "Publication Date" })
28
+ );
30
29
 
31
30
  const filterValueField = screen.getByRole("textbox", {
32
31
  name: "filter value",
@@ -51,7 +51,7 @@ describe("CustomLists", () => {
51
51
  const items = screen.getAllByRole("treeitem");
52
52
 
53
53
  expect(items).toHaveLength(1);
54
- expect(items[0]).toHaveTextContent(/genre = horror/);
54
+ expect(items[0]).toHaveTextContent(/Genre = horror/);
55
55
 
56
56
  await user.click(screen.getByRole("textbox", { name: "filter value" }));
57
57
  await user.keyboard("science fiction{enter}");
@@ -91,7 +91,7 @@ describe("CustomLists", () => {
91
91
  let items = screen.getAllByRole("treeitem");
92
92
 
93
93
  expect(items).toHaveLength(1);
94
- expect(items[0]).toHaveTextContent(/genre = horror/);
94
+ expect(items[0]).toHaveTextContent(/Genre = horror/);
95
95
 
96
96
  await user.click(screen.getByRole("textbox", { name: "filter value" }));
97
97
  await user.keyboard("science fiction{enter}");
@@ -181,7 +181,10 @@ describe("CustomLists", () => {
181
181
  contextProviderProps
182
182
  );
183
183
 
184
- await user.click(screen.getByRole("radio", { name: "language" }));
184
+ await userEvent.selectOptions(
185
+ screen.getByRole("combobox", { name: "filter field key" }),
186
+ screen.getByRole("option", { name: "Language" })
187
+ );
185
188
  await user.click(screen.getByRole("textbox", { name: "filter value" }));
186
189
  await user.keyboard("french{enter}");
187
190
 
@@ -33,6 +33,5 @@ describe("ProtocolFormField", () => {
33
33
  await user.keyboard(`${testDate}{enter}`);
34
34
 
35
35
  expect(input.value).toBe(testDate);
36
- screen.debug();
37
36
  });
38
37
  });
package/tsconfig.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "module": "commonjs",
5
5
  "target": "es5",
6
6
  "outDir": "lib",
7
- "lib": ["es2019", "dom"],
7
+ "lib": ["es2023.array","es2019", "dom"],
8
8
  "rootDir": ".",
9
9
  // Mocha and jest are both used in this project. Certain globals are declared by both,
10
10
  // such as describe, it, and test. Setting skipLibCheck to true prevents typescript from