diff --git a/.eslintrc.json b/.eslintrc.json index 3ce4be6af..2e22f0644 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,196 +1,196 @@ { - "root": true, - "env": { - "browser": true, - "node": true, - "es2021": true - }, - "parser": "@typescript-eslint/parser", - "plugins": ["react-prefer-function-component"], - "extends": [ - "eslint:all", - "plugin:@typescript-eslint/all", - "plugin:import/recommended", - "plugin:import/typescript", - "plugin:react/all", - "plugin:jsx-a11y/recommended", - "airbnb", - "airbnb-typescript", - "airbnb/hooks", - "plugin:react/jsx-runtime", - "plugin:unicorn/all", - "plugin:react-prefer-function-component/recommended", - "prettier" - ], - "rules": { - "no-dupe-else-if": "error", - "no-promise-executor-return": "error", - "no-unreachable-loop": "error", - "no-useless-backreference": "error", - "require-atomic-updates": "error", - "default-case-last": "error", - "grouped-accessor-pairs": "error", - "no-constructor-return": "error", - "no-implicit-coercion": "error", - "prefer-regex-literals": "error", - "capitalized-comments": "error", - "no-restricted-syntax": [ - "error", - { - "selector": "ForInStatement", - "message": "for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array." - }, - { - "selector": "LabeledStatement", - "message": "Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand." - }, - { - "selector": "WithStatement", - "message": "`with` is disallowed in strict mode because it makes code impossible to predict and optimize." - } - ], - "no-void": "off", + "root": true, + "env": { + "browser": true, + "node": true, + "es2021": true + }, + "parser": "@typescript-eslint/parser", + "plugins": ["react-prefer-function-component"], + "extends": [ + "eslint:all", + "plugin:@typescript-eslint/all", + "plugin:import/recommended", + "plugin:import/typescript", + "plugin:react/all", + "plugin:jsx-a11y/recommended", + "airbnb", + "airbnb-typescript", + "airbnb/hooks", + "plugin:react/jsx-runtime", + "plugin:unicorn/all", + "plugin:react-prefer-function-component/recommended", + "prettier" + ], + "rules": { + "no-dupe-else-if": "error", + "no-promise-executor-return": "error", + "no-unreachable-loop": "error", + "no-useless-backreference": "error", + "require-atomic-updates": "error", + "default-case-last": "error", + "grouped-accessor-pairs": "error", + "no-constructor-return": "error", + "no-implicit-coercion": "error", + "prefer-regex-literals": "error", + "capitalized-comments": "error", + "no-restricted-syntax": [ + "error", + { + "selector": "ForInStatement", + "message": "for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array." + }, + { + "selector": "LabeledStatement", + "message": "Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand." + }, + { + "selector": "WithStatement", + "message": "`with` is disallowed in strict mode because it makes code impossible to predict and optimize." + } + ], + "no-void": "off", - "@typescript-eslint/padding-line-between-statements": "off", - "@typescript-eslint/prefer-enum-initializers": "off", - "@typescript-eslint/prefer-readonly-parameter-types": "off", - "@typescript-eslint/prefer-regexp-exec": "off", - "@typescript-eslint/no-magic-numbers": [ - "error", - { - "ignoreEnums": true, - "ignore": [0], - "enforceConst": true, - "detectObjects": true - } - ], - "@typescript-eslint/explicit-module-boundary-types": "off", - "@typescript-eslint/init-declarations": "off", - "@typescript-eslint/no-confusing-void-expression": [ - "error", - { "ignoreArrowShorthand": true } - ], - "@typescript-eslint/non-nullable-type-assertion-style": "off", - "@typescript-eslint/strict-boolean-expressions": "off", - "@typescript-eslint/no-implicit-any-catch": "off", - "@typescript-eslint/member-ordering": "off", - "@typescript-eslint/prefer-includes": "off", - "@typescript-eslint/no-restricted-imports": "off", + "@typescript-eslint/padding-line-between-statements": "off", + "@typescript-eslint/prefer-enum-initializers": "off", + "@typescript-eslint/prefer-readonly-parameter-types": "off", + "@typescript-eslint/prefer-regexp-exec": "off", + "@typescript-eslint/no-magic-numbers": [ + "error", + { + "ignoreEnums": true, + "ignore": [0], + "enforceConst": true, + "detectObjects": true + } + ], + "@typescript-eslint/explicit-module-boundary-types": "off", + "@typescript-eslint/init-declarations": "off", + "@typescript-eslint/no-confusing-void-expression": [ + "error", + { "ignoreArrowShorthand": true } + ], + "@typescript-eslint/non-nullable-type-assertion-style": "off", + "@typescript-eslint/strict-boolean-expressions": "off", + "@typescript-eslint/no-implicit-any-catch": "off", + "@typescript-eslint/member-ordering": "off", + "@typescript-eslint/prefer-includes": "off", + "@typescript-eslint/no-restricted-imports": "off", - "import/no-deprecated": "error", - "import/order": "off", - "import/no-extraneous-dependencies": [ - "error", - { - "devDependencies": [ - "cypress.config.ts", - "vite.config.ts", - "src/setupTests.ts", - "src/testUtils.tsx", - "src/mocks/**", - "**/__tests__/*.{ts,tsx}" - ] - } - ], + "import/no-deprecated": "error", + "import/order": "off", + "import/no-extraneous-dependencies": [ + "error", + { + "devDependencies": [ + "cypress.config.js", + "vite.config.ts", + "src/setupTests.ts", + "src/testUtils.tsx", + "src/mocks/**", + "**/__tests__/*.{ts,tsx}" + ] + } + ], - "react/no-did-update-set-state": "off", - "react/no-find-dom-node": "off", - "react/no-is-mounted": "off", - "react/no-redundant-should-component-update": "off", - "react/no-render-return-value": "off", - "react/no-string-refs": "off", - "react/no-this-in-sfc": "off", - "react/no-will-update-set-state": "off", - "react/prefer-es6-class": "off", - "react/no-unused-state": "off", - "react/prefer-stateless-function": "off", - "react/require-render-return": "off", - "react/sort-comp": "off", - "react/state-in-constructor": "off", - "react/static-property-placement": "off", + "react/no-did-update-set-state": "off", + "react/no-find-dom-node": "off", + "react/no-is-mounted": "off", + "react/no-redundant-should-component-update": "off", + "react/no-render-return-value": "off", + "react/no-string-refs": "off", + "react/no-this-in-sfc": "off", + "react/no-will-update-set-state": "off", + "react/prefer-es6-class": "off", + "react/no-unused-state": "off", + "react/prefer-stateless-function": "off", + "react/require-render-return": "off", + "react/sort-comp": "off", + "react/state-in-constructor": "off", + "react/static-property-placement": "off", - "react/boolean-prop-naming": [ - "error", - { - "validateNested": true - } - ], - "react/function-component-definition": [ - "error", - { - "namedComponents": "function-declaration" - } - ], - "react/no-unstable-nested-components": "error", - "react/jsx-handler-names": [ - "error", - { - "eventHandlerPrefix": "on", - "eventHandlerPropPrefix": "on", - "checkLocalVariables": true, - "checkInlineFunction": true - } - ], - "react/jsx-key": "error", - "react/jsx-no-bind": [ - "error", - { - "ignoreRefs": false, - "allowArrowFunctions": true, - "allowFunctions": true, - "allowBind": false, - "ignoreDOMComponents": false - } - ], - "react/jsx-no-constructed-context-values": "error", - "react/jsx-no-script-url": "error", - "react/jsx-no-useless-fragment": "error", + "react/boolean-prop-naming": [ + "error", + { + "validateNested": true + } + ], + "react/function-component-definition": [ + "error", + { + "namedComponents": "function-declaration" + } + ], + "react/no-unstable-nested-components": "error", + "react/jsx-handler-names": [ + "error", + { + "eventHandlerPrefix": "on", + "eventHandlerPropPrefix": "on", + "checkLocalVariables": true, + "checkInlineFunction": true + } + ], + "react/jsx-key": "error", + "react/jsx-no-bind": [ + "error", + { + "ignoreRefs": false, + "allowArrowFunctions": true, + "allowFunctions": true, + "allowBind": false, + "ignoreDOMComponents": false + } + ], + "react/jsx-no-constructed-context-values": "error", + "react/jsx-no-script-url": "error", + "react/jsx-no-useless-fragment": "error", - "unicorn/filename-case": [ - "error", - { - "cases": { - "camelCase": true, - "pascalCase": true - } - } - ], - "unicorn/no-nested-ternary": ["error"] - }, - "settings": { - "react": { - "version": "detect" - } - }, - "overrides": [ - { - "files": ["src/**/*.ts?(x)"], - "parserOptions": { - "project": ["./tsconfig.json"] - } - }, - { - "files": ["vite.config.ts", "cypress.config.ts"], - "parserOptions": { - "project": ["./tsconfig.node.json"] - } - }, - { - "files": ["**/__tests__/**/*.ts?(x)"], - "extends": ["plugin:testing-library/react"], - "rules": { - "@typescript-eslint/no-magic-numbers": ["off"], - "testing-library/no-await-sync-events": [ - "error", - { - "eventModules": ["fire-event"] - } - ], - "testing-library/no-manual-cleanup": "error", - "testing-library/prefer-explicit-assert": "error", - "testing-library/prefer-user-event": "error", - "testing-library/prefer-wait-for": "error" - } - } - ] + "unicorn/filename-case": [ + "error", + { + "cases": { + "camelCase": true, + "pascalCase": true + } + } + ], + "unicorn/no-nested-ternary": ["error"] + }, + "settings": { + "react": { + "version": "detect" + } + }, + "overrides": [ + { + "files": ["src/**/*.ts?(x)"], + "parserOptions": { + "project": ["./tsconfig.json"] + } + }, + { + "files": ["vite.config.ts"], + "parserOptions": { + "project": ["./tsconfig.node.json"] + } + }, + { + "files": ["**/__tests__/**/*.ts?(x)"], + "extends": ["plugin:testing-library/react"], + "rules": { + "@typescript-eslint/no-magic-numbers": ["off"], + "testing-library/no-await-sync-events": [ + "error", + { + "eventModules": ["fire-event"] + } + ], + "testing-library/no-manual-cleanup": "error", + "testing-library/prefer-explicit-assert": "error", + "testing-library/prefer-user-event": "error", + "testing-library/prefer-wait-for": "error" + } + } + ] } diff --git a/.pnp.cjs b/.pnp.cjs index 8bd26da7e..02b5f387d 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -51,7 +51,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["autoprefixer", "virtual:f7f45d0afed56bebc9b6071d64a8b36f3e9be326ad426e543ed2a736ab5ac574a41eda99b460f60da393058b48b30427260faa08cec8c3784211fcca75f7433f#npm:10.4.14"],\ ["commitizen", "npm:4.3.0"],\ ["css-mediaquery", "npm:0.1.2"],\ - ["cypress", "npm:12.12.0"],\ + ["cypress", "npm:12.17.2"],\ ["cz-conventional-changelog", "npm:3.3.0"],\ ["debug", "virtual:92a28e392bb7746809827b7e8ebf6aec49c5f04125481214ae6ea6f4de204344bcccbe5eb3a2f4388bb368cfa5d84f03ce0d8f32a9fcc3f5e92ea34723da1c56#npm:4.3.4"],\ ["design-stories", "https://github.com/cfpb/design-stories.git#commit=e38539bde54c7184a6c73138149c2976611e4163"],\ @@ -4129,7 +4129,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@babel/runtime", "npm:7.21.0"],\ ["@testing-library/dom", "npm:8.20.0"],\ ["@types/cypress", null],\ - ["cypress", "npm:12.12.0"]\ + ["cypress", "npm:12.17.2"]\ ],\ "packagePeers": [\ "@types/cypress",\ @@ -5968,7 +5968,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["autoprefixer", "virtual:f7f45d0afed56bebc9b6071d64a8b36f3e9be326ad426e543ed2a736ab5ac574a41eda99b460f60da393058b48b30427260faa08cec8c3784211fcca75f7433f#npm:10.4.14"],\ ["commitizen", "npm:4.3.0"],\ ["css-mediaquery", "npm:0.1.2"],\ - ["cypress", "npm:12.12.0"],\ + ["cypress", "npm:12.17.2"],\ ["cz-conventional-changelog", "npm:3.3.0"],\ ["debug", "virtual:92a28e392bb7746809827b7e8ebf6aec49c5f04125481214ae6ea6f4de204344bcccbe5eb3a2f4388bb368cfa5d84f03ce0d8f32a9fcc3f5e92ea34723da1c56#npm:4.3.4"],\ ["design-stories", "https://github.com/cfpb/design-stories.git#commit=e38539bde54c7184a6c73138149c2976611e4163"],\ @@ -6665,10 +6665,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }]\ ]],\ ["cypress", [\ - ["npm:12.12.0", {\ - "packageLocation": "./.yarn/unplugged/cypress-npm-12.12.0-dd58caa66e/node_modules/cypress/",\ + ["npm:12.17.2", {\ + "packageLocation": "./.yarn/unplugged/cypress-npm-12.17.2-2f269f28b0/node_modules/cypress/",\ "packageDependencies": [\ - ["cypress", "npm:12.12.0"],\ + ["cypress", "npm:12.17.2"],\ ["@cypress/request", "npm:2.88.11"],\ ["@cypress/xvfb", "npm:1.2.4"],\ ["@types/node", "npm:14.18.42"],\ @@ -6686,7 +6686,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["commander", "npm:6.2.1"],\ ["common-tags", "npm:1.8.2"],\ ["dayjs", "npm:1.11.7"],\ - ["debug", "virtual:dd58caa66ee1b4cc40fd470ce8acab507cb84181f080a6c69abce06024a70ace2ecca631ef05c49f52cc0c1443728b5f5f37702190eae7f06ec2e71c17a7fc37#npm:4.3.4"],\ + ["debug", "virtual:2f269f28b07a5cc7d50c5a52281ebdf61ce167995ec0014fb192366162bbf2680324b1c091dd09aa771afda20b0c279cedc4a737b459bfacd8aaae592ad3cecf#npm:4.3.4"],\ ["enquirer", "npm:2.3.6"],\ ["eventemitter2", "npm:6.4.7"],\ ["execa", "npm:4.1.0"],\ @@ -6698,7 +6698,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["is-ci", "npm:3.0.1"],\ ["is-installed-globally", "npm:0.4.0"],\ ["lazy-ass", "npm:1.6.0"],\ - ["listr2", "virtual:dd58caa66ee1b4cc40fd470ce8acab507cb84181f080a6c69abce06024a70ace2ecca631ef05c49f52cc0c1443728b5f5f37702190eae7f06ec2e71c17a7fc37#npm:3.14.0"],\ + ["listr2", "virtual:2f269f28b07a5cc7d50c5a52281ebdf61ce167995ec0014fb192366162bbf2680324b1c091dd09aa771afda20b0c279cedc4a737b459bfacd8aaae592ad3cecf#npm:3.14.0"],\ ["lodash", "npm:4.17.21"],\ ["log-symbols", "npm:4.1.0"],\ ["minimist", "npm:1.2.8"],\ @@ -6706,7 +6706,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["pretty-bytes", "npm:5.6.0"],\ ["proxy-from-env", "npm:1.0.0"],\ ["request-progress", "npm:3.0.0"],\ - ["semver", "npm:7.4.0"],\ + ["semver", "npm:7.5.4"],\ ["supports-color", "npm:8.1.1"],\ ["tmp", "npm:0.2.1"],\ ["untildify", "npm:4.0.0"],\ @@ -6796,13 +6796,13 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ],\ "linkType": "SOFT"\ }],\ - ["virtual:396a3691f7b25accf085fe2fff1f56eb7540eff3f2e928a7572ca1de9b831ff8f22136404f236aaed35d90369918dfc34392844d0f822a310563f34746dfb015#npm:3.2.7", {\ - "packageLocation": "./.yarn/__virtual__/debug-virtual-507f12afb6/0/cache/debug-npm-3.2.7-754e818c7a-b3d8c59407.zip/node_modules/debug/",\ + ["virtual:2f269f28b07a5cc7d50c5a52281ebdf61ce167995ec0014fb192366162bbf2680324b1c091dd09aa771afda20b0c279cedc4a737b459bfacd8aaae592ad3cecf#npm:4.3.4", {\ + "packageLocation": "./.yarn/__virtual__/debug-virtual-9f0338f94a/0/cache/debug-npm-4.3.4-4513954577-3dbad3f94e.zip/node_modules/debug/",\ "packageDependencies": [\ - ["debug", "virtual:396a3691f7b25accf085fe2fff1f56eb7540eff3f2e928a7572ca1de9b831ff8f22136404f236aaed35d90369918dfc34392844d0f822a310563f34746dfb015#npm:3.2.7"],\ + ["debug", "virtual:2f269f28b07a5cc7d50c5a52281ebdf61ce167995ec0014fb192366162bbf2680324b1c091dd09aa771afda20b0c279cedc4a737b459bfacd8aaae592ad3cecf#npm:4.3.4"],\ ["@types/supports-color", null],\ - ["ms", "npm:2.1.3"],\ - ["supports-color", null]\ + ["ms", "npm:2.1.2"],\ + ["supports-color", "npm:8.1.1"]\ ],\ "packagePeers": [\ "@types/supports-color",\ @@ -6810,12 +6810,12 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ],\ "linkType": "HARD"\ }],\ - ["virtual:92a28e392bb7746809827b7e8ebf6aec49c5f04125481214ae6ea6f4de204344bcccbe5eb3a2f4388bb368cfa5d84f03ce0d8f32a9fcc3f5e92ea34723da1c56#npm:4.3.4", {\ - "packageLocation": "./.yarn/__virtual__/debug-virtual-c292241d98/0/cache/debug-npm-4.3.4-4513954577-3dbad3f94e.zip/node_modules/debug/",\ + ["virtual:396a3691f7b25accf085fe2fff1f56eb7540eff3f2e928a7572ca1de9b831ff8f22136404f236aaed35d90369918dfc34392844d0f822a310563f34746dfb015#npm:3.2.7", {\ + "packageLocation": "./.yarn/__virtual__/debug-virtual-507f12afb6/0/cache/debug-npm-3.2.7-754e818c7a-b3d8c59407.zip/node_modules/debug/",\ "packageDependencies": [\ - ["debug", "virtual:92a28e392bb7746809827b7e8ebf6aec49c5f04125481214ae6ea6f4de204344bcccbe5eb3a2f4388bb368cfa5d84f03ce0d8f32a9fcc3f5e92ea34723da1c56#npm:4.3.4"],\ + ["debug", "virtual:396a3691f7b25accf085fe2fff1f56eb7540eff3f2e928a7572ca1de9b831ff8f22136404f236aaed35d90369918dfc34392844d0f822a310563f34746dfb015#npm:3.2.7"],\ ["@types/supports-color", null],\ - ["ms", "npm:2.1.2"],\ + ["ms", "npm:2.1.3"],\ ["supports-color", null]\ ],\ "packagePeers": [\ @@ -6824,13 +6824,13 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ],\ "linkType": "HARD"\ }],\ - ["virtual:dd58caa66ee1b4cc40fd470ce8acab507cb84181f080a6c69abce06024a70ace2ecca631ef05c49f52cc0c1443728b5f5f37702190eae7f06ec2e71c17a7fc37#npm:4.3.4", {\ - "packageLocation": "./.yarn/__virtual__/debug-virtual-92c09495aa/0/cache/debug-npm-4.3.4-4513954577-3dbad3f94e.zip/node_modules/debug/",\ + ["virtual:92a28e392bb7746809827b7e8ebf6aec49c5f04125481214ae6ea6f4de204344bcccbe5eb3a2f4388bb368cfa5d84f03ce0d8f32a9fcc3f5e92ea34723da1c56#npm:4.3.4", {\ + "packageLocation": "./.yarn/__virtual__/debug-virtual-c292241d98/0/cache/debug-npm-4.3.4-4513954577-3dbad3f94e.zip/node_modules/debug/",\ "packageDependencies": [\ - ["debug", "virtual:dd58caa66ee1b4cc40fd470ce8acab507cb84181f080a6c69abce06024a70ace2ecca631ef05c49f52cc0c1443728b5f5f37702190eae7f06ec2e71c17a7fc37#npm:4.3.4"],\ + ["debug", "virtual:92a28e392bb7746809827b7e8ebf6aec49c5f04125481214ae6ea6f4de204344bcccbe5eb3a2f4388bb368cfa5d84f03ce0d8f32a9fcc3f5e92ea34723da1c56#npm:4.3.4"],\ ["@types/supports-color", null],\ ["ms", "npm:2.1.2"],\ - ["supports-color", "npm:8.1.1"]\ + ["supports-color", null]\ ],\ "packagePeers": [\ "@types/supports-color",\ @@ -10355,10 +10355,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ],\ "linkType": "SOFT"\ }],\ - ["virtual:dd58caa66ee1b4cc40fd470ce8acab507cb84181f080a6c69abce06024a70ace2ecca631ef05c49f52cc0c1443728b5f5f37702190eae7f06ec2e71c17a7fc37#npm:3.14.0", {\ - "packageLocation": "./.yarn/__virtual__/listr2-virtual-627fde7cf4/0/cache/listr2-npm-3.14.0-446f504112-fdb8b2d6bd.zip/node_modules/listr2/",\ + ["virtual:2f269f28b07a5cc7d50c5a52281ebdf61ce167995ec0014fb192366162bbf2680324b1c091dd09aa771afda20b0c279cedc4a737b459bfacd8aaae592ad3cecf#npm:3.14.0", {\ + "packageLocation": "./.yarn/__virtual__/listr2-virtual-f6398eb113/0/cache/listr2-npm-3.14.0-446f504112-fdb8b2d6bd.zip/node_modules/listr2/",\ "packageDependencies": [\ - ["listr2", "virtual:dd58caa66ee1b4cc40fd470ce8acab507cb84181f080a6c69abce06024a70ace2ecca631ef05c49f52cc0c1443728b5f5f37702190eae7f06ec2e71c17a7fc37#npm:3.14.0"],\ + ["listr2", "virtual:2f269f28b07a5cc7d50c5a52281ebdf61ce167995ec0014fb192366162bbf2680324b1c091dd09aa771afda20b0c279cedc4a737b459bfacd8aaae592ad3cecf#npm:3.14.0"],\ ["@types/enquirer", null],\ ["cli-truncate", "npm:2.1.0"],\ ["colorette", "npm:2.0.19"],\ @@ -13146,6 +13146,14 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["lru-cache", "npm:6.0.0"]\ ],\ "linkType": "HARD"\ + }],\ + ["npm:7.5.4", {\ + "packageLocation": "./.yarn/cache/semver-npm-7.5.4-c4ad957fcd-12d8ad952f.zip/node_modules/semver/",\ + "packageDependencies": [\ + ["semver", "npm:7.5.4"],\ + ["lru-cache", "npm:6.0.0"]\ + ],\ + "linkType": "HARD"\ }]\ ]],\ ["serialize-javascript", [\ diff --git a/.yarn/cache/cypress-npm-12.12.0-dd58caa66e-5ab0a8bc58.zip b/.yarn/cache/cypress-npm-12.17.2-2f269f28b0-19144db1fe.zip similarity index 86% rename from .yarn/cache/cypress-npm-12.12.0-dd58caa66e-5ab0a8bc58.zip rename to .yarn/cache/cypress-npm-12.17.2-2f269f28b0-19144db1fe.zip index a7f10cba5..e8798cf16 100644 Binary files a/.yarn/cache/cypress-npm-12.12.0-dd58caa66e-5ab0a8bc58.zip and b/.yarn/cache/cypress-npm-12.17.2-2f269f28b0-19144db1fe.zip differ diff --git a/.yarn/cache/semver-npm-7.5.4-c4ad957fcd-12d8ad952f.zip b/.yarn/cache/semver-npm-7.5.4-c4ad957fcd-12d8ad952f.zip new file mode 100644 index 000000000..f8689471f Binary files /dev/null and b/.yarn/cache/semver-npm-7.5.4-c4ad957fcd-12d8ad952f.zip differ diff --git a/cypress.config.js b/cypress.config.js new file mode 100644 index 000000000..2de6b95ee --- /dev/null +++ b/cypress.config.js @@ -0,0 +1,11 @@ +const { defineConfig } = require('cypress'); + +module.exports = defineConfig({ + fileServerFolder: 'dist', + fixturesFolder: false, + projectId: 'etow1b', + e2e: { + baseUrl: 'http://localhost:4173/', + specPattern: 'cypress/e2e/**/*.ts' + } +}); diff --git a/cypress.config.ts b/cypress.config.ts deleted file mode 100644 index c41465086..000000000 --- a/cypress.config.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { defineConfig } from 'cypress' - -export default defineConfig({ - fileServerFolder: 'dist', - fixturesFolder: false, - projectId: 'etow1b', - e2e: { - baseUrl: 'http://localhost:4173/', - specPattern: 'cypress/e2e/**/*.ts' - } -}) diff --git a/package.json b/package.json index 67202cbde..2983524f0 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "autoprefixer": "10.4.14", "commitizen": "4.3.0", "css-mediaquery": "0.1.2", - "cypress": "12.12.0", + "cypress": "12.17.2", "cz-conventional-changelog": "3.3.0", "debug": "^4.3.4", "eslint": "8.40.0", diff --git a/tsconfig.node.json b/tsconfig.node.json index a3108d3c0..d2114f42a 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -1,14 +1,15 @@ { - "compilerOptions": { - "allowSyntheticDefaultImports": true, - "composite": true, - "forceConsistentCasingInFileNames": true, - "isolatedModules": true, - "module": "ESNext", - "moduleResolution": "Node", - "skipLibCheck": true, - "strict": true, - "target": "ESNext" - }, - "include": ["vite.config.ts", "cypress.config.ts"] + "compilerOptions": { + "allowSyntheticDefaultImports": true, + "baseUrl": "./.yarn/cache", + "composite": true, + "forceConsistentCasingInFileNames": true, + "isolatedModules": true, + "module": "ESNext", + "moduleResolution": "Node", + "skipLibCheck": true, + "strict": true, + "target": "ESNext" + }, + "include": ["vite.config.ts"] } diff --git a/yarn.lock b/yarn.lock index 4d39f7d8d..7d8881bb8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1900,7 +1900,7 @@ __metadata: languageName: node linkType: hard -"@cypress/request@npm:^2.88.10": +"@cypress/request@npm:^2.88.11": version: 2.88.11 resolution: "@cypress/request@npm:2.88.11" dependencies: @@ -4192,7 +4192,7 @@ __metadata: autoprefixer: 10.4.14 commitizen: 4.3.0 css-mediaquery: 0.1.2 - cypress: 12.12.0 + cypress: 12.17.2 cz-conventional-changelog: 3.3.0 debug: ^4.3.4 design-stories: "cfpb/design-stories#0.0.1" @@ -4808,11 +4808,11 @@ __metadata: languageName: node linkType: hard -"cypress@npm:12.12.0": - version: 12.12.0 - resolution: "cypress@npm:12.12.0" +"cypress@npm:12.17.2": + version: 12.17.2 + resolution: "cypress@npm:12.17.2" dependencies: - "@cypress/request": ^2.88.10 + "@cypress/request": ^2.88.11 "@cypress/xvfb": ^1.2.4 "@types/node": ^14.14.31 "@types/sinonjs__fake-timers": 8.1.1 @@ -4849,14 +4849,14 @@ __metadata: pretty-bytes: ^5.6.0 proxy-from-env: 1.0.0 request-progress: ^3.0.0 - semver: ^7.3.2 + semver: ^7.5.3 supports-color: ^8.1.1 tmp: ~0.2.1 untildify: ^4.0.0 yauzl: ^2.10.0 bin: cypress: bin/cypress - checksum: 5ab0a8bc58c8af90cdb5fea93692422e6e74436ffdaeb41853e91a3fcfcdb7a39ad6ae512537bf0edf25cc3bc3732248a32e8ad3bec3440d5f527f3a3b4650b7 + checksum: 19144db1fe02d92270de71f69ece324affd2f60bafa2f7018440c00907f837b1f8556926206df8b6e7b1c9890d250435730656ccb4a5a31e7872b24dd79c0af8 languageName: node linkType: hard @@ -10329,6 +10329,17 @@ __metadata: languageName: node linkType: hard +"semver@npm:^7.5.3": + version: 7.5.4 + resolution: "semver@npm:7.5.4" + dependencies: + lru-cache: ^6.0.0 + bin: + semver: bin/semver.js + checksum: 12d8ad952fa353b0995bf180cdac205a4068b759a140e5d3c608317098b3575ac2f1e09182206bf2eb26120e1c0ed8fb92c48c592f6099680de56bb071423ca3 + languageName: node + linkType: hard + "serialize-javascript@npm:^4.0.0": version: 4.0.0 resolution: "serialize-javascript@npm:4.0.0"