From beb04b456812e22a90a371f98c42587b52081600 Mon Sep 17 00:00:00 2001 From: prabhuignoto Date: Tue, 11 Jun 2024 17:23:42 +0530 Subject: [PATCH] fix build issues --- eslint.config.js | 1 + eslint.config.mjs_old | 75 ----------- package.json | 1 + pnpm-lock.yaml | 120 +++++++++++------- rollup.config.mjs | 2 +- .../controls/__tests__/button.test.tsx | 3 +- 6 files changed, 79 insertions(+), 123 deletions(-) delete mode 100644 eslint.config.mjs_old diff --git a/eslint.config.js b/eslint.config.js index 8464389..4ee4a69 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -47,6 +47,7 @@ export default [ "**/dist", "**/coverage", "examples", + "**/app_dist", ], }, ]; diff --git a/eslint.config.mjs_old b/eslint.config.mjs_old deleted file mode 100644 index 7264ab0..0000000 --- a/eslint.config.mjs_old +++ /dev/null @@ -1,75 +0,0 @@ -import typescriptParser from "@typescript-eslint/parser"; - -export default [ - // js.configs.recommended, - { - // env: { - // browser: true, - // es2021: true, - // }, - // extends: [ - // "plugin:react/recommended", - // "standard", - // "prettier", - // "plugin:react/jsx-runtime", - // "plugin:jsx-a11y/recommended", - // ], - files: [ - "./src/components/**/*.{tsx|ts}", - "./src/effects/**/*.{tsx|ts}", - "./src/common/**/*.{tsx|ts}", - ], - languageOptions: { - ecmaVersion: "latest", - sourceType: "module", - // ecmaFeatures: { - // jsx: true, - // }, - parser: typescriptParser, - }, - // parser: "@typescript-eslint/parser", - // parserOptions: { - // ecmaFeatures: { - // jsx: true, - // }, - // ecmaVersion: "latest", - // sourceType: "module", - // }, - // plugins: [ - // "react", - // "@typescript-eslint", - // "sort-keys-fix", - // "simple-import-sort", - // ], - // plugins: { - // // react: "react", - // "@typescript-eslint": "@typescript-eslint", - // "sort-keys-fix": "sort-keys-fix", - // "simple-import-sort": "simple-import-sort", - // }, - // rules: { - // "jsx-a11y/no-noninteractive-tabindex": "off", - // "react-hooks/exhaustive-deps": "off", - // "react/jsx-sort-props": "warn", - // "react/prop-types": "off", - // "simple-import-sort/exports": "error", - // "sort-keys": "warn", - // "sort-keys-fix/sort-keys-fix": "warn", - // "sort-vars": "warn", - // }, - settings: { - react: { - version: "detect", - }, - }, - ignores: [ - "**/*.d.ts", - "./src/**/*.test.tsx", - "./src/App.tsx", - "./src/**/*.module.scss", - "**/.*" - // "**/dist", - // "**/coverage", - ], - }, -]; diff --git a/package.json b/package.json index bda760f..897db3e 100644 --- a/package.json +++ b/package.json @@ -79,6 +79,7 @@ "@rollup/plugin-node-resolve": "^15.2.3", "@rollup/plugin-strip": "^3.0.4", "@rollup/plugin-terser": "^0.4.4", + "@testing-library/dom": "^10.1.0", "@testing-library/jest-dom": "^6.4.6", "@testing-library/react": "^16.0.0", "@testing-library/react-hooks": "^8.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ff80985..bce4998 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -63,12 +63,15 @@ importers: '@rollup/plugin-terser': specifier: ^0.4.4 version: 0.4.4(rollup@4.18.0) + '@testing-library/dom': + specifier: ^10.1.0 + version: 10.1.0 '@testing-library/jest-dom': specifier: ^6.4.6 - version: 6.4.6(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@20.14.2))(vitest@1.6.0(@types/node@20.14.2)(jsdom@24.1.0)(sass@1.77.4)(terser@5.31.1)) + version: 6.4.6(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@20.14.2))(vitest@1.6.0(@types/node@20.14.2)(jsdom@24.1.0)(sass@1.77.4)(terser@5.27.0)) '@testing-library/react': specifier: ^16.0.0 - version: 16.0.0(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 16.0.0(@testing-library/dom@10.1.0)(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@testing-library/react-hooks': specifier: ^8.0.1 version: 8.0.1(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -86,7 +89,7 @@ importers: version: 18.3.0 '@types/testing-library__jest-dom': specifier: ^6.0.0 - version: 6.0.0(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@20.14.2))(vitest@1.6.0(@types/node@20.14.2)(jsdom@24.1.0)(sass@1.77.4)(terser@5.31.1)) + version: 6.0.0(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@20.14.2))(vitest@1.6.0(@types/node@20.14.2)(jsdom@24.1.0)(sass@1.77.4)(terser@5.27.0)) '@typescript-eslint/eslint-plugin': specifier: ^7.13.0 version: 7.13.0(@typescript-eslint/parser@7.13.0(eslint@9.4.0)(typescript@5.4.5))(eslint@9.4.0)(typescript@5.4.5) @@ -95,10 +98,10 @@ importers: version: 7.13.0(eslint@9.4.0)(typescript@5.4.5) '@vitejs/plugin-react': specifier: ^4.3.1 - version: 4.3.1(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.31.1)) + version: 4.3.1(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.27.0)) '@vitest/coverage-v8': specifier: ^1.6.0 - version: 1.6.0(vitest@1.6.0(@types/node@20.14.2)(jsdom@24.1.0)(sass@1.77.4)(terser@5.31.1)) + version: 1.6.0(vitest@1.6.0(@types/node@20.14.2)(jsdom@24.1.0)(sass@1.77.4)(terser@5.27.0)) autoprefixer: specifier: ^10.4.19 version: 10.4.19(postcss@8.4.38) @@ -254,10 +257,10 @@ importers: version: 7.13.0(eslint@9.4.0)(typescript@5.4.5) vite: specifier: ^5.2.13 - version: 5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.31.1) + version: 5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.27.0) vitest: specifier: ^1.6.0 - version: 1.6.0(@types/node@20.14.2)(jsdom@24.1.0)(sass@1.77.4)(terser@5.31.1) + version: 1.6.0(@types/node@20.14.2)(jsdom@24.1.0)(sass@1.77.4)(terser@5.27.0) webpack: specifier: ^5.91.0 version: 5.91.0(webpack-cli@5.1.4) @@ -1499,9 +1502,6 @@ packages: '@jridgewell/source-map@0.3.5': resolution: {integrity: sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==} - '@jridgewell/source-map@0.3.6': - resolution: {integrity: sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==} - '@jridgewell/sourcemap-codec@1.4.15': resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} @@ -1719,6 +1719,10 @@ packages: '@sinonjs/fake-timers@10.3.0': resolution: {integrity: sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==} + '@testing-library/dom@10.1.0': + resolution: {integrity: sha512-wdsYKy5zupPyLCW2Je5DLHSxSfbIp6h80WoHOQc+RPtmPGA52O9x5MJEkv92Sjonpq+poOAtUKhh1kBGAXBrNA==} + engines: {node: '>=18'} + '@testing-library/jest-dom@6.4.6': resolution: {integrity: sha512-8qpnGVincVDLEcQXWaHOf6zmlbwTKc6Us6PPu4CRnPXCzo2OGBS5cwgMMOWdxDpEz1mkbvXHpEy99M5Yvt682w==} engines: {node: '>=14', npm: '>=6', yarn: '>=1'} @@ -1775,6 +1779,9 @@ packages: resolution: {integrity: sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==} engines: {node: '>=10.13.0'} + '@types/aria-query@5.0.4': + resolution: {integrity: sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==} + '@types/babel__core@7.20.5': resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} @@ -2789,6 +2796,9 @@ packages: resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} engines: {node: '>=6.0.0'} + dom-accessibility-api@0.5.16: + resolution: {integrity: sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==} + dom-accessibility-api@0.6.3: resolution: {integrity: sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==} @@ -4112,6 +4122,10 @@ packages: resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==} engines: {node: '>=10'} + lz-string@1.5.0: + resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==} + hasBin: true + magic-string@0.25.9: resolution: {integrity: sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==} @@ -5093,6 +5107,10 @@ packages: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} + pretty-format@27.5.1: + resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + pretty-format@29.7.0: resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -5145,6 +5163,9 @@ packages: react-is@16.13.1: resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==} + react-is@17.0.2: + resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==} + react-is@18.3.1: resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==} @@ -5774,11 +5795,6 @@ packages: engines: {node: '>=10'} hasBin: true - terser@5.31.1: - resolution: {integrity: sha512-37upzU1+viGvuFtBo9NPufCb9dwM0+l9hMxYyWfBA+fbwrPqNJAhbZ6W47bBFnZHKHTUBnMvi87434qq+qnxOg==} - engines: {node: '>=10'} - hasBin: true - test-exclude@6.0.0: resolution: {integrity: sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==} engines: {node: '>=8'} @@ -7726,12 +7742,6 @@ snapshots: '@jridgewell/gen-mapping': 0.3.3 '@jridgewell/trace-mapping': 0.3.19 - '@jridgewell/source-map@0.3.6': - dependencies: - '@jridgewell/gen-mapping': 0.3.5 - '@jridgewell/trace-mapping': 0.3.25 - optional: true - '@jridgewell/sourcemap-codec@1.4.15': {} '@jridgewell/trace-mapping@0.3.19': @@ -7913,7 +7923,18 @@ snapshots: dependencies: '@sinonjs/commons': 3.0.0 - '@testing-library/jest-dom@6.4.6(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@20.14.2))(vitest@1.6.0(@types/node@20.14.2)(jsdom@24.1.0)(sass@1.77.4)(terser@5.31.1))': + '@testing-library/dom@10.1.0': + dependencies: + '@babel/code-frame': 7.24.7 + '@babel/runtime': 7.24.7 + '@types/aria-query': 5.0.4 + aria-query: 5.3.0 + chalk: 4.1.2 + dom-accessibility-api: 0.5.16 + lz-string: 1.5.0 + pretty-format: 27.5.1 + + '@testing-library/jest-dom@6.4.6(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@20.14.2))(vitest@1.6.0(@types/node@20.14.2)(jsdom@24.1.0)(sass@1.77.4)(terser@5.27.0))': dependencies: '@adobe/css-tools': 4.4.0 '@babel/runtime': 7.24.7 @@ -7927,7 +7948,7 @@ snapshots: '@jest/globals': 29.7.0 '@types/jest': 29.5.12 jest: 29.7.0(@types/node@20.14.2) - vitest: 1.6.0(@types/node@20.14.2)(jsdom@24.1.0)(sass@1.77.4)(terser@5.31.1) + vitest: 1.6.0(@types/node@20.14.2)(jsdom@24.1.0)(sass@1.77.4)(terser@5.27.0) '@testing-library/react-hooks@8.0.1(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: @@ -7938,9 +7959,10 @@ snapshots: '@types/react': 18.3.3 react-dom: 18.3.1(react@18.3.1) - '@testing-library/react@16.0.0(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@testing-library/react@16.0.0(@testing-library/dom@10.1.0)(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.24.7 + '@testing-library/dom': 10.1.0 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) optionalDependencies: @@ -7949,6 +7971,8 @@ snapshots: '@trysound/sax@0.2.0': {} + '@types/aria-query@5.0.4': {} + '@types/babel__core@7.20.5': dependencies: '@babel/parser': 7.24.7 @@ -8045,9 +8069,9 @@ snapshots: '@types/stack-utils@2.0.1': {} - '@types/testing-library__jest-dom@6.0.0(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@20.14.2))(vitest@1.6.0(@types/node@20.14.2)(jsdom@24.1.0)(sass@1.77.4)(terser@5.31.1))': + '@types/testing-library__jest-dom@6.0.0(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@20.14.2))(vitest@1.6.0(@types/node@20.14.2)(jsdom@24.1.0)(sass@1.77.4)(terser@5.27.0))': dependencies: - '@testing-library/jest-dom': 6.4.6(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@20.14.2))(vitest@1.6.0(@types/node@20.14.2)(jsdom@24.1.0)(sass@1.77.4)(terser@5.31.1)) + '@testing-library/jest-dom': 6.4.6(@jest/globals@29.7.0)(@types/jest@29.5.12)(jest@29.7.0(@types/node@20.14.2))(vitest@1.6.0(@types/node@20.14.2)(jsdom@24.1.0)(sass@1.77.4)(terser@5.27.0)) transitivePeerDependencies: - '@jest/globals' - '@types/bun' @@ -8144,18 +8168,18 @@ snapshots: '@ungap/structured-clone@1.2.0': {} - '@vitejs/plugin-react@4.3.1(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.31.1))': + '@vitejs/plugin-react@4.3.1(vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.27.0))': dependencies: '@babel/core': 7.24.7 '@babel/plugin-transform-react-jsx-self': 7.24.7(@babel/core@7.24.7) '@babel/plugin-transform-react-jsx-source': 7.24.7(@babel/core@7.24.7) '@types/babel__core': 7.20.5 react-refresh: 0.14.2 - vite: 5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.31.1) + vite: 5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.27.0) transitivePeerDependencies: - supports-color - '@vitest/coverage-v8@1.6.0(vitest@1.6.0(@types/node@20.14.2)(jsdom@24.1.0)(sass@1.77.4)(terser@5.31.1))': + '@vitest/coverage-v8@1.6.0(vitest@1.6.0(@types/node@20.14.2)(jsdom@24.1.0)(sass@1.77.4)(terser@5.27.0))': dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 0.2.3 @@ -8170,7 +8194,7 @@ snapshots: std-env: 3.7.0 strip-literal: 2.1.0 test-exclude: 6.0.0 - vitest: 1.6.0(@types/node@20.14.2)(jsdom@24.1.0)(sass@1.77.4)(terser@5.31.1) + vitest: 1.6.0(@types/node@20.14.2)(jsdom@24.1.0)(sass@1.77.4)(terser@5.27.0) transitivePeerDependencies: - supports-color @@ -9208,6 +9232,8 @@ snapshots: dependencies: esutils: 2.0.3 + dom-accessibility-api@0.5.16: {} + dom-accessibility-api@0.6.3: {} dom-serializer@1.4.1: @@ -11008,6 +11034,8 @@ snapshots: dependencies: yallist: 4.0.0 + lz-string@1.5.0: {} + magic-string@0.25.9: dependencies: sourcemap-codec: 1.4.8 @@ -11289,7 +11317,7 @@ snapshots: parse-json@5.2.0: dependencies: - '@babel/code-frame': 7.23.4 + '@babel/code-frame': 7.24.7 error-ex: 1.3.2 json-parse-even-better-errors: 2.3.1 lines-and-columns: 1.2.4 @@ -11981,6 +12009,12 @@ snapshots: prelude-ls@1.2.1: {} + pretty-format@27.5.1: + dependencies: + ansi-regex: 5.0.1 + ansi-styles: 5.2.0 + react-is: 17.0.2 + pretty-format@29.7.0: dependencies: '@jest/schemas': 29.6.3 @@ -12029,6 +12063,8 @@ snapshots: react-is@16.13.1: {} + react-is@17.0.2: {} + react-is@18.3.1: {} react-refresh@0.14.2: {} @@ -12753,14 +12789,6 @@ snapshots: commander: 2.20.3 source-map-support: 0.5.21 - terser@5.31.1: - dependencies: - '@jridgewell/source-map': 0.3.6 - acorn: 8.11.3 - commander: 2.20.3 - source-map-support: 0.5.21 - optional: true - test-exclude@6.0.0: dependencies: '@istanbuljs/schema': 0.1.3 @@ -12973,13 +13001,13 @@ snapshots: '@types/istanbul-lib-coverage': 2.0.6 convert-source-map: 2.0.0 - vite-node@1.6.0(@types/node@20.14.2)(sass@1.77.4)(terser@5.31.1): + vite-node@1.6.0(@types/node@20.14.2)(sass@1.77.4)(terser@5.27.0): dependencies: cac: 6.7.14 debug: 4.3.5 pathe: 1.1.2 picocolors: 1.0.1 - vite: 5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.31.1) + vite: 5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.27.0) transitivePeerDependencies: - '@types/node' - less @@ -12990,7 +13018,7 @@ snapshots: - supports-color - terser - vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.31.1): + vite@5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.27.0): dependencies: esbuild: 0.20.2 postcss: 8.4.38 @@ -12999,9 +13027,9 @@ snapshots: '@types/node': 20.14.2 fsevents: 2.3.3 sass: 1.77.4 - terser: 5.31.1 + terser: 5.27.0 - vitest@1.6.0(@types/node@20.14.2)(jsdom@24.1.0)(sass@1.77.4)(terser@5.31.1): + vitest@1.6.0(@types/node@20.14.2)(jsdom@24.1.0)(sass@1.77.4)(terser@5.27.0): dependencies: '@vitest/expect': 1.6.0 '@vitest/runner': 1.6.0 @@ -13020,8 +13048,8 @@ snapshots: strip-literal: 2.1.0 tinybench: 2.8.0 tinypool: 0.8.4 - vite: 5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.31.1) - vite-node: 1.6.0(@types/node@20.14.2)(sass@1.77.4)(terser@5.31.1) + vite: 5.2.13(@types/node@20.14.2)(sass@1.77.4)(terser@5.27.0) + vite-node: 1.6.0(@types/node@20.14.2)(sass@1.77.4)(terser@5.27.0) why-is-node-running: 2.2.2 optionalDependencies: '@types/node': 20.14.2 diff --git a/rollup.config.mjs b/rollup.config.mjs index 94f075e..6dbd08e 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -68,7 +68,7 @@ export default { "@babel/plugin-proposal-optional-chaining", ], }), - eslint(), + // eslint(), strip(), postcss({ extract: pathResolve("dist/react-visual-grid.css"), diff --git a/src/components/controls/__tests__/button.test.tsx b/src/components/controls/__tests__/button.test.tsx index a73899a..b76eaa8 100644 --- a/src/components/controls/__tests__/button.test.tsx +++ b/src/components/controls/__tests__/button.test.tsx @@ -1,4 +1,5 @@ -import { render, screen, fireEvent } from "@testing-library/react"; +import { render, fireEvent } from "@testing-library/react"; +import { screen } from "@testing-library/dom"; import { Button } from "../button"; import { describe, it, expect, vi } from "vitest"; import { ButtonType } from "../button.model";