@elliemae/pui-cli 8.0.0-next.7 → 8.0.0-next.9

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/app.tsconfig.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "compilerOptions": {
3
3
  "lib": ["dom", "dom.iterable", "esnext"],
4
4
  "module": "esnext",
5
- "target": "es2015",
5
+ "target": "es2020",
6
6
  "allowJs": true,
7
7
  "allowSyntheticDefaultImports": true,
8
8
  "esModuleInterop": true,
@@ -1,27 +1,8 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") {
10
- for (let key of __getOwnPropNames(from))
11
- if (!__hasOwnProp.call(to, key) && key !== except)
12
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- }
14
- return to;
15
- };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
- // If the importer is in node compatibility mode or this is not an ESM
18
- // file that has been converted to a CommonJS file using a Babel-
19
- // compatible transform (i.e. "__esModule" has not been set), then set
20
- // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
- mod
23
- ));
24
- var React = __toESM(require("react"), 1);
2
+ var import_vitest = require("vitest");
25
3
  var import_jest_styled_components = require("jest-styled-components");
4
+ var import_react = require("@testing-library/react");
26
5
  var import_extend_expect = require("@testing-library/jest-dom/extend-expect");
27
- global.React = React;
6
+ (0, import_vitest.afterEach)(() => {
7
+ (0, import_react.cleanup)();
8
+ });
@@ -42,7 +42,7 @@ const vitestConfig = (0, import_config.defineConfig)({
42
42
  test: {
43
43
  globals: true,
44
44
  root: process.cwd(),
45
- environment: "happy-dom",
45
+ environment: "jsdom",
46
46
  setupFiles: [import_node_path.default.resolve(__dirname, "./setup-test-env.js")],
47
47
  include: ["./{app,lib}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
48
48
  exclude: [...import_config.configDefaults.exclude, ".idea", ".git", ".cache", "e2e"],
@@ -43,7 +43,7 @@ const __dirname = import_node_path.default.dirname((0, import_node_url.fileURLTo
43
43
  const TARGETS = {
44
44
  browserslist: (0, import_browserslist_to_esbuild.default)(),
45
45
  web: "es2020",
46
- node: "node16"
46
+ node: "node18"
47
47
  };
48
48
  const ESBUILD_FORMAT = {
49
49
  CJS: "cjs",
@@ -1,4 +1,7 @@
1
- import * as React from "react";
1
+ import { afterEach } from "vitest";
2
2
  import "jest-styled-components";
3
+ import { cleanup } from "@testing-library/react";
3
4
  import "@testing-library/jest-dom/extend-expect";
4
- global.React = React;
5
+ afterEach(() => {
6
+ cleanup();
7
+ });
@@ -8,7 +8,7 @@ const vitestConfig = defineConfig({
8
8
  test: {
9
9
  globals: true,
10
10
  root: process.cwd(),
11
- environment: "happy-dom",
11
+ environment: "jsdom",
12
12
  setupFiles: [path.resolve(__dirname, "./setup-test-env.js")],
13
13
  include: ["./{app,lib}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
14
14
  exclude: [...configDefaults.exclude, ".idea", ".git", ".cache", "e2e"],
@@ -8,7 +8,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
8
8
  const TARGETS = {
9
9
  browserslist: browserslistToEsbuild(),
10
10
  web: "es2020",
11
- node: "node16"
11
+ node: "node18"
12
12
  };
13
13
  const ESBUILD_FORMAT = {
14
14
  CJS: "cjs",
@@ -1 +1 @@
1
- export const vitestConfig: import("vitest/dist/config").UserConfigExport;
1
+ export declare const vitestConfig: import("vitest/dist/config").UserConfigExport;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-cli",
3
- "version": "8.0.0-next.7",
3
+ "version": "8.0.0-next.9",
4
4
  "description": "ICE MT UI Platform CLI",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -20,7 +20,12 @@
20
20
  },
21
21
  "./storybook": {
22
22
  "require": "./dist/cjs/webpack/webpack.storybook.js"
23
- }
23
+ },
24
+ "./vitest": {
25
+ "import": "./dist/esm/testing/vitest.config.js"
26
+ },
27
+ "./app.tsconfig.json": "./app.tsconfig.json",
28
+ "./library.tsconfig.json": "./library.tsconfig.json"
24
29
  },
25
30
  "files": [
26
31
  "dist",
@@ -183,7 +188,7 @@
183
188
  "eslint-plugin-eslint-comments": "~3.2.0",
184
189
  "eslint-plugin-import": "~2.27.5",
185
190
  "eslint-plugin-jest": "~27.2.1",
186
- "eslint-plugin-jsdoc": "~39.8.0",
191
+ "eslint-plugin-jsdoc": "~40.0.0",
187
192
  "eslint-plugin-jsx-a11y": "~6.7.1",
188
193
  "eslint-plugin-mdx": "~2.0.5",
189
194
  "eslint-plugin-prettier": "~4.2.1",
@@ -193,7 +198,7 @@
193
198
  "eslint-plugin-storybook": "~0.6.10",
194
199
  "eslint-plugin-testing-library": "~5.10.1",
195
200
  "eslint-plugin-wdio": "~8.0.14",
196
- "execa": "~6.1.0",
201
+ "execa": "~7.0.0",
197
202
  "express": "~4.18.2",
198
203
  "express-static-gzip": "~2.1.7",
199
204
  "favicons": "~7.0.2",
@@ -259,14 +264,14 @@
259
264
  "storybook-addon-turbo-build": "~1.1.0",
260
265
  "storybook-react-router": "~1.0.8",
261
266
  "style-loader": "~3.3.1",
262
- "stylelint": "~15.0.0",
267
+ "stylelint": "~15.1.0",
263
268
  "stylelint-config-recommended": "~10.0.1",
264
269
  "stylelint-config-styled-components": "~0.1.1",
265
270
  "supertest": "~6.3.3",
266
271
  "swc-loader": "~0.2.3",
267
272
  "ts-node": "~10.9.1",
268
273
  "tsc-alias": "~1.8.2",
269
- "typedoc": "~0.23.24",
274
+ "typedoc": "~0.23.25",
270
275
  "typescript": "~4.9.5",
271
276
  "update-notifier": "~6.0.2",
272
277
  "url-loader": "~4.1.1",