diff --git a/.eslintrc.json b/.eslintrc.json index 635d92a35..2e22f0644 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -76,19 +76,14 @@ "@typescript-eslint/member-ordering": "off", "@typescript-eslint/prefer-includes": "off", "@typescript-eslint/no-restricted-imports": "off", - "@typescript-eslint/no-misused-promises": [ - "error", - { - "checksVoidReturn": false - } - ], + "import/no-deprecated": "error", "import/order": "off", "import/no-extraneous-dependencies": [ "error", { "devDependencies": [ - "cypress.config.ts", + "cypress.config.js", "vite.config.ts", "src/setupTests.ts", "src/testUtils.tsx", @@ -175,7 +170,7 @@ } }, { - "files": ["vite.config.ts", "cypress.config.ts"], + "files": ["vite.config.ts"], "parserOptions": { "project": ["./tsconfig.node.json"] } diff --git a/.pnp.cjs b/.pnp.cjs index 9c7dd09d3..8cf1f74ad 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -53,7 +53,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"],\ @@ -4321,7 +4321,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@babel/runtime", "npm:7.22.6"],\ ["@testing-library/dom", "npm:8.20.1"],\ ["@types/cypress", null],\ - ["cypress", "npm:12.12.0"]\ + ["cypress", "npm:12.17.2"]\ ],\ "packagePeers": [\ "@types/cypress",\ @@ -6298,7 +6298,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"],\ @@ -6990,10 +6990,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.54"],\ @@ -7011,7 +7011,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["commander", "npm:6.2.1"],\ ["common-tags", "npm:1.8.2"],\ ["dayjs", "npm:1.11.9"],\ - ["debug", "virtual:dd58caa66ee1b4cc40fd470ce8acab507cb84181f080a6c69abce06024a70ace2ecca631ef05c49f52cc0c1443728b5f5f37702190eae7f06ec2e71c17a7fc37#npm:4.3.4"],\ + ["debug", "virtual:2f269f28b07a5cc7d50c5a52281ebdf61ce167995ec0014fb192366162bbf2680324b1c091dd09aa771afda20b0c279cedc4a737b459bfacd8aaae592ad3cecf#npm:4.3.4"],\ ["enquirer", "npm:2.4.0"],\ ["eventemitter2", "npm:6.4.7"],\ ["execa", "npm:4.1.0"],\ @@ -7023,7 +7023,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"],\ @@ -7121,13 +7121,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",\ @@ -7135,12 +7135,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": [\ @@ -7149,13 +7149,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",\ @@ -10868,10 +10868,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.20"],\ 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/cypress.config.ts b/cypress.config.js similarity index 69% rename from cypress.config.ts rename to cypress.config.js index 46e58491d..2de6b95ee 100644 --- a/cypress.config.ts +++ b/cypress.config.js @@ -1,6 +1,6 @@ -import { defineConfig } from 'cypress'; +const { defineConfig } = require('cypress'); -export default defineConfig({ +module.exports = defineConfig({ fileServerFolder: 'dist', fixturesFolder: false, projectId: 'etow1b', diff --git a/package.json b/package.json index 30e66d086..ba3ec5817 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,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.45.0", diff --git a/tsconfig.node.json b/tsconfig.node.json index 70cc1c955..d2114f42a 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -1,6 +1,7 @@ { "compilerOptions": { "allowSyntheticDefaultImports": true, + "baseUrl": "./.yarn/cache", "composite": true, "forceConsistentCasingInFileNames": true, "isolatedModules": true, @@ -10,5 +11,5 @@ "strict": true, "target": "ESNext" }, - "include": ["vite.config.ts", "cypress.config.ts"] + "include": ["vite.config.ts"] } diff --git a/yarn.lock b/yarn.lock index 48e8715ca..242191582 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1812,7 +1812,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: @@ -4382,7 +4382,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" @@ -4993,11 +4993,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 @@ -5034,14 +5034,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